<div dir="ltr"><div><div><div><div>Arun,<br><br></div>Your test works very well! tks!<br></div><div>When I listen the cancelled.wav The audio start very low and after the voice is very very low and some times disapers, now it's time to fix the mechanical part (speaker / mic) and mic volume.<br></div><div><br></div>The audio is cracking , but I think there's some problem in my configuration (I will need help to fix it).<br><br><br></div>The log.<br><br>Jan 01 02:52:43 colibri-imx6-jfl pulseaudio[1051]: E: [alsa-source-HiFi wm8962-0] module-echo-cancel.c: Doing resync<br>Jan 01 02:52:43 colibri-imx6-jfl pulseaudio[1051]: E: [alsa-source-HiFi wm8962-0] module-echo-cancel.c: Playback after capture (-1638515), drop sink 104884<br>Jan 01 02:52:43 colibri-imx6-jfl pulseaudio[1051]: E: [alsa-source-HiFi wm8962-0] module-echo-cancel.c: Playback too far ahead (146059), drop source 9346<br>Jan 01 02:52:44 colibri-imx6-jfl pulseaudio[1051]: E: [alsa-source-HiFi wm8962-0] module-echo-cancel.c: Playback too far ahead (13025), drop source 832<br>Jan 01 02:52:45 colibri-imx6-jfl pulseaudio[1051]: E: [alsa-source-HiFi wm8962-0] module-echo-cancel.c: Playback too far ahead (10100), drop source 646<br>Jan 01 02:52:46 colibri-imx6-jfl pulseaudio[1051]: E: [alsa-source-HiFi wm8962-0] module-echo-cancel.c: Playback too far ahead (9965), drop source 636<br>Jan 01 02:52:47 colibri-imx6-jfl pulseaudio[1051]: E: [alsa-source-HiFi wm8962-0] module-echo-cancel.c: Playback too far ahead (10089), drop source 644<br>Jan 01 02:52:48 colibri-imx6-jfl pulseaudio[1051]: E: [alsa-source-HiFi wm8962-0] module-echo-cancel.c: Playback too far ahead (10024), drop source 640<br>Jan 01 02:52:49 colibri-imx6-jfl pulseaudio[1051]: E: [alsa-source-HiFi wm8962-0] module-echo-cancel.c: Playback after capture (-34), drop sink 22<br><br><br></div>This variable   PULSE_PROP="filter.want=echo-cancel"   fixed the problem.<br>When I was testing just like I wrote I had problems with echo.<br><br>pactl load-module module-<span class="">echo</span>-cancel source_name=echosource 
sink_name=echosink aec_method=webrtc sink_master=mastersink 
source_master=mastersource<br> gst-launch-1.0 filesrc location=some-voice-file.wav ! wavparse !<br>
  pulsesink device="echosink" \<br>
                       pulsesrc  device="echosource" ! wavenc ! filesink<br>
                       location=cancelled.wav <br><br><br>How I can configure webrtc or speex using enviroment vars (PULSE_PROP)?<br><br><br><br><div><br><br><br>Thank you very much!<br><br></div><div>Regards,<br><br></div><div>Caio Pereira<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-05-12 0:47 GMT-03:00 Arun Raghavan <span dir="ltr"><<a href="mailto:arun@arunraghavan.net" target="_blank">arun@arunraghavan.net</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Thu, 12 May 2016, at 01:41 AM, Caio wrote:<br>
> Hello!<br>
><br>
> I'm working with a embedded linux and I'm using gstreamer to talk with<br>
> other board (voice call).<br>
><br>
> To test and evaluate my project I'm using the IMX6SABRE Dual Lite Board<br>
>  (<br>
> <a href="http://www.nxp.com/products/microcontrollers-and-processors/arm-processors/i.mx-applications-processors/i.mx-6-processors/i.mx6qp/sabre-board-for-smart-devices-reference-design-based-on-the-i.mx-6-series:RDIMX6SABREBRD" rel="noreferrer" target="_blank">http://www.nxp.com/products/microcontrollers-and-processors/arm-processors/i.mx-applications-processors/i.mx-6-processors/i.mx6qp/sabre-board-for-smart-devices-reference-design-based-on-the-i.mx-6-series:RDIMX6SABREBRD</a><br>
> )<br>
><br>
>  have the pulseaudio , speex and webrtc installed in my oard,  but with<br>
>  my<br>
> tests I didn't have success with echo cancellation<br>
><br>
> In my testbed I'm using two boards in different rooms, each board has the<br>
> same softwares, to test the voice call I'm using a script with gstreamer.<br>
><br>
> There's some method to test and evaluate the echo cancellation in<br>
> embedded<br>
> environment? Someone has an advice?<br>
><br>
> I'm loading the module-echo-cancel using this command<br>
><br>
> pactl load-module module-echo-cancel source_name=echosource<br>
> sink_name=echosink aec_method=webrtc sink_master=mastersink<br>
> source_master=mastersource<br>
><br>
> (I change the webrtc to speex in other tests)<br>
><br>
> The Gstreamer Script (usage ./gstreamer-call.sh ip start)<br>
><br>
>     #!/bin/sh<br>
>     IPDEST=$1<br>
><br>
>     case "$2" in<br>
>        start)<br>
>              echo "Starting gstlaunch"<br>
>                     gst-launch-1.0 -v \<br>
>                             pulsesrc device="echosource"  \<br>
>                     ! alawenc ! rtppcmapay ! udpsink port=4000<br>
>                     host=$IPDEST<br>
> &<br>
>                     gst-launch-1.0 -v udpsrc<br>
> caps="application/x-rtp,media=(string)audio,clock-rate=(int)8000,encoding-name=(string)PCMA"<br>
> port=4000 ! \<br>
>                             rtppcmadepay ! alawdec ! audioconvert !<br>
> audioresample ! \<br>
>                             pulsesink device="echosink" \<br>
>                     &<br>
<br>
</div></div>This script should work. Can you describe what is failing? And can you<br>
attach PA server logs as well?<br>
<br>
I usually test with something like:<br>
<br>
  PULSE_PROP="filter.want=echo-cancel" \<br>
  gst-launch-1.0 filesrc location=some-voice-file.wav ! wavparse !<br>
  pulsesink \<br>
                       pulsesrc ! wavenc ! filesink<br>
                       location=cancelled.wav<br>
<br>
-- Arun<br>
_______________________________________________<br>
pulseaudio-discuss mailing list<br>
<a href="mailto:pulseaudio-discuss@lists.freedesktop.org">pulseaudio-discuss@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div>----------------------------------------------<br>Caio Pereira<br></div><div>@caio_rtp<br></div></div></div>
</div>