Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Acoustic Echo Cancellation with Adobe Air on mobile

Does anybody achieved echo cancellation in mobile application built by Adobe Air?

There are:

  • Microphone.getEnhancedMicrophone() but it returns null on mobile device.

  • Microphone.setUseEchoSuppression(true) also doesn't work.

  • Maybe with ANE? I saw echo suppression settings in Apple Docs

Anybody?

like image 635
Stan Reshetnyk Avatar asked Feb 22 '13 20:02

Stan Reshetnyk


3 Answers

It is now implemented in the latest AIR SDKs (v22 and v23).

https://helpx.adobe.com/flash-player/release-note/fp_23_air_23_release_notes.html

So you can now use Microphone.getEnhancedMicrophone().

And you will also need to add this permission for Android:

<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />

like image 113
davee44 Avatar answered Nov 15 '22 01:11

davee44


There is no known solution currently. Echo suppression has been promised for 4 years. The above code will NOT work as Microphone.setUseEchoSuppression(true) does not work on Android using Adobe AIR. The ability to detect audio coming through Netstream also does not work so hand coding a solution using volume and gain also does not work. I considering rewriting my entire video chat app because of the echo suppression issue. Adobe apparently has failed to work with Google to find a solution.

like image 36
user1982884 Avatar answered Nov 15 '22 00:11

user1982884


No, Microphone.setUseEchoSuppression does nothing. It is just a placeholder function that Adobe planned to implement at some point.

As of December 17, 2015, Adobe has not addressed AEC for AIR on mobile devices, on both Apple and Android platforms.

However, a contact of mine talked with Chris Campbell at Adobe a couple of times regarding AEC for AIR Mobile, and Chris said they had cleared legal WRT licensing, and was pitching AEC for inclusion in AIR 20 (December 2015).

I haven't seen any other indications that Adobe is going to do this or not. I know it would be a tremendous enabler for developers of video chat-based apps, to include support for mobile devices. We have AEC on web, and desktop AIR. Just need mobile to create omni-channel video solutions.

like image 44
Erik Avatar answered Nov 15 '22 01:11

Erik