search for: speex_get_lookahead

Displaying 16 results from an estimated 16 matches for "speex_get_lookahead".

2006 Oct 30
2
2 questions, frame size and SPEEX_GET_LOOKAHEAD
...ring encoding, the last frame is often smaller than the required frame size. In the sample code, proper number of zeros are padded at the end. So if I don't want those padded zero after decoding, I assume that it is up to me to keep track of the number of zeros. Is it right? 2. What does SPEEX_GET_LOOKAHEAD do? How to use it? In speexenc.c, there is following code: ... speex_encoder_ctl(st, SPEEX_GET_LOOKAHEAD, &lookahead); ... nb_encoded = -lookahead; Can someone explain what this means? Thanks. j.p.
2006 Oct 31
0
2 questions, frame size and SPEEX_GET_LOOKAHEAD
...t frame is often smaller than the required frame > size. In the sample code, proper number of zeros are padded at the end. > So if I don't want those padded zero after decoding, I assume that it is > up to me to keep track of the number of zeros. Is it right? Right. > 2. What does SPEEX_GET_LOOKAHEAD do? How to use it? > In speexenc.c, there is following code: > > ... > speex_encoder_ctl(st, SPEEX_GET_LOOKAHEAD, &lookahead); > ... > nb_encoded = -lookahead; > > Can someone explain what this means? The lookahead is the number of samples you need to discard at the s...
2006 Oct 31
2
2 questions, frame size and SPEEX_GET_LOOKAHEAD
> >> 2. What does SPEEX_GET_LOOKAHEAD do? How to use it? >> In speexenc.c, there is following code: >> >> ... >> speex_encoder_ctl(st, SPEEX_GET_LOOKAHEAD, &lookahead); >> ... >> nb_encoded = -lookahead; >> >> Can someone explain what this means? > > The lookahead is the number...
2006 Oct 31
0
2 questions, frame size and SPEEX_GET_LOOKAHEAD
[At the risk of educating you about something you might already know] Natural speech in most human languages gradually changes from one phoneme to the next. Concatenating phonemes together from a fixed, prerecorded, unflexible set would give rise to abrupt changes between them (both in phoneme quality and in pitch), and thus make the resulting speech hard to understand and/or uncomfortable
2006 Oct 31
1
2 questions, frame size and SPEEX_GET_LOOKAHEAD
Hi, Andras, Thanks for the comments. Yes, I am aware of those issues. I probably should have been more accurate on my usage of terms. Actually in my project, the unit collection is a mixture of diphones and words. However seems to me, these synthesizer specific issue is irrelevant to my question about speex. As you said, i merely use speex as storage methods. All I ask for is to get the
2006 Oct 31
2
2 questions, frame size and SPEEX_GET_LOOKAHEAD
Ok, let me first explain why 5ms matters, even they are 0's, in my particular application. I am working on a speech synthesis system. The basic idea is concatenating pre-recorded phonemes or words into longer sentences. So any missing or extra samples, even it is as short as 5~10ms, cause very noticeable discontinuities. I want to use speex to compress/decompress those pre-recorded
2009 Jun 30
3
Delays estimation in Speex algorithms
...and 10.90625 ms for UWB. Is there an extra frame of delay in the encoder that isn't otherwise accounted for? John Ridges Jean-Marc Valin wrote: > Quoting John Ridges <jridges at masque.com>: > >> I also need to know the precise delays from Speex but I used the >> SPEEX_GET_LOOKAHEAD control requests to determine them (plus the >> "speex_resampler_get_output_latency" function from the resampler). The >> returned values from the Speex lookahead request don't seem to match >> with the values you gave Alexander. Am I doing this wrong? Thanks, >&g...
2009 Jun 30
3
Delays estimation in Speex algorithms
JM, I also need to know the precise delays from Speex but I used the SPEEX_GET_LOOKAHEAD control requests to determine them (plus the "speex_resampler_get_output_latency" function from the resampler). The returned values from the Speex lookahead request don't seem to match with the values you gave Alexander. Am I doing this wrong? Thanks, John Ridges speex-dev-reque...
2005 Jun 20
1
Speex granulepos definition
On Sun, Jun 19, 2005 at 08:07:50PM -0400, Jean-Marc Valin wrote: > Hi Ralph, > > What speexenc does (Speex itself does not know about Ogg) is that it gives > packet N the granulepos "N*frame_size - lookahead". In the case of narrowband, > the first frame would have granulepos "1*160 - 80", so 80. I can't say about > your example because Speex cannot
2009 Jun 30
0
Delays estimation in Speex algorithms
Quoting John Ridges <jridges at masque.com>: > I also need to know the precise delays from Speex but I used the > SPEEX_GET_LOOKAHEAD control requests to determine them (plus the > "speex_resampler_get_output_latency" function from the resampler). The > returned values from the Speex lookahead request don't seem to match > with the values you gave Alexander. Am I doing this wrong? Thanks, What's the di...
2009 Jun 30
0
Delays estimation in Speex algorithms
...s that work on the same frame size, you only pay for that delay once. Jean-Marc > John Ridges > > Jean-Marc Valin wrote: > > Quoting John Ridges <jridges at masque.com>: > > > >> I also need to know the precise delays from Speex but I used the > >> SPEEX_GET_LOOKAHEAD control requests to determine them (plus the > >> "speex_resampler_get_output_latency" function from the resampler). The > >> returned values from the Speex lookahead request don't seem to match > >> with the values you gave Alexander. Am I doing this wrong?...
2009 Aug 25
0
Need some help about speex settings
...seems to be better comparing to 32 KHz. 2) When I use wideband mode with 16 KHz sampling rate bandwidth usage is greater comparing to 32 KHz, ultra-wideband. Why? Voice quality is worse when using 16KHz wideband comparing to ultra-wideband coding. 3) Speex samples testenc_wb and testenc_uwb gets SPEEX_GET_LOOKAHEAD parameter and skip appropriate number of samples. Should I do the same in VoIP ? What this value means and how is it used in Speex? 4) If sampling rate is 44100 and I use wideband (not ultra) coding bandwidth usage is very high (about 9 KB/sec). Is it normal and just happens because Speex wideband...
2007 Aug 24
0
speex DTX chore
...; speex_encoder_ctl(enc_state, SPEEX_GET_FRAME_SIZE, &enc_frame); frame_size = enc_frame; // Set the quality speex_encoder_ctl(enc_state, SPEEX_SET_QUALITY, &qlty); // Set DTX speex_encoder_ctl(enc_state, SPEEX_SET_DTX, &dtx); //load lookahead speex_encoder_ctl(enc_state, SPEEX_GET_LOOKAHEAD, &lookahead); if (denoise || agc || vad) { preprocess = speex_preprocess_state_init(frame_size, fs); // Set VAD speex_preprocess_ctl(preprocess, SPEEX_PREPROCESS_SET_VAD, &vad); speex_preprocess_ctl(preprocess, SPEEX_PREPROCESS_SET_DENOISE, &denoise); speex_preprocess_...
2008 Apr 04
0
speexdec 1.2.3
...nt==0) { st = process_header(&op, enh_enabled, &frame_size, &granule_frame_size, &rate, &nframes, forceMode, &channels, &stereo, &extra_headers, quiet); if (!st) exit(1); speex_decoder_ctl(st, SPEEX_GET_LOOKAHEAD, &lookahead); if (!nframes) nframes=1; fout = out_file_open(outFile, wav_format, rate, &channels); } else if (packet_count==1) { if (!quiet) print_comments((char*)op.packet, op.bytes);...
2008 Apr 04
2
speexdec 1.2.3
On Fri, Apr 4, 2008 at 12:19 AM, Jean-Marc Valin <jean-marc.valin at usherbrooke.ca> wrote: > Jahn, Ray (R.) a ?crit : > > > Dear Speex codec community: > > > > I am working on conversion of voice files. I could not figure out how to use speexdec.exe 1.2.3 in piped mode in order to avoid the creation of the potentially large intermediate *.wav or *.pcm files. Any
2005 May 25
3
Speex on TI C6x, Problem with TI C5x Patch
...i]=0; for (i=0;i<st->windowSize;i++) st->inBuf[i]=0; } break; case SPEEX_SET_SUBMODE_ENCODING: st->encode_submode = (*(long*)ptr); break; case SPEEX_GET_SUBMODE_ENCODING: (*(long*)ptr) = st->encode_submode; break; case SPEEX_GET_LOOKAHEAD: (*(long*)ptr)=(st->windowSize-st->frameSize); break; case SPEEX_SET_PLC_TUNING: st->plc_tuning = (*(long*)ptr); if (st->plc_tuning>100) st->plc_tuning=100; break; case SPEEX_GET_PLC_TUNING: (*(long*)ptr)=(st->plc_tuning);...