Displaying 2 results from an estimated 2 matches for "encoded_frame_data_".
2012 Feb 25
0
Speex-with-header-byte and Google ASR
...b_mode);
speex_encoder_ctl(encoder_state_, SPEEX_GET_FRAME_SIZE, &samples_per_frame_);
int quality = kSpeexEncodingQuality;
speex_encoder_ctl(encoder_state_, SPEEX_SET_QUALITY, &quality);
int vbr = 1;
speex_encoder_ctl(encoder_state_, SPEEX_SET_VBR, &vbr);
memset(encoded_frame_data_, 0, sizeof(encoded_frame_data_));
}
SpeexRecorder::~SpeexRecorder()
{
speex_bits_destroy(&bits_);
speex_encoder_destroy(encoder_state_);
}
void SpeexRecorder::WriteToFile(int16 * buf, int count)
{
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
count -= (count % samples_pe...
2012 Feb 25
0
Speex-with-header-byte and Google ASR
...peex_wb_mode);
speex_encoder_ctl(encoder_state_, SPEEX_GET_FRAME_SIZE, &samples_per_frame_);
int quality = kSpeexEncodingQuality;
speex_encoder_ctl(encoder_state_, SPEEX_SET_QUALITY, &quality);
int vbr = 1;
speex_encoder_ctl(encoder_state_, SPEEX_SET_VBR, &vbr);
memset(encoded_frame_data_, 0, sizeof(encoded_frame_data_));
}
SpeexRecorder::~SpeexRecorder()
{
speex_bits_destroy(&bits_);
speex_encoder_destroy(encoder_state_);
}
void SpeexRecorder::WriteToFile(int16 * buf, int count)
{
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
count -= (count % samples_per_...