Hi - I am currently developing a RTSP/RTP/SDP solution to stream Speex encoded data. Using my current source, I have successfully streamed u-law and PCM encoded audio but have been unsuccessful thus far with Speex. Because of some constraints of my system, I am encoding audio at 11.025kHz. I am still using the 160 samples per frame which makes my frame size 28 bytes. I have successfully written the SDP needed to describe the Speex stream but I haven't found a player that will play the stream. I could be doing something wrong, but does anyone know of any players that can play RTP Speex streams so I can be sure that my solution is incorrect? Also, I have looked over the draft RFC of the Speex RTP payload and I was curious to know if, because I am not using a standard sample rate, my solution will work. In the draft RFC (and the Speex manual for that matter) it always refers to Speex frames containing 20ms of audio. In my case, a Speex frame actually contains roughly 14.5 seconds of audio. Am I going to need to hack the Speex encoder to make my frames be 20ms in order for the RTP to successfully play? Any advice/help anyone can give would be greatly appreciated. Thanks! Randy --------------------------------- The fish are biting. Get more visitors on your site using Yahoo! Search Marketing. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/speex-dev/attachments/20070202/c123897f/attachment.html
Hi again - Sorry about the second email, but I just noticed an error in my email below. The following line should be corrected: In my case, a Speex frame actually contains roughly 14.5ms of audio. Thanks! Randy Randy Schefiele <scheifele2001@yahoo.com> wrote: Hi - I am currently developing a RTSP/RTP/SDP solution to stream Speex encoded data. Using my current source, I have successfully streamed u-law and PCM encoded audio but have been unsuccessful thus far with Speex. Because of some constraints of my system, I am encoding audio at 11.025kHz. I am still using the 160 samples per frame which makes my frame size 28 bytes. I have successfully written the SDP needed to describe the Speex stream but I haven't found a player that will play the stream. I could be doing something wrong, but does anyone know of any players that can play RTP Speex streams so I can be sure that my solution is incorrect? Also, I have looked over the draft RFC of the Speex RTP payload and I was curious to know if, because I am not using a standard sample rate, my solution will work. In the draft RFC (and the Speex manual for that matter) it always refers to Speex frames containing 20ms of audio. In my case, a Speex frame actually contains roughly 14.5 seconds of audio. Am I going to need to hack the Speex encoder to make my frames be 20ms in order for the RTP to successfully play? Any advice/help anyone can give would be greatly appreciated. Thanks! Randy --------------------------------- The fish are biting. Get more visitors on your site using Yahoo! Search Marketing._______________________________________________ Speex-dev mailing list Speex-dev@xiph.org http://lists.xiph.org/mailman/listinfo/speex-dev --------------------------------- Have a burning question? Go to Yahoo! Answers and get answers from real people who know. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/speex-dev/attachments/20070202/7e3d56b5/attachment.htm
Hi Randy, One thing I would note is that speex is designed for 8kHz, 16kHz or 32kHz. 160 samples is equal to 20ms of 8kHz audio. Have you tried resampling from 11.025kHz to 8kHz and then using the speex 8kHz mode? (nb, or narrow band). Or, if you want to preserve the higher quality of your 11.025kHz sample rate, resample to 16kHz and use the wideband speex encoder. I believe there is new resampling functionality in the speex svn head, although I haven't tested it yet. You might also want to check out 'Secret Rabbit Code' for your resampling. Hope this helps. Dave ________________________________ From: speex-dev-bounces@xiph.org [mailto:speex-dev-bounces@xiph.org] On Behalf Of Randy Schefiele Sent: Saturday, 3 February 2007 7:12 AM To: speex-dev@xiph.org Subject: [Speex-dev] Speex and RTP Hi - I am currently developing a RTSP/RTP/SDP solution to stream Speex encoded data. Using my current source, I have successfully streamed u-law and PCM encoded audio but have been unsuccessful thus far with Speex. Because of some constraints of my system, I am encoding audio at 11.025kHz. I am still using the 160 samples per frame which makes my frame size 28 bytes. I have successfully written the SDP needed to describe the Speex stream but I haven't found a player that will play the stream. I could be doing something wrong, but does anyone know of any players that can play RTP Speex streams so I can be sure that my solution is incorrect? Also, I have looked over the draft RFC of the Speex RTP payload and I was curious to know if, because I am not using a standard sample rate, my solution will work. In the draft RFC (and the Speex manual for that matter) it always refers to Speex frames containing 20ms of audio. In my case, a Speex frame actually contains roughly 14.5 seconds of audio. Am I going to need to hack the Speex encoder to make my frames be 20ms in order for the RTP to successfully play? Any advice/help anyone can give would be greatly appreciated. Thanks! Randy ________________________________ The fish are biting. Get more visitors <http://us.rd.yahoo.com/evt=49679/*http://searchmarketing.yahoo.com/arp/ sponsoredsearch_v2.php?o=US2140&cmp=Yahoo&ctv=Q107Tagline&s=Y&s2=EM&b=50> on your site using Yahoo! Search Marketing.<http://us.rd.yahoo.com/evt=49679/*http://searchmarketing.yahoo.com/arp/ sponsoredsearch_v2.php?o=US2140&cmp=Yahoo&ctv=Q107Tagline&s=Y&s2=EM&b=50>-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/speex-dev/attachments/20070205/bf8a6a16/attachment.html
> I believe there is new resampling functionality in the speex svn head, > although I haven't tested it yet. You might also want to check out > 'Secret Rabbit Code' for your resampling.Yes, I've just been working on a resampler recently. Its changing a lot, but it's now usable. I'd actually be quite happy to have some feedback on it. Jean-Marc> Hope this helps. > Dave > > > ________________________________ > > From: speex-dev-bounces@xiph.org > [mailto:speex-dev-bounces@xiph.org] On Behalf Of Randy Schefiele > Sent: Saturday, 3 February 2007 7:12 AM > To: speex-dev@xiph.org > Subject: [Speex-dev] Speex and RTP > > > Hi - > > I am currently developing a RTSP/RTP/SDP solution to stream > Speex encoded data. Using my current source, I have successfully > streamed u-law and PCM encoded audio but have been unsuccessful thus far > with Speex. > > Because of some constraints of my system, I am encoding audio at > 11.025kHz. I am still using the 160 samples per frame which makes my > frame size 28 bytes. I have successfully written the SDP needed to > describe the Speex stream but I haven't found a player that will play > the stream. I could be doing something wrong, but does anyone know of > any players that can play RTP Speex streams so I can be sure that my > solution is incorrect? > > Also, I have looked over the draft RFC of the Speex RTP payload > and I was curious to know if, because I am not using a standard sample > rate, my solution will work. In the draft RFC (and the Speex manual for > that matter) it always refers to Speex frames containing 20ms of audio. > In my case, a Speex frame actually contains roughly 14.5 seconds of > audio. Am I going to need to hack the Speex encoder to make my frames > be 20ms in order for the RTP to successfully play? > > Any advice/help anyone can give would be greatly appreciated. > > Thanks! > Randy > > > > ________________________________ > > The fish are biting. > Get more visitors > <http://us.rd.yahoo.com/evt=49679/*http://searchmarketing.yahoo.com/arp/ > sponsoredsearch_v2.php?o=US2140&cmp=Yahoo&ctv=Q107Tagline&s=Y&s2=EM&b=50 >> on your site using Yahoo! Search Marketing. > <http://us.rd.yahoo.com/evt=49679/*http://searchmarketing.yahoo.com/arp/ > sponsoredsearch_v2.php?o=US2140&cmp=Yahoo&ctv=Q107Tagline&s=Y&s2=EM&b=50 > > > > ------------------------------------------------------------------------ > > _______________________________________________ > Speex-dev mailing list > Speex-dev@xiph.org > http://lists.xiph.org/mailman/listinfo/speex-dev