Hello, 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. Best regards, Danny Peled R&D Software Engineer Intelligence Solutions NICE Systems Ltd. ISRAEL *+ (972) 9 769 7161 ? + (972) 54 4 602840 *Danny.Peled at nice.com <mailto:*Danny.Peled at nice.com%20> -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/speex-dev/attachments/20080421/cdcca8fa/attachment.htm
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.
Danny Peled a ?crit :> Hello, > > > > 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.Just call it multiple times. See speexdec.c as an example. Jean-Marc> > > Best regards, > > > > *Danny Peled* > > *R&D Software Engineer* > > *Intelligence Solutions* > > NICE Systems Ltd. ISRAEL > > > > (+ (972) 9 769 7161 > ? + (972) 54 4 602840 > *Danny.Peled at nice.com <mailto:*Danny.Peled at nice.com%20> > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > Speex-dev mailing list > Speex-dev at xiph.org > http://lists.xiph.org/mailman/listinfo/speex-dev
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