[Speex-dev] Speex header

Alexander Chemeris Alexander.Chemeris at sipez.com
Wed Jul 15 15:18:01 PDT 2009


On Thu, Jul 16, 2009 at 01:29, Daniel Rosado<dsrosado at gmail.com> wrote:
> so, having a speex frame, how do i know where is each sample

You can't split Speex frame into individual samples, without decoding
the full frame. And each frame is 20ms of samples, no more, no less.

> if i don't know how many bits per sample are being used.

Generally speaking this is done by means outside of RTP, e.g. SDP.
But for Speex you may also guess samplerate from the stream.

> Isn't there any info besides the data ?

It has all info required for decoding, but you likely not interested
in the details ;) You should really use something like SDP instead.

-- 
Regards,
Alexander Chemeris.

SIPez LLC.
SIP VoIP, IM and Presence Consulting
http://www.SIPez.com
tel: +1 (617) 273-4000


More information about the Speex-dev mailing list