[Speex-dev] Encoding and decoding problem in speex 1.0.4

Steve Kann stevek at stevek.com
Wed Jan 5 10:46:48 PST 2005


Vinod Vijayan wrote:

>Hi,
>  I am using the speex 1.0.4 library from Windows.
>  I have posted my problem before but didn't get a solution. I am doing an
>VOIP project
>  in which i am recording sound and streaming it to the peer. I wanted to
>encode and decode
>  wav files that brought me to this site.
>
>  I am recording sound in the following format:-
>  
>

I don't know much about windows "Wave" stuff, but this doesn't look right:

>  m_WaveFormatEx.wFormatTag          = WAVE_FORMAT_PCM;
>  m_WaveFormatEx.nChannels           = 1;
>  m_WaveFormatEx.wBitsPerSample      = 8;
>  m_WaveFormatEx.cbSize              = 0;
>  m_WaveFormatEx.nSamplesPerSec      = 8000;
>  m_WaveFormatEx.nBlockAlign         = 1;
>  m_WaveFormatEx.nAvgBytesPerSec     = 8000;
>
>  
>
You want 16 bits per sample, and 16000 bytes per second...


-SteveK




More information about the Speex-dev mailing list