I need to remove specific audio channels from the audio file and I need to save it as a mono file. I found that it can be achieved using AVAudioEngine
or AudioKit
but I didn't find any helpful example.
What do I need if the audio file is 5.1 channels? I would like to separate all channels, remove specific channels like channel 2, 3 and 4, merge the remaining channel, and make a mono audio file and save it.