[Speex-dev] Decoding multiple Speex frames

Conrad Parker conrad at metadecks.org
Mon Apr 21 06:25:30 PDT 2008


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.


More information about the Speex-dev mailing list