<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 <jean-marc.valin@usherbrooke.ca><br>To: Carine Liang <carineliang@yahoo.com.sg><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>> Thanks. I've got the code for sampleenc and sampledec. But I didn't<br>> know how to verify whether the decoded file is correct. So I tried to<br>> analyse the decoded output and compile with my input.<br><br>How about actually listening to the output first?<br><br>> 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>> Is my decoded output expected? <br><br>Yes. Based on the "garbage in, garbage out" principle.<br><br>> Since I'm dealing with a 8 bit sample,<br>> 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>> What has gone wrong???<br><br>Euh, maybe not paying enough attention to the manual and the sample code?<br><br> Jean-Marc<br><br>>
<br>> Regards, Carine<br>> <br>> <br>> ----- Original Message ---- From: Jean-Marc Valin<br>> <jean-marc.valin@usherbrooke.ca> To: Carine Liang<br>> <carineliang@yahoo.com.sg> Cc: John Miles <jmiles@pop.net>;<br>> speex-dev@xiph.org Sent: Monday, 25 December 2006 10:22:44 AM <br>> Subject: Re: [Speex-dev] Integrating speex with VideoNet application:<br>> Constantbackground noise<br>> <br>> Have you tried starting with sampleenc/sampledec instead of doing <br>> everything from scratch. That and the manual should contain<br>> everything that's needed.<br>> <br>> Jean-Marc<br>> <br>> Carine Liang a écrit :<br>>> Hi,<br>>> <br>>> <br>>> <br>>> I'm still unable to get rid of the background noise though I've <br>>> changed the PCM samples to 16 bit. I'm began to wonder if I can<br>>> just take the PCM samples and encode them.<br>>> <br>>> What my
application tries to do is to record the voice from a <br>>> microphone, encode it, send it via the socket to a peer, decode at <br>>> the peer's side and play the voice. My application works fine<br>>> without the codec but I need to achieve a lower data rate. Anyone<br>>> has done that before?<br>>> <br>>> Is there anyone who's deal with encoding and decoding PCM samples<br>>> in windows?<br>>> <br>>> Please help.<br>>> <br>>> Carine<br>>> <br>>> ----- Original Message ---- From: John Miles <jmiles@pop.net> To: <br>>> Carine Liang <carineliang@yahoo.com.sg>; speex-dev@xiph.org Sent: <br>>> Friday, 3 November 2006 12:32:43 AM Subject: RE: [Speex-dev] <br>>> Integrating speex with VideoNet application: Constantbackground<br>>> noise<br>>> <br>>> <br>>> <br>>> <br>>> <br>>> DIV { MARGIN:0px;}<br>>> <br>>>
<br>>> <br>>> Yes, it's necessary; Speex will encode signed 16-bit PCM data and <br>>> decode to the same format. See the examples that come with it.<br>>> <br>>> <br>>> <br>>> 8-bit audio is not something you would ever want to use.<br>>> <br>>> <br>>> <br>>> <br>>> <br>>> ------------------------------------------------------------------------<br>>> <br>>> <br>>> <br>>> _______________________________________________ Speex-dev mailing <br>>> list Speex-dev@xiph.org <br>>> <a target="_blank" href="http://lists.xiph.org/mailman/listinfo/speex-dev">http://lists.xiph.org/mailman/listinfo/speex-dev</a><br>> <br>> <br>> <br>> <br>> <br>> <br>> Send instant messages to your online friends<br>> <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>