search for: speexstate

Displaying 7 results from an estimated 7 matches for "speexstate".

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(speexFr...
2005 Apr 27
2
speex corrupting input buffer?
...is related to a high pitched sound I'm getting after decoding since I get a similar sound if I just play the corrupted input buffer. Thanks, Steve // ------------------------------------ #include <speex.h> #include <stdio.h> int main(int argc, const char *argv[]) { void *speexState; int frame_size; SpeexBits bits; float *buf; int i; speex_bits_init(&(bits)); speexState = speex_encoder_init(&speex_wb_mode); speex_encoder_ctl(speexState, SPEEX_GET_FRAME_SIZE, &(frame_size)); buf = (float *)calloc(1, frame_size * sizeof(float...
2005 Apr 27
0
speex corrupting input buffer?
...ng since I get > a similar sound if I just play the corrupted input buffer. > > Thanks, > Steve > > // ------------------------------------ > > #include <speex.h> > #include <stdio.h> > > int main(int argc, const char *argv[]) > { > void *speexState; > int frame_size; > SpeexBits bits; > float *buf; > int i; > > speex_bits_init(&(bits)); > speexState = speex_encoder_init(&speex_wb_mode); > speex_encoder_ctl(speexState, SPEEX_GET_FRAME_SIZE, &(frame_size)); > >...
2010 Mar 30
0
Speex in flash player: how to work with?
On Sat, Mar 20, 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_preproces...
2010 Mar 31
1
Speex in flash player: how to work with?
...shin [mailto:max.lapshin at gmail.com] Sent: Tuesday, March 30, 2010 8:53 AM To: Jozsef Vass Cc: speex-dev at xiph.org Subject: Re: [Speex-dev] Speex in flash player: how to work with? On Sat, Mar 20, 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_preproces...
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
2012 Jun 14
1
High CPU usage
Hi Mark, Code below: int16_t* samples; int16_t* fbSilenceFrame; void *fSpeexState; float eng(0.f); int speexFrameSize(0); speex_encoder_ctl(speexState, SPEEX_GET_FRAME_SIZE, &speexFrameSize); for (int i = 0; i < speexFrameSize; i++) { eng += samples[i] * samples[i]; } if (eng / speexFrameSize < 3.f) { memcpy(samples, silenceFrame, speexFrameSize * sizeof(int16...