Recording audio
A notable feature on most iOS devices is the ability to record audio.
In this recipe, we will use the microphone to record audio and save it to a temporary location on the disk using the AVAudioRecorder class. We will then play it back with a modified pitch using the CDSoundEngine class.