Hi Shridhar,<br>
<br>Sample rate conversion is not enough to solve this problem. I have tried this method several months<br>ago. The first step is to measure the difference between sample rate of capturing and rendering. Then<br>resampling (by what you said "sinc interpolation") one signal to eliminate the difference. The frequency<br>step in my experiment is less than 0.1Hz. I have tried speex AEC after resampling, much more echo is<br>cancelled than the one without resampling. But there is still echo can be heared. <br>After all, frequency step of sample rate conversion is limited, mismatch is still exist after resampling.<br>Someone told me that capture and render codec have different clock generator which shift independently.<br>And LMS algorithm is very sensitive to the difference between sample rates.<br><br>Sincerely<br>Maoquan<br><div></div><br>At 2011-04-12 21:46:26£¬"Shridhar,&nbsp;Vasant"&nbsp;&lt;vasant.shridhar@harman.com&gt; wrote:<br> <blockquote id="isReplyContent" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><div class="WordSection1"><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">I would imagine that it is handle through basic asynchronous sample rate conversion.&nbsp; There is a lot of literature out there on the different techniques to do this.&nbsp; A common method is sinc interpolation.&nbsp; This is how I have handle these types of things in the past.<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Vasant Shridhar<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p><div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal" style="margin:0in;margin-bottom:.0001pt"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> <a href="mailto:speex-dev-bounces@xiph.org">speex-dev-bounces@xiph.org</a> [mailto:<a href="mailto:speex-dev-bounces@xiph.org">speex-dev-bounces@xiph.org</a>] <b>On Behalf Of </b>LiMaoquan2000<br><b>Sent:</b> Tuesday, April 12, 2011 12:36 AM<br><b>To:</b> speex-dev<br><b>Subject:</b> [Speex-dev] Anyone knows how microsoft AEC can deal with mismatches between clocks of capture and render streams?<o:p></o:p></span></p></div></div><p class="MsoNormal"><o:p>&nbsp;</o:p></p><p><span style="font-size:13.5pt">Hi all,</span><o:p></o:p></p><p><span style="font-size:13.5pt">We all know that mismatch between clocks of ADCs of far-end voice and near-end voice is not allowed in a time-domain or frequency-domain LMS based AEC system. It means that capture and render audio streams must be synchronized to a same sample rate.&nbsp;However, I found that&nbsp;this restriction is removed in microsoft AEC from Windows XP SP1. Anyone knows how microsoft AEC do it? This technology is much helpful for us to implement AEC in common PC. We know that most low-cost soundcards have different sample rates in capturing and rendering which prevents LMS based AEC from being used in most computer.</span><o:p></o:p></p><p><a href="http://msdn.microsoft.com/en-us/library/ff536174%28VS.85%29.aspx"><span style="font-size:13.5pt">http://msdn.microsoft.com/en-us/library/ff536174(VS.85).aspx</span></a><br><em><span style="font-size:13.5pt">In Windows XP, the clock rate must be matched between the capture and render streams. The AEC system filter implements no mechanism for matching sample rates across devices. .............&nbsp;In Windows XP SP1, Windows Server 2003, and later, this limitation does not exist. The AEC system filter correctly handles mismatches between the clocks for the capture and render streams, and separate devices can be used for capture and rendering.</span></em><o:p></o:p></p><p><span style="font-size:13.5pt">Maoquan</span><o:p></o:p></p></div></blockquote><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>