<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">Hi Jean-Marc,<br><br>I finally make it work! Thanks for telling me that the algo will not work for 8-bit PCM. In fact I've tried using 16 bit PCM last time, but apparently there's a bug. The bug lies with the RecBuffer. The RecBuffer must be set to 320bytes instead of 160 bytes since every sample is now 16 bit. <br><br>The compression is amazing, from 320 bytes to 38bytes!<br><br>Thanks a million,<br>Carine<br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Jean-Marc Valin &lt;jean-marc.valin@usherbrooke.ca&gt;<br>To: Carine Liang &lt;carineliang@yahoo.com.sg&gt;<br>Cc: speex-dev@xiph.org<br>Sent: Tuesday, 26 December 2006 6:58:06 PM<br>Subject: Re: [Speex-dev]
 Integrating speex with VideoNet application: Constantbackground noise<br><br><div>&gt; Thanks. I've got the code for sampleenc and sampledec. But I didn't<br>&gt; know how to verify whether the decoded file is correct. So I tried to<br>&gt; analyse the decoded output and compile with my input.<br><br>How about actually listening to the output first?<br><br>&gt; Test case: PCM samples, 8 bit, 8000 samples per sec. When I pulled<br><br>Where in the manual does it say that 8-bit PCM is a valid input?<br><br>[...]<br><br>&gt; Is my decoded output expected? <br><br>Yes. Based on the "garbage in, garbage out" principle.<br><br>&gt; Since I'm dealing with a 8 bit sample,<br>&gt; am I right to say that I will not have the "big/little endian" issue?<br><br>No, just the "not the right type in the first place" issue.<br><br>&gt; What has gone wrong???<br><br>Euh, maybe not paying enough attention to the manual and the sample code?<br><br>&nbsp;&nbsp;&nbsp;&nbsp;Jean-Marc<br><br>&gt;
 <br>&gt; Regards, Carine<br>&gt; <br>&gt; <br>&gt; ----- Original Message ---- From: Jean-Marc Valin<br>&gt; &lt;jean-marc.valin@usherbrooke.ca&gt; To: Carine Liang<br>&gt; &lt;carineliang@yahoo.com.sg&gt; Cc: John Miles &lt;jmiles@pop.net&gt;;<br>&gt; speex-dev@xiph.org Sent: Monday, 25 December 2006 10:22:44 AM <br>&gt; Subject: Re: [Speex-dev] Integrating speex with VideoNet application:<br>&gt; Constantbackground noise<br>&gt; <br>&gt; Have you tried starting with sampleenc/sampledec instead of doing <br>&gt; everything from scratch. That and the manual should contain<br>&gt; everything that's needed.<br>&gt; <br>&gt; Jean-Marc<br>&gt; <br>&gt; Carine Liang a écrit :<br>&gt;&gt; Hi,<br>&gt;&gt; <br>&gt;&gt; <br>&gt;&gt; <br>&gt;&gt; I'm still unable to get rid of the background noise though I've <br>&gt;&gt; changed the PCM samples to 16 bit. I'm began to wonder if I can<br>&gt;&gt; just take the PCM samples and encode them.<br>&gt;&gt; <br>&gt;&gt; What my
 application tries to do is to record the voice from a <br>&gt;&gt; microphone, encode it, send it via the socket to a peer, decode at <br>&gt;&gt; the peer's side and play the voice. My application works fine<br>&gt;&gt; without the codec but I need to achieve a lower data rate. Anyone<br>&gt;&gt; has done that before?<br>&gt;&gt; <br>&gt;&gt; Is there anyone who's deal with encoding and decoding PCM samples<br>&gt;&gt; in windows?<br>&gt;&gt; <br>&gt;&gt; Please help.<br>&gt;&gt; <br>&gt;&gt; Carine<br>&gt;&gt; <br>&gt;&gt; ----- Original Message ---- From: John Miles &lt;jmiles@pop.net&gt; To: <br>&gt;&gt; Carine Liang &lt;carineliang@yahoo.com.sg&gt;; speex-dev@xiph.org Sent: <br>&gt;&gt; Friday, 3 November 2006 12:32:43 AM Subject: RE: [Speex-dev] <br>&gt;&gt; Integrating speex with VideoNet application: Constantbackground<br>&gt;&gt; noise<br>&gt;&gt; <br>&gt;&gt; <br>&gt;&gt; <br>&gt;&gt; <br>&gt;&gt; <br>&gt;&gt; DIV { MARGIN:0px;}<br>&gt;&gt; <br>&gt;&gt;
 <br>&gt;&gt; <br>&gt;&gt; Yes, it's necessary; Speex will encode signed 16-bit PCM data and <br>&gt;&gt; decode to the same format.&nbsp;&nbsp;See the examples that come with it.<br>&gt;&gt; <br>&gt;&gt; <br>&gt;&gt; <br>&gt;&gt; 8-bit audio is not something you would ever want to use.<br>&gt;&gt; <br>&gt;&gt; <br>&gt;&gt; <br>&gt;&gt; <br>&gt;&gt; <br>&gt;&gt; ------------------------------------------------------------------------<br>&gt;&gt; <br>&gt;&gt; <br>&gt;&gt; <br>&gt;&gt; _______________________________________________ Speex-dev mailing <br>&gt;&gt; list Speex-dev@xiph.org <br>&gt;&gt; <a target="_blank" href="http://lists.xiph.org/mailman/listinfo/speex-dev">http://lists.xiph.org/mailman/listinfo/speex-dev</a><br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; Send instant messages to your online friends<br>&gt; <a target="_blank" href="http://asia.messenger.yahoo.com">http://asia.messenger.yahoo.com</a><br></div></div><br></div></div><br>Send
 instant messages to your online friends http://asia.messenger.yahoo.com </body></html>