search for: speex_reset_st

Displaying 12 results from an estimated 12 matches for "speex_reset_st".

2007 Dec 06
2
Some question about speexcodex 1.2 beta2 on linux
...int m_encMode = 6; int m_iAGC = 0; int m_iDenoise = 0; SpeexPreprocessState *m_preProcesser; int nOff = 0, nOn = 1; int modex=30; speex_bits_init(&bits); state = speex_encoder_init(&speex_nb_mode); speex_encoder_ctl(state,SPEEX_RESET_STATE,NULL); speex_encoder_ctl(state,SPEEX_RESET_STATE,NULL); speex_encoder_ctl(state,SPEEX_GET_FRAME_SIZE,&m_frame_size); speex_encoder_ctl(state,SPEEX_SET_VAD, &nOff); speex_encoder_ctl(state,SPEEX_SET_DTX, &nOn); speex_encoder_ctl(state,SPEEX_SET_...
2004 Aug 06
0
Invalid mode encountered: corrupted stream?
...enc_state, *dec_state; static int enc_nbBytes = 0; static int comp = 1, quality = 5; static int vero = 1, falso = 0; static int enc_bitrate = 8000; void SpeexInit (void) { //ENCODER speex_bits_init(&enc_bits); enc_state = speex_encoder_init(&speex_nb_mode); speex_encoder_ctl(enc_state,SPEEX_RESET_STATE,NULL); speex_encoder_ctl(enc_state,SPEEX_SET_COMPLEXITY,&comp); speex_encoder_ctl(enc_state,SPEEX_SET_QUALITY,&quality); speex_encoder_ctl(enc_state,SPEEX_SET_BITRATE, &enc_bitrate); speex_encoder_ctl(enc_state,SPEEX_SET_DTX, &vero); <p> //DECODER speex_bits_init(&amp...
2006 Jun 26
1
seeking in time, feedback+question
...big files and then to access to small portions and decode only those parts. I use the streaming mode(the sample codes provided on the web-site) without the Ogg packaging which seems useful to me for seeking in time. When I seek in time by just skipping packages, reset by: speex_decoder_ctl(state, SPEEX_RESET_STATE, NULL); and starting decoding, I see that the quality of decoding varies depending on the initial frame characteristics. It seems that the signal gets close to the original quite fast when the first frames are unvoiced. If I start decoding in the middle of a voiced chunk then decoding quality is...
2007 Dec 21
1
Continous decoding of several audio files without destroying speex_decoder
...d to intialize speex decoder and destory decoder for each audio file decoding ? Here is current pseudo code. main() { m_speex = speex_decoder_init(speex_nb_mode); speex_decoder_ctl(m_speex, SPEEX_SET_ENH, &tmp); speex_bits_init(&m_bits); while(end of files) { speex_decoder_ctl(m_speex, SPEEX_RESET_STATE, &tmp); speex_bits_reset(&m_bits); OpenFile(speex audio file); while(end of file) { fread(speex frame); speex_bits_read_from(); speex_decode_int(); fwrite(decoded audio); } CloseFile(speex audio file); } speex_decoder_destroy(); speex_bits_des...
2009 Feb 09
2
Speex on windows, audio cutting out ("bug" discussion and fixes)
...nd decoder become NaN. The decoded sound buffers all come out as a series of NaNs. Building libspeex disabling floating-point computation fixes the problem, but is unsatisfying :) In the course of debugging this I did find a (maybe) bug in the narrowband libspeex code. The control message SPEEX_RESET_STATE to the decoder (I think) should reset the high-pass filter buffer to zero. We're actually using the speex library through foreign function calls in Haskell (using ghc), which contributes to the decoding glitch in two ways: - Our program is very concurrent, with many lightweight thre...
2005 Jan 04
1
different output for opt/non-opt on win32 platform
----- Original Message ----- From: "Jean-Marc Valin" <Jean-Marc.Valin@USherbrooke.ca> To: "tunkeat" <tunkeat@gmail.com> Cc: "speex" <speex-dev@xiph.org> Sent: Wednesday, January 05, 2005 2:48 PM Subject: Re: [Speex-dev] different output for opt/non-opt on win32 platform >No. Like any other CELP codec, Speex has a memory. The only non-PCM
2009 Feb 10
2
Speex on windows, audio cutting out ("bug" discussion and fixes)
...all come out as a series of NaNs. >> >> Building libspeex disabling floating-point computation fixes the >> problem, but is unsatisfying :) >> >> In the course of debugging this I did find a (maybe) bug in the >> narrowband libspeex code. The control message SPEEX_RESET_STATE to >> the decoder (I think) should reset the high-pass filter buffer to >> zero. >> >> We're actually using the speex library through foreign function >> calls in Haskell (using ghc), which contributes to the decoding >> glitch in two ways: - Our program...
2005 Sep 04
1
DTX mode using preprocessor?
> Hi, > > It could (and should) definitely be done, but it's somewhere > (unfortunately not on top) on my TODO list. I think the simplest way > (until I really integrate the preprocessor with the codec, which will > take a while) to do it is to add a speex_encoder_ctl() call as you > proposed. I'd call it SPEEX_SET_EXT_VAD_STATUS and I'm willing to merge > a
2004 Aug 06
1
Query r/e multiple decoder reset...
Hello! I should have asked this earlier, but... :) We're returning to voice processing in our app now, in which we're trying to achieve n-way full duplex voice in a 3d environment. Since Speex is a single voice stream CODEC, we've been looking at having each client upload its stream to the servers, which multiplex several spatially nearby active channels back down to the
2009 Feb 10
0
Speex on windows, audio cutting out ("bug" discussion and fixes)
...ecoded sound > buffers all come out as a series of NaNs. > > Building libspeex disabling floating-point computation fixes the > problem, but is unsatisfying :) > > In the course of debugging this I did find a (maybe) bug in the > narrowband libspeex code. The control message SPEEX_RESET_STATE to > the decoder (I think) should reset the high-pass filter buffer to zero. > > We're actually using the speex library through foreign function calls > in Haskell (using ghc), which contributes to the decoding glitch in > two ways: > - Our program is very concurrent, wi...
2009 Feb 10
0
Speex on windows, audio cutting out ("bug" discussion and fixes)
...es of NaNs. >>> >>> Building libspeex disabling floating-point computation fixes the >>> problem, but is unsatisfying :) >>> >>> In the course of debugging this I did find a (maybe) bug in the >>> narrowband libspeex code. The control message SPEEX_RESET_STATE to >>> the decoder (I think) should reset the high-pass filter buffer to >>> zero. >>> >>> We're actually using the speex library through foreign function >>> calls in Haskell (using ghc), which contributes to the decoding >>> glitch in...
2005 May 25
3
Speex on TI C6x, Problem with TI C5x Patch
...ize; else (*(long*)ptr) = st->sampling_rate*(NB_SUBMODE_BITS+1)/st->frameSize; break; case SPEEX_SET_SAMPLING_RATE: st->sampling_rate = (*(long*)ptr); break; case SPEEX_GET_SAMPLING_RATE: (*(long*)ptr)=st->sampling_rate; break; case SPEEX_RESET_STATE: { int i; st->bounded_pitch = 1; st->first = 1; for (i=0;i<st->lpcSize;i++) st->lsp[i]=(M_PI*((float)(i+1)))/(st->lpcSize+1); for (i=0;i<st->lpcSize;i++) st->mem_sw[i]=st->mem_sw_whole[i]=st...