This is an example IOS app to use AVFoundation using Swift 2.2. The app records the user's audio and play with its rate (slower or faster speech) and pitch to sound like Darth Vader and ChipMunk.
###Record Audio View Controller
This is the main screen that user gets when they run the app. It basically ask users to record their voice. If the user presses the stop button, they are taken to the next view which Play Sound View Controller
###Play Sound View Controller
This is the screen where the user can play with their sound. It basically changes the rate or pitch of the sound and plays to the user as "Snail = half rate", "Rabbit = 1,5X Faster rate", "Chipmunk higher pitch" and "Darthvader lower pitch".