Hello,
Our used case is real-time audio (voip) application. I wanted to use AVAudioEngine for to capture and render audio.
This is how I am setting up the AVAudioEngine nodes in my app -
AVAudioUnit -> MainMixer -> Speaker
Microphone -> InputNode -> MicMixer -> Tap (write audio to a file)
When I am writing the tapped buffers into a file, I noticed, the audio played on speaker gets captured by the microphone and gets written to file. I do not want the audio played on the speaker to be captured.
Is Acoustic Echo Cancellation (AEC) is supported by AVAudioEngine? Do I need to make any specific configuration or design changes to achieve the AEC? Is there a recommendation on how to achieve the mentioned used case?
Any help for this is greatly appreciated.
Thank you,
Piyush