I&#39;m trying to use the echo cancellation module on my embedded platform but it seems to be taking all the cpu usage and renders audio useless.<div><br></div><div>I&#39;m continually seeing these messages:</div><div><div>
warning: The echo canceller started acting funny and got slapped (reset). It swears it will behave now.</div><div>D: module-echo-cancel.c: diff -269 (43555 - 88163 + 44155) 0 0 9600 184</div><div>E: module-echo-cancel.c: Playback after capture (-269), drop sink 84</div>
<div>warning: The echo canceller started acting funny and got slapped (reset). It swears it will behave now.</div><div>warning: The echo canceller started acting funny and got slapped (reset). It swears it will behave now.</div>
<div>D: module-echo-cancel.c: diff 475 (42663 - 87687 + 45315) 0 0 9600 184</div><div>warning: The echo canceller started acting funny and got slapped (reset). It swears it will behave now.</div><div>D: module-echo-cancel.c: diff 168 (39254 - 87687 + 48410) 0 0 9600 191</div>
<div>D: module-echo-cancel.c: diff -411 (38089 - 87687 + 49002) 0 0 9600 185</div><div>E: module-echo-cancel.c: Playback after capture (-411), drop sink 112</div><div>warning: The echo canceller started acting funny and got slapped (reset). It swears it will behave now.</div>
<div>warning: The echo canceller started acting funny and got slapped (reset). It swears it will behave now.</div><div>D: module-echo-cancel.c: diff 1491 (41407 - 87052 + 46961) 0 0 9600 175</div><div>E: module-echo-cancel.c: playback too far ahead (1491), drop source 260</div>
<div>warning: The echo canceller started acting funny and got slapped (reset). It swears it will behave now.</div><div>warning: The echo canceller started acting funny and got slapped (reset). It swears it will behave now.</div>
<div>D: module-echo-cancel.c: diff -1166 (44921 - 88526 + 42252) 0 0 9600 187</div><div>E: module-echo-cancel.c: Playback after capture (-1166), drop sink 244</div><div><br></div><div>cpu is at 90-100% at the highest cpu scaling.</div>
<div><br></div><div>I was loading the module like so in my .pa conf file:</div><div><div><br></div><div>load-module module-echo-cancel source_name=echosource source_master=pcm_input sink_name=echosink sink_master=pcm_output rate=44100 channels=2</div>
</div><div><br></div><div>Is there a step I am missing, or a link to documentation on how to set up the module properly?</div><div><br></div>Thanks<br>-- <br>-baeksanchang<br>
</div>