Displaying 1 result from an estimated 1 matches for "lib_speex_resample".
2011 Jan 02
0
Newbie problem with encoding
...speex_encoder_ctl(enc_state, SPEEX_SET_QUALITY, &quality);
speex_encoder_ctl(enc_state, SPEEX_SET_SAMPLING_RATE, &rate);
// Set up a resampler to resample to 16K which is wideband mode
resampler = speex_resampler_init(2, 48000, 16000, quality, &err);
return 0;
}
int lib_speex_resample(short* in, unsigned int* in_length, short* out,
unsigned int* out_length) {
// Resample the input frame to 16KHz
if(enc_state == NULL) return -100;
return speex_resampler_process_interleaved_int(resampler, in,
in_length, out, out_length);
}
So far this seems to do the right thing.
1....