<div>Hi steve,</div>
<div>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&#39;s sound api to check if that has something to do with it..<br>
<br> </div>
<div><span class="gmail_quote">On 3/31/10, <b class="gmail_sendername">Steve Kann</b> &lt;<a href="mailto:stevek@stevek.com">stevek@stevek.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div text="#000000" bgcolor="#ffffff"><br>Hi, Vipin,<br><br>    What you&#39;re going to want to do here is convert your 8-bit stereo samples into 16-bit mono samples and back again when you&#39;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&#39;s other options -- you could encode stereo if you wanted to, but it won&#39;t be simple, because JSpeex probably doesn&#39;t support that, and with 8-bit resolution, there&#39;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 type="cite"><span class="q"><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&#39;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></span><pre><hr width="90%" size="4">
_______________________________________________
Speex-dev mailing list
<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Speex-dev@xiph.org" target="_blank">Speex-dev@xiph.org</a>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.xiph.org/mailman/listinfo/speex-dev" target="_blank">http://lists.xiph.org/mailman/listinfo/speex-dev</a>
  </pre></blockquote><br> </div></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>Vipin Das<br>MTech CyberSecurity<br>Amrita School of Engineering<br>