I have a couple apps running on my machine; one takes a PCM audio stream, converts it to Speex, and sends it over the network using RTP. The other receives the RTP packets, and then converts the Speex data back to PCM. The PCM is then played out the audio system. I'm currently ending up w/ static. Anybody have any pointers as to how to debug the situation? Thanks. -- Jeff Ramin Software Engineer Singlewire Software 2601 W Beltline Hwy #510 Madison, WI 53713 Phone Direct - 608.661.1172 www.singlewire.com
I found the problem I was having (described below), and I'm now able to hear the audio at the destination. However, the audio does not play smoothly. It has hiccups and jumps and stops. I can't guarantee this is the problem, but it may be related to delays caused when the Speex2PcmAudioInputStream needs to process an Ogg page header. Has anybody else had problems decoding speex that is being streamed? Any suggestions as to how to fix this? Thanks. On 11/03/2010 03:05 PM, Jeff Ramin wrote:> > I have a couple apps running on my machine; one takes a PCM audio stream, > converts it to Speex, and sends it over the network using RTP. The > other receives > the RTP packets, and then converts the Speex data back to PCM. The PCM > is then > played out the audio system. > > I'm currently ending up w/ static. Anybody have any pointers as to how > to debug > the situation? > > Thanks. >-- Jeff Ramin Software Engineer Singlewire Software 2601 W Beltline Hwy #510 Madison, WI 53713 Phone Direct - 608.661.1172 www.singlewire.com
Lots of possible reasons. What are you using for your jitter buffer? What are you using as your timer for submitting decoded packets to the sound card? Ken Smith Cell: 425-443-2359 Email: ken at alanta.com Blog: http://blog.wouldbetheologian.com/ On Fri, Nov 5, 2010 at 6:55 AM, Jeff Ramin <jeff.ramin at singlewire.com>wrote:> > I found the problem I was having (described below), and I'm now able to > hear the audio at the destination. > > However, the audio does not play smoothly. It has hiccups and jumps and > stops. I can't guarantee this is the problem, but it may be related to > delays > caused when the Speex2PcmAudioInputStream needs to process an Ogg > page header. > > Has anybody else had problems decoding speex that is being streamed? Any > suggestions as to how to fix this? > > Thanks. > > > On 11/03/2010 03:05 PM, Jeff Ramin wrote: > > > > I have a couple apps running on my machine; one takes a PCM audio stream, > > converts it to Speex, and sends it over the network using RTP. The > > other receives > > the RTP packets, and then converts the Speex data back to PCM. The PCM > > is then > > played out the audio system. > > > > I'm currently ending up w/ static. Anybody have any pointers as to how > > to debug > > the situation? > > > > Thanks. > > > > > -- > Jeff Ramin > Software Engineer > Singlewire Software > 2601 W Beltline Hwy #510 > Madison, WI 53713 > > Phone Direct - 608.661.1172 > www.singlewire.com > > _______________________________________________ > Speex-dev mailing list > Speex-dev at xiph.org > http://lists.xiph.org/mailman/listinfo/speex-dev >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/speex-dev/attachments/20101105/dba54e17/attachment.htm
Jeff,> I found the problem I was having (described below), and I'm now able to > hear the audio at the destination. > > However, the audio does not play smoothly. It has hiccups and jumps and > stops. I can't guarantee this is the problem, but it may be related to > delays > caused when the Speex2PcmAudioInputStream needs to process an Ogg > page header. > > Has anybody else had problems decoding speex that is being streamed? Any > suggestions as to how to fix this?We first used the speexenc speexdec sources which encapsulate into an ogg stream. Once that worked we decided to get rid of the ogg encapsulator altogether and keep only the speex stream data since we were in charge of both encoding and decoding. The sample code at http://www.speex.org/docs/manual/speex-manual/node13.html is IMHO a lot easier than having to deal with all the ogg encapsulation if you don't need it. -Pascal