Displaying 5 results from an estimated 5 matches for "encoderframesize".
2009 Sep 02
3
voice sound like robot voice :)
.../////////////////////////////////////////////////////////////////
//
// TVoiceCodec
//
/////////////////////////////////////////////////////////////////
TVoiceCodec::TVoiceCodec() :
pMode( NULL ),
pPreprocessorState( NULL ),
pCodecEncoderState( NULL ),
encoderQuality( 5 ),
encoderComplexity( 3 ),
encoderFrameSize( 0 ),
encodedFrameBytes( 0 ),
pCodecDecoderState( NULL ),
sampleRate( VOICE_SAMPLE_RATE ),
decoderFrameSize( 0 )
{
/////////////////////////////////////////////////////////////////
// Prepare buffers
/////////////////////////////////////////////////////////////////
uint voicememsize = C...
2009 Sep 03
1
Speex-dev Digest, Vol 64, Issue 2
...> //
> > /////////////////////////////////////////////////////////////////
> > TVoiceCodec::TVoiceCodec() :
> > pMode( NULL ),
> > pPreprocessorState( NULL ),
> > pCodecEncoderState( NULL ),
> > encoderQuality( 5 ),
> > encoderComplexity( 3 ),
> > encoderFrameSize( 0 ),
> > encodedFrameBytes( 0 ),
> > pCodecDecoderState( NULL ),
> > sampleRate( VOICE_SAMPLE_RATE ),
> > decoderFrameSize( 0 )
> > {
> > /////////////////////////////////////////////////////////////////
> > // Prepare buffers
> > //////////...
2009 Sep 03
0
voice sound like robot voice :)
...////////////
> //
> // TVoiceCodec
> //
> /////////////////////////////////////////////////////////////////
> TVoiceCodec::TVoiceCodec() :
> pMode( NULL ),
> pPreprocessorState( NULL ),
> pCodecEncoderState( NULL ),
> encoderQuality( 5 ),
> encoderComplexity( 3 ),
> encoderFrameSize( 0 ),
> encodedFrameBytes( 0 ),
> pCodecDecoderState( NULL ),
> sampleRate( VOICE_SAMPLE_RATE ),
> decoderFrameSize( 0 )
> {
> /////////////////////////////////////////////////////////////////
> // Prepare buffers
> //////////////////////////////////////////////////...
2009 Sep 14
2
noise from custom encoder/decoder
Hy,
I'm totaly out of ideas now.
here are links to the code I use.
codec.cpp http://barvanjekode.gama.us/temp/1078354945.html
codec.h http://barvanjekode.gama.us/temp/135707080.html
Variables I use are:
int samplerate 32000
uint quality 10
uint complexity = 2
I get that wierd noise after I use speex encoder/decoder. It's like there
where empty spaces between each encoded
2009 Sep 14
0
noise from custom encoder/decoder
...there where empty spaces between each encoded packet but I can't see
> that from my code.
> I copy/move memory properly.
>
> So, if there is anyone who understand what is the problem, please help
> me :)
While I didn't look too closely, it looks like you're comparing
encoderFrameSize (which is in number of frames, aka shorts) with
"buffersize - pos" (which is in number of bytes).