Skip to main content
Participant
December 17, 2013
Question

How to make AEC work with external webcam?

  • December 17, 2013
  • 2 replies
  • 1171 views

Hi everyone.

What I'm trying to do is to make AEC work with external webcams. My target: flash in browser and desktop AIR app.

I have the following situations:

1. Laptop Lenovo S400, really not the best laptop, with MIC placed right above the speakers. But... AEC works excellent!

2. PC with Logitech 1080p webcam (which has stereo microphones) and external speakers. But... AEC doesn't work at all. It even doesn't try to reduce any speakers sound in microphone data.

3. The same laptop with connected Logitech camera and again - AEC doesn't work.

In each situation I use absolutaly the same environment(Win7, target player - 11.9, Flex 4.6.0 SDK), code, compiller, etc..

And I was unable to find any info for such situation.

Does anybody have experience with such problem? I will be really grateful for any help.

Here are parts of code:

//  somwhere early...

_microphone = Microphone.getEnhancedMicrophone();

//  called before we attach microphone to NetStream

private function _setMicrophoneMode():void

        {

            _microphone.setLoopBack(false);

            _microphone.framesPerPacket = 1;

            _microphone.setSilenceLevel(0, 2000);

            _microphone.codec = SoundCodec.SPEEX;

            _microphone.encodeQuality = 10;

            _microphone.gain = 50;

            _microphone.rate = 44;

           

            if (_useEchoSuppression)

            {

            var options:MicrophoneEnhancedOptions = _microphone.enhancedOptions;

            options.mode = MicrophoneEnhancedMode.HALF_DUPLEX;// using this for external webcams

            options.echoPath = 128;

            options.nonLinearProcessing = true;

            _microphone.enhancedOptions = options;

            } else

               {

                _microphone.setUseEchoSuppression(true);

                }

                trace(_microphone);

        }

This topic has been closed for replies.

2 replies

flashdictionary
Inspiring
March 21, 2014

I think that with the current state of the Adobe AIR Adobe FLash platforms, there is too much work to do to get echo cancellation to work on all platforms, and to get video to work as expected too. I think Adobe could solve many of these issues by implementing native WebRTC into the AIR platform, see this post here:

http://forums.adobe.com/message/6232094#6232094

Inspiring
December 18, 2013
Participant
December 18, 2013

Thank you for the link, but that article was the first one that I have read.

I'm trying now to find solution and in case of success I will report here.