<div dir="ltr"><div><div><div><div>Arun,<br><br></div>I will test and send the feedback.<br><br></div>Thank you<br><br></div>Regards,<br><br></div>Caio Pereira<br></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>