[Speex-dev] Need help in speex..

Vipin Das das4all at gmail.com
Tue Mar 30 23:18:45 PDT 2010


Hi steve,
Thank you for your suggestion.As per your advice i tried 16 bit samples but
the problem got worse.Now both the channels were corrupt.I tried almost al
possible combinations available but to no use.I am confused really with this
stuff..In the meantime will also see java's sound api to check if that has
something to do with it..


On 3/31/10, Steve Kann <stevek at stevek.com> wrote:
>
>
> 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 listSpeex-dev at xiph.orghttp://lists.xiph.org/mailman/listinfo/speex-dev
>
>
>
>



-- 
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/20100331/8ae87f17/attachment.htm 


More information about the Speex-dev mailing list