Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

My Android device cannot do echo cancellation? #183

Open
SmartSystemElectronics opened this issue Nov 7, 2022 · 3 comments
Open

My Android device cannot do echo cancellation? #183

SmartSystemElectronics opened this issue Nov 7, 2022 · 3 comments

Comments

@SmartSystemElectronics
Copy link

SmartSystemElectronics commented Nov 7, 2022

  Endpoint ep = new Endpoint();
  epGlobal = ep;
  ep.libCreate();

  EpConfig epConfig = new EpConfig();
  ep.libInit( epConfig );

  MediaConfig media_cfg =epConfig.getMedConfig();

  media_cfg.setSndAutoCloseTime(0);
  media_cfg.setEcOptions(pjmedia_echo_flag.PJMEDIA_ECHO_SPEEX
      |pjmedia_echo_flag.PJMEDIA_ECHO_USE_NOISE_SUPPRESSOR
      |pjmedia_echo_flag.PJMEDIA_ECHO_AGGRESSIVENESS_AGGRESSIVE);

  media_cfg.setEcTailLen(200);
  media_cfg.setQuality(10);
  media_cfg.setHasIoqueue(true);
  media_cfg.setThreadCnt(2);
  media_cfg.setClockRate(16000);

  // Create SIP transport. Error handling sample is shown
  TransportConfig sipTpConfig = new TransportConfig();
  sipTpConfig.setPort(5060);
  ep.transportCreate(pjsip_transport_type_e.PJSIP_TRANSPORT_UDP, sipTpConfig);
  // Start the library
  ep.libStart();

Actually, I configure my sip settings as you see above part. I set echo options with setEcOptions and setEcTailLen to 200. But, my device cannot echo cancellation. When I speak from intercom to custom smartphone device, I can hear my voice. In the other hand when I speak from my custom smartphone device, I didn't hear my voice. I think, this means my smartphone device cannot echo cancellation. In my device, there is no sound card in its board. Maybe that could cause this problem. I don't know it is hardware problem or not, but if it's hardware related, can I fix this with software? Do you have any advice to fix this?

About my device;

Rockchip px30_evb
Android version : 8.1.0
Kernel version : 4.4.138 (gcc version 6.3.1 20170404 (Linaro GCC 6.3 - 2017.05))

@ashishsecrets
Copy link

microphone in communication mode when handling a call then to mode normal when call has ended

@defeden
Copy link

defeden commented Jan 18, 2024

I am encountering an issue with echo cancellation when using the loudspeaker. Even after setting the pjmedia_echo_flag.PJMEDIA_ECHO_USE_NOISE_SUPPRESSOR option, there is no noticeable improvement. The audio remains unintelligible when the loudspeaker is enabled.

@xiezhouyan1027
Copy link

Yes, I have the same problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants