Using Switchboard SDK you can easily mix together different audio streams.
Using the MixerNode Class
You can easily use the
MixerNode to mix together different audio sources. You can put arbitrary number of input streams on a MixerNode and it will merge them into one output stream.
let mixerNode = SBMixerNode()
let audioGraph = SBAudioGraph()
audioGraph.connect(vocalsInputNode, to: mixerNode)
audioGraph.connect(musicInputNode, to: mixerNode)
private val mixerNode = MixerNode()
private val audioGraph = AudioGraph()
For more information take a look at the Mixer Example