search for: speex_get_sampling_r

Displaying 13 results from an estimated 13 matches for "speex_get_sampling_r".

2004 Aug 06
2
SPEEX_GET_SAMPLING_RATE of encoder is wrong
Hi, I'm using speex 1.1.4 and when I query SPEEX_GET_SAMPLING_RATE as in speex_encoder_ctl ( m_pEncoderState, SPEEX_GET_SAMPLING_RATE, &m_SampleRate ); I get 2 The encoder is initialized with m_pEncoderState = speex_encoder_init ( &speex_wb_mode ); On the decoder side, the correct sampling rate is returned: m_pDecoderState = speex_decoder_init ( &s...
2004 Aug 06
1
SPEEX_GET_SAMPLING_RATE of encoder is wrong
...new thread. Sorry about that. Best regards, Chris ----- Original Message ----- From: "Jean-Marc Valin" <Jean-Marc.Valin@USherbrooke.ca> To: "speex" <speex-dev@xiph.org>; <cflerackers@androme.be> Sent: Tuesday, March 30, 2004 1:01 AM Subject: Re: [speex-dev] SPEEX_GET_SAMPLING_RATE of encoder is wrong > Hi, > > Do you get that problem with speex_nb_mode too (or only speex_wb_mode)? > > Jean-Marc > > Le lun 29/03/2004 à 05:35, Chris Flerackers a écrit : > > Hi, > > > > I'm using speex 1.1.4 and when I query SPEEX_GET_SAMPLING_RAT...
2004 Aug 06
0
SPEEX_GET_SAMPLING_RATE of encoder is wrong
Hi, Do you get that problem with speex_nb_mode too (or only speex_wb_mode)? Jean-Marc Le lun 29/03/2004 à 05:35, Chris Flerackers a écrit : > Hi, > > I'm using speex 1.1.4 and when I query SPEEX_GET_SAMPLING_RATE > as in > speex_encoder_ctl ( m_pEncoderState, SPEEX_GET_SAMPLING_RATE, > &m_SampleRate ); > I get > 2 > The encoder is initialized with > m_pEncoderState = speex_encoder_init ( &speex_wb_mode ); > > On the decoder side, the correct sampling rate is returned:...
2010 Mar 19
4
Speex in flash player: how to work with?
Nicer way: void* speexState = speex_encoder_init(&speex_wb_mode); int speexFrameSize, speexRate; speex_encoder_ctl(speexState, SPEEX_GET_FRAME_SIZE, &speexFrameSize); speex_encoder_ctl(speexState, SPEEX_GET_SAMPLING_RATE, &speexRate); SpeexPreprocessState* speexPreprocessState = speex_preprocess_state_init(speexFrameSize, speexRate); Jozsef -----Original Message----- From: Max Lapshin [mailto:max.lapshin at gmail.com] Sent: Thursday, March 18, 2010 10:57 PM To: Jozsef Vass Cc: speex-dev at xiph.org Subjec...
2004 Aug 06
1
One Minor Bug (Typo) in Speex 1.0
Speex 1.0 - in file sb_celp.c line 218 change speex_decoder_ctl(...) to speex_encoder_ctl(...): void *sb_encoder_init(SpeexMode *m) { . . . --> speex_decoder_ctl(st->st_low, SPEEX_GET_SAMPLING_RATE, &st->sampling_rate); // Replace <-- speex_encoder_ctl(st->st_low, SPEEX_GET_SAMPLING_RATE, &st->sampling_rate); st->sampling_rate*=2; return st; } -- Best regards Robert Milharcic e-mail: robert.milharcic@ib-caddy.si <p><p><p>--- >8...
2004 Aug 06
5
Memory leak in denoiser + a few questions
Hello The st->zeta pointer isn't freed in the speex_preprocess_state_destroy() function of the preprocess.c file (alloced in line 167). It's in Speex 1.1.4 by the way. I'm trying to make the denoiser work with my application and has got reasonable noise reduction after applying the denoiser. I, however, haven't been able to find any information of what the purpose of
2010 Mar 30
0
Speex in flash player: how to work with?
...2010 at 12:04 AM, Jozsef Vass <jovass at adobe.com> wrote: > Nicer way: > > void* speexState = speex_encoder_init(&speex_wb_mode); > int speexFrameSize, speexRate; > speex_encoder_ctl(speexState, SPEEX_GET_FRAME_SIZE, &speexFrameSize); > speex_encoder_ctl(speexState, SPEEX_GET_SAMPLING_RATE, &speexRate); > SpeexPreprocessState* speexPreprocessState = speex_preprocess_state_init(speexFrameSize, speexRate); > Jozsef, would you kindly help me. Both, this code: _microphone = Microphone.getMicrophone(); _microphone.setSilenceLevel(0); _microphone.codec = SoundCodec.SPEEX; _...
2010 Mar 31
1
Speex in flash player: how to work with?
...2010 at 12:04 AM, Jozsef Vass <jovass at adobe.com> wrote: > Nicer way: > > void* speexState = speex_encoder_init(&speex_wb_mode); > int speexFrameSize, speexRate; > speex_encoder_ctl(speexState, SPEEX_GET_FRAME_SIZE, &speexFrameSize); > speex_encoder_ctl(speexState, SPEEX_GET_SAMPLING_RATE, &speexRate); > SpeexPreprocessState* speexPreprocessState = speex_preprocess_state_init(speexFrameSize, speexRate); > Jozsef, would you kindly help me. Both, this code: _microphone = Microphone.getMicrophone(); _microphone.setSilenceLevel(0); _microphone.codec = SoundCodec.SPEEX; _...
2004 Sep 13
0
Compile flags for sampleenc sampledec.
...ag I am missing. 4) test_wb output 16-bit PCM file seems about 1K shorter than the original PCM file. Not sure if this is relevant. 5) SPEEX_GET_QUALITY does not appear to work for the decoder though documentation lists no limitation. (This has just been mentioned since I joined the group). 6) SPEEX_GET_SAMPLING_RATE does not work well for the encoder in wideband mode 7) The first bit is documented as the 'Wideband' bit, but in the packets I have looked at, this never seems to get set in testenc_wb in either the nb packet or the following wb packet. Any suggestions would be appreciated. Kirby -...
2004 Sep 15
0
Problems with sampleenc and sampledec
...he version made with make. This makes me think there is a flag I am missing. 4) test_wb output 16-bit PCM file seems about 1K shorter than the original PCM file. Not sure if this is relevant. 5) SPEEX_GET_QUALITY does not appear to work for the decoder though documentation lists no limitation. 6) SPEEX_GET_SAMPLING_RATE does not work well for the encoder in wideband mode 7) The first bit is documented as the 'Wideband' bit, but in the packets I have looked at, this never seems to get set in testenc_wb The sampledec failure occurs after speex_decode() where the float values are generally either 0 or out...
2007 Sep 12
0
not hearing the starts of words when encoding
...the modeller does not detect the start of a word. Has anyone seen this before? In case you're interested here is the init code: int quality = 3; int off = 0; speex_bits_init(&encoderBits); encoder = speex_encoder_init(&speex_nb_mode); speex_encoder_ctl( encoder, SPEEX_GET_SAMPLING_RATE, &sampleRate ); speex_encoder_ctl( encoder, SPEEX_GET_FRAME_SIZE, &frameSize); preprocess = speex_preprocess_state_init( frameSize, sampleRate ); speex_preprocess_ctl( preprocess, SPEEX_SET_QUALITY, (void*)&quality); speexRecordData = (char*)malloc(frameSize*sizeof(...
2010 Mar 19
2
Speex in flash player: how to work with?
First of all, Flash Player can only publish Speex at 16 kHz. 20 ms of audio (320 samples) will result in compressed payload size of 106 bytes (42.4 kbps). When Flash Player sends a TC message, there is 11 bytes TC message header and a single byte of audio message header. For more information, please see ActionScript 3 reference http://help.adobe.com/en_US/AS3LCR/Flash_10.0/ Jozsef
2005 May 25
3
Speex on TI C6x, Problem with TI C5x Patch
...D]) (*(long*)ptr) = st->sampling_rate*SUBMODE(bits_per_frame)/st->frameSize; 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=...