SWIFT - Is it possible to save audio from AVAudioEngine, or from AudioPlayerNode? If yes, how?
问题 I've been looking around Swift documentation to save an audio output from AVAudioEngine but I couldn't find any useful tip. Any suggestion? Solution I found a way around thanks to matt's answer. Here a sample code of how to save an audio after passing it through an AVAudioEngine (i think that technically it's before) newAudio = AVAudioFile(forWriting: newAudio.url, settings: nil, error: NSErrorPointer()) //Your new file on which you want to save some changed audio, and prepared to be bufferd