<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
Hi, Vipin,<br>
<br>
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.<br>
<br>
(*) 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. <br>
<br>
-SteveK<br>
<br>
<br>
<br>
Vipin Das wrote:
<blockquote
cite="mid:6186cbb41003301213g328d3482x9b906027a23fb4d1@mail.gmail.com"
type="cite"><br>
<br>
<div class="gmail_quote"><br>
<br>
Hi
<div>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 <br clear="all">
<br>
-<br>
</div>
</div>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Speex-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Speex-dev@xiph.org">Speex-dev@xiph.org</a>
<a class="moz-txt-link-freetext" href="http://lists.xiph.org/mailman/listinfo/speex-dev">http://lists.xiph.org/mailman/listinfo/speex-dev</a>
</pre>
</blockquote>
<br>
</body>
</html>