[Speex-dev] Decoding multiple Speex frames
Danny Peled
Danny.Peled at nice.com
Mon Apr 21 22:11:06 PDT 2008
Hello,
Sorry for not explaining myself in my previous mail.
As you may know, one RTP payload may contain several Speex frames.
I also know that there is the ptime parameter in the SDP...
The question is:
How do I know the number of Speex frames in that payload before decoding the data?
I know that I can call speex_decode_int() several time until it returns end of stream.
BUT it there any API for getting the number of Speex frames in a raw data without decoding it?
Thanks again,
Danny
-----Original Message-----
From: conrad.parker at gmail.com [mailto:conrad.parker at gmail.com] On Behalf Of Conrad Parker
Sent: Monday, April 21, 2008 4:26 PM
To: Danny Peled
Cc: speex-dev at xiph.org
Subject: Re: [Speex-dev] Decoding multiple Speex frames
On 21/04/2008, Danny Peled <Danny.Peled at nice.com> wrote:
>
> Hello,
Hi,
> Could you please explain or send an example for decoding a packet that
> contains multiple Speex frames.
>
> According to the API document the speex_decode_int() decodes only one frame
> of speech.
the frames are just concatenated together in an Ogg Speex packet.
Simply call speex_decode_int() in a loop, nframes times, like in
speexdec:
https://trac.xiph.org/browser/trunk/speex/src/speexdec.c#L677
cheers,
Conrad.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/speex-dev/attachments/20080422/2615c428/attachment.htm
More information about the Speex-dev
mailing list