Re: echo cancellation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It just worked out of the box in my app without any explicit MediaCodec options settings.
Looks like it is enabled and works by default once it is compiled according the ticket )

You are welcome )

сб, 9 апр. 2016 г. в 13:36, João Resende <up201107737@xxxxxxxx>:
I compiled as the ticket sugest but. I'm not getting what I should do in the  "How to use WebRTC AEC " I'm compiling using pjsua2 but how I get the Media to set that MediaConfig.ecOptions? 

I'm developing this in linux and the plataform where I want to run is android.

Thanks for the fast reply :)


2016-04-09 5:42 GMT+01:00 Сергей Митрофанов <goretz.m@xxxxxxxxx>:
Oh, forgot to mention. I use the pjsip version directly from SVN. It is not the release one, it is for some amount of commits ahead from 2.4.5

сб, 9 апр. 2016 г. в 7:38, Сергей Митрофанов <goretz.m@xxxxxxxxx>:
I'm developing for Android.

I jus followed the ticket, that I mentioned.
And disabled speex and speex-aec (actually I disabled all audio codecs except opus =) at compile time (with ./configure).

Here is my ./configure command:

TARGET_ABI=armeabi-v7a APP_PLATFORM=android-16 ./configure-android --use-ndk-cflags --disable-speex-aec --disable-g711-codec --disable-l16-codec --disable-gsm-codec --disable-g722-codec --disable-g7221-codec --disable-speex-codec --disable-ilbc-codec --disable-ffmpeg --disable-opencore-amr --disable-silk --with-openh264=/projects/openh264-1.0.0/android --with-libyuv=/projects/libyuv-android/jni --with-opus=/projects/opus/build --disable-webrtc

Feel free to adopt it for your case.

Also I have nothing special in config_site.h:

#define PJ_CONFIG_ANDROID 1
#define PJMEDIA_HAS_VIDEO 1
#include <pj/config_site_sample.h>



сб, 9 апр. 2016 г. в 6:55, 屈振华 <qzhua3@xxxxxxxxx>:
What OS system are you using with pjsip?
For Android, the speex AEC  that came with pjmedia_snd_port seem's have problem to work properly even with the latest pjproject2.4.5.
 I have to turned off the default AEC, and manually do it within the callback functions. Such as
> snd_port_param.base.ec_enabled=PJ_FALSE;
>snd_port_param._on_rec_frame_=rec_cb; >snd_port_param._on_play_frame_=play_cb;
> status=pjmedia_echo_create2(....);
You have to be careful with all the parameters, because the default setting would not work for SPEEX.
I would really hope if there were some easier ways for Android developers.

Сергей Митрофанов <goretz.m@xxxxxxxxx>于2016年4月9日周六 上午1:50写道:
Hi, I had same issue 2 weeks ago.
I just use the new webrtc echo canceller from the last commits. And it works greate!
Also I disabled al other EC and unused audio codecs...
Check this ticket for help:

https://trac.pjsip.org/repos/ticket/1888

пт, 8 апр. 2016 г. в 20:36, João Resende <ms92resende@xxxxxxxxx>:

I need to activate the echo cancelation algorithm and I try to add #define PJMEDIA_HAS_SPEEX_AEC 1 in the config_site.h but then I realise that this is the default behaviour of PJSIP. But I'm listening a lot of echo during a call.

Can someone tell me what variable should I set to solve this issue?

_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org


_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux