Hi I am using Jspeex for my project which requires compression of audio in realtime..so far i managed to capture sound using java's sound.The capturing format i use is 8 bit 8khz ,stereo pcm.The captured sound is buffered and fed to encoder.Its fed to decoder,whose output is again buffered for sometime.But when i try to play it back i could hear sound only in right channel.Left channel is fully noise.Stereo mode was used in encoder and decoder.I am not using any format converter during playback..what can be the possible cause of the noise..plz reply -- Regards, Vipin Das MTech CyberSecurity Amrita School of Engineering -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/speex-dev/attachments/20100328/838d6e2e/attachment-0001.htm
Hi I am using Jspeex for my project which requires compression of audio in realtime..so far i managed to capture sound using java's sound api.The capturing format i use is 8 bit 8khz ,stereo pcm.The captured sound is buffered and fed to encoder(narrow band,mono 16 bit).I fed the encder output to decoder,whose output is again buffered for sometime.But when i try to play it back i could hear sound only in right channel.Left channel is fully noise..I am not using any format converter during playback..what can be the possible cause of the noise..plz reply - -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/speex-dev/attachments/20100331/9bde3295/attachment.htm
Hi, Vipin, What you're going to want to do here is convert your 8-bit stereo samples into 16-bit mono samples and back again when you're done(*). What you are actually doing here, it sounds like, is feeding 2 8-bit mono samples into Jspeex, which expects 16-bit mono. So, the most-significant-byte is in the right channel, and more or less gets encoded/decoded properly, but the least-significant byte just looks like noise. (*) There's other options -- you could encode stereo if you wanted to, but it won't be simple, because JSpeex probably doesn't support that, and with 8-bit resolution, there's probably nothing interesting. A better idea would be to try to get 16-bit samples instead of 8-bit samples. -SteveK Vipin Das wrote:> > > > > Hi > I am using Jspeex for my project which requires compression of audio > in realtime..so far i managed to capture sound using java's sound > api.The capturing format i use is 8 bit 8khz ,stereo pcm.The captured > sound is buffered and fed to encoder(narrow band,mono 16 bit).I fed > the encder output to decoder,whose output is again buffered for > sometime.But when i try to play it back i could hear sound only in > right channel.Left channel is fully noise..I am not using any format > converter during playback..what can be the possible cause of the > noise..plz reply > > - > ------------------------------------------------------------------------ > > _______________________________________________ > 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/20100330/daf1dc08/attachment.htm
>Hi >I am using Jspeex for my project which requires compression of audio in >realtime..so far i managed to capture sound using java's sound api.The >capturing format i use is 8 bit 8khz ,stereo pcm.The captured sound is"8bit 8khz stereo" vs "16bit 8khz mono", how it can work normally?>buffered and fed to encoder(narrow band,mono 16 bit).I fed the encder output >to decoder,whose output is again buffered for sometime.But when i try to >play it back i could hear sound only in right channel.Left channel is fully >noise..I am not using any format converter during playback..what can be >the possible cause of the noise..plz reply > >- > >_______________________________________________ >Speex-dev mailing list >Speex-dev at xiph.org >http://lists.xiph.org/mailman/listinfo/speex-dev >= = = = = = = = = = = = = = = = = = = =