# Echo Cancellation Issue

**URL:** <https://forum.kirupa.com/t/echo-cancellation-issue/330452>\
**Category:** Uncategorized\
**Created:** [January 24, 2013, 8:22am UTC](https://forum.kirupa.com/t/echo-cancellation-issue/330452 "2013-01-24T08:22:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DrMaxMad](https://avatars.discourse-cdn.com/v4/letter/d/d26b3c/32.png) [@DrMaxMad](https://forum.kirupa.com/u/DrMaxMad)\
**Post date:** [January 24, 2013, 8:22am UTC](https://forum.kirupa.com/t/echo-cancellation-issue/330452/1 "2013-01-24T08:22:18Z")

</div>

Hi there guys,  
I have little issue with a live - conference application that i have developed using flex 4.5, now for a long time there were no issue but in last two weeks there has been major echo cancellation issue where in some instance echo cancellation does not work at all. what i noticed that it started happening after the update of flash player from 11.2 to 11.5 and also it generally occurs on macbooks. Below is the code where i get the microphone, let me know if some can help me resolve this issue.

public static function getMicrophone(index:int, echoSuppresion:Boolean):Microphone  
{

```
        //trace ("echo " + echoSuppresion);
        var microphone:Microphone = Microphone.getEnhancedMicrophone(index);
        if (microphone != null && echoSuppresion) {
            var options:MicrophoneEnhancedOptions = new MicrophoneEnhancedOptions();
            options.autoGain = false; //was true before
            options.echoPath = 256;
            options.mode = MicrophoneEnhancedMode.FULL_DUPLEX;
            options.nonLinearProcessing = true; //was false before
            microphone.enhancedOptions = options;
            microphone.codec = SoundCodec.SPEEX;
            microphone.setSilenceLevel(5,10000);
            microphone.rate = 11;
            microphone.encodeQuality = 6;
        } else {
            microphone = Microphone.getMicrophone(index);
            microphone.rate = 11;
            microphone.encodeQuality = 6;
            microphone.setSilenceLevel(5,10000);
            microphone.codec = SoundCodec.SPEEX;
            traceOut("No AEC supported Microphone available, this will cause Echo. Please attach headphones to avoid.");
        }
        microphone.setUseEchoSuppression(true);
        _microphone = microphone;
        return microphone;
    }

```

Let me know what can i do to make this work again.
