This content has been marked as final.
Show 1 reply
-
1. Re: Audio echo cancellation not working using RTMP
kenmckaba2 Nov 26, 2014 9:49 AM (in response to kenmckaba2)More complete code:
netConnection = new NetConnection();
netConnection.connect("rtmp://whatever.com/phone");
incomingNetStream = new NetStream(netConnection);
incomingNetStream.client = this;
incomingNetStream.bufferTime = 0.2;
incomingNetStream.play("play");
incomingNetStream.receiveAudio(true);
outgoingNetStream = new NetStream(netConnection);
outgoingNetStream.bufferTime = 0;
mic = Microphone.getEnhancedMicrophone();
mic.codex = SoundCodec.SPEEX;
mic.framesPerPacket = 1;
mic.setSilenceLevel(0);
var options:MicrophoneEnhancedOptions = new MicrophoneEnhancedOptions;
options.echoPath = 256;
options.nonLinearProcessing = true;
mic.enhancedOptions = options;
outgoingNetStream.attachAudio(mic);
outgoingNetStream.publish("publish", "live");
