[pjsip] echo cancellation

Сергей Митрофанов goretz.m at gmail.com
Sat Apr 9 00:42:56 EDT 2016


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 at gmail.com>:

> 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 at gmail.com>:
>
>> 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 at gmail.com>于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 at gmail.com>:
>>>
>>>> I need to activate the echo cancelation algorithm and I try to add #define
>>>> PJMEDIA_HAS_SPEEX_AEC 1
>>>> <http://www.pjsip.org/pjmedia/docs/html/group__PJMEDIA__CONFIG.htm#ga28ceda7724d9da106c3bf52573ba5d00>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 at lists.pjsip.org
>>>> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>>>>
>>> _______________________________________________
>>> Visit our blog: http://blog.pjsip.org
>>>
>>> pjsip mailing list
>>> pjsip at lists.pjsip.org
>>> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>>>
>> _______________________________________________
>> Visit our blog: http://blog.pjsip.org
>>
>> pjsip mailing list
>> pjsip at lists.pjsip.org
>> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20160409/54da92ab/attachment-0002.html>


More information about the pjsip mailing list