View Full Version : Speex codec

03-31-2004, 07:43 AM
Hello guys,

I have accidentally bumped into this forum while trying to find some info on Speex codec. I would really appreciate if someone helps me to resolve some issues how to use this codec.

here is some info.

I am using Dialogic T1 card to receive voice (mu-law, 64Kbit / sec). Every time the application accumulates 1536 bytes of voice, it needs to compress and send it over IP.

I am stuck how to use Speex to compress it. The function looks like this:

void CompressAndSend (const char* cData, int iLength = /*1536*/ )
// What am I supposed to write here to compress it correctly?

thanks a lot

04-01-2004, 07:08 AM
Get the SDK and look at the example command line encoder, at its basis it has a loop that feeds data into the codec.