<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Hi,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I am new to speex so please redirect me to some links if the
question is repetative.</span></font><o:p></o:p></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Just for testing the echo canceller performance, I have added <i><span
style='font-style:italic'>mdf,fftwrap,misc,kiss_fftr,kiss_fft</span></i> source
files to my project.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Now In my multithread application when I receive packets from mice, I calls
<o:p></o:p></span></font></p>
<p class=MsoNormal><b><i><font size=2 color="#020002" face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:#020002;font-weight:
bold;font-style:italic'>speex_echo_capture(</span></font></i></b><i><font
size=2 color="#020002" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#020002;font-style:italic'>echo_state</span></font></i><i><font
size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
font-style:italic'>, <font color="#020002"><span style='color:#020002'>input_frame</span></font>,
<font color="#020002"><span style='color:#020002'>output_frame</span></font>,<font
color="#020002"><span style='color:#020002'>Youtput_frame<b><span
style='font-weight:bold'>)<o:p></o:p></span></b></span></font></span></font></i></p>
<p class=MsoNormal><b><font size=2 color="#020002" face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:#020002;font-weight:
bold'> </span></font></b><font size=2 color="#020002" face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:#020002'>with input_frame
as data received from mice(160 bytes as I am using G711 codec) and I send data out
received from second argument output_frame.<o:p></o:p></span></font></p>
<p class=MsoNormal><b><font size=2 color="#020002" face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:#020002;font-weight:
bold'><o:p> </o:p></span></font></b></p>
<p class=MsoNormal><font size=2 color="#020002" face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:#020002'>Also when I
get packet to play from remote(far) end, I calls <o:p></o:p></span></font></p>
<p class=MsoNormal><b><i><font size=2 color="#020002" face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:#020002;font-weight:
bold;font-style:italic'>speex_echo_playback(</span></font></i></b><i><font
size=2 color="#020002" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#020002;font-style:italic'>echo_state</span></font></i><i><font
size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
font-style:italic'>, <font color="#020002"><span style='color:#020002'>echo_frame<b><span
style='font-weight:bold'>)</span></b></span></font></span></font></i><font
size=2 color="#020002" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#020002'> <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#020002" face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:#020002'>with arrived
data.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#020002" face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:#020002'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#020002" face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:#020002'>If I do <b><span
style='font-weight:bold'>not pass</span></b> my data <b><span style='font-weight:
bold'>through</span></b> <b><span style='font-weight:bold'>these APIs</span></b>
I am getting voice on both side <b><span style='font-weight:bold'>correctly</span></b>
but when <b><span style='font-weight:bold'>I use these APIs I am getting just
noise on both sides</span></b>. I am getting packets on both side that is sure.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#020002" face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:#020002'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#020002" face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:#020002'>The noise is
not just any random noise but its in the pattern of silance-noise. Just like
following:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#020002" face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:#020002'>_____^_____^_____^_____^_____^_____^_____^_____^_____^_____^_____^_____^_____^_____^_____^_____^
<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#020002" face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:#020002'>Where [____->
silance ^->Noise]<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#020002" face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:#020002'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#020002" face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:#020002'>Which seems to
me as uniform.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#020002" face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:#020002'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#020002" face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:#020002'>I had just
created an echo_state variable prior to creating these two classes that manages
Receive side and send side and I am using common instance of echo_state between
these two classes.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#020002" face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:#020002'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#020002" face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:#020002'>Am I doing
anything wrong here? I have tried setting frame_size with 20,160 and frame_filter_length
as 100,256,300 etc but I found no success here.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#020002" face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:#020002'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#020002" face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:#020002'>Can anyone
please suggest me anything? I am using WM5 devices on both end. Is there
anything that this echo canceller will work with speex codec only? Do I need to
do anything special that I am missing? <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Regards,</span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Digish Gabhawala [mailto: <a href="mailto:digish@varaha.com">digish@varaha.com</a>]</span></font><o:p></o:p></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> </span><o:p></o:p></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
</div>
</body>
</html>