Hi folks. The jspeex library has classes for converting speex to pcm and vice-versa. I also have other code that converts from G.711 to pcm (and vice-versa). I want to transcode G.711 to speex, using an input stream. Can I accomplish this in one step, or must I go G.711 -> PCM -> Speex? If possible in one step, is there some example code I could look at for reference? Thanks! -- Jeff Ramin Software Engineer Singlewire Software 2601 W Beltline Hwy #510 Madison, WI 53713 Phone Direct - 608.661.1172 www.singlewire.com
Jeff Ramin wrote:> I want to transcode G.711 to speex, using an input stream. Can I > accomplish this in one step,There's no sane reason to want to do this. Decoding G.711 is computationally an extremely cheap operation; it can be as little as one table lookup per sample.> or must I go G.711 -> PCM -> Speex?This is the only route. Erik -- ---------------------------------------------------------------------- Erik de Castro Lopo http://www.mega-nerd.com/
> Hi folks. > > The jspeex library has classes for converting speex to pcm and vice-versa. I > also have other code that converts from G.711 to pcm (and vice-versa). > > I want to transcode G.711 to speex, using an input stream. Can I accomplish > this in one step, or must I go G.711 -> PCM -> Speex? If possible in one step, > is there some example code I could look at for reference? > > Thanks! >Do g711->pcm->speex. G711->pcm perhaps takes 1000 less cpu time than the pcm->speex step, so, I wouldn't even bother about 0.1% speedup if it take more than 15 minutes of coding.