search for: speexrecorddata

Displaying 1 result from an estimated 1 matches for "speexrecorddata".

2007 Sep 12
0
not hearing the starts of words when encoding
...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(char)*CHANNELS); // 2 channels, input and output and the encoding code: speex_bits_reset( &encoderBits ); if ( speex_preprocess( preprocess, (short*)recording.data(), 0 ) && speex_encode_int( encoder, (short*)recording.data(), &e...