There are many ways to record audio on iOS, with the
AVFoundation framework being a veritable Swiss Army Knife of tools.
At the basic level,
AVAudioRecorder makes it dead simple to record audio in a variety of common formats, and save it to disk. However, the audio is only available after recording is complete. This is fine in most cases, but sometimes, we might need…