Swift Xcode Project that demonstrates how to record, save, and send audio files, via AudioKit.
- AudioShare SDK
- Email Composer
- Messenger
- AirDrop
- iTunes File Sharing
- Select an audio format from the segmented controller.
- Tap the Record button.
- Tap the "Kick", "Snare", or "Play Song" button options. The "Kick" and "Snare" buttons trigger short samples via AKMidiSamplers, while the "Play Song" button will play a looping m4a AKAudioFile from an AKAudioPlayer.
- Once you're satisfied with your recording, tap the red Stop button to stop the recording.
- Tap the green Play to listen to the newly recorded performance.
- Tap "Show Recordings" to view the recorded audio files. A new file will only be created a show in the Recordings list when you select a different audio format. Otherwise, any new recording will be replaced with the same name and file format extension.
- Tap "Export Audio Recording" and select an AudioShare, Email, or More option.
- If you want to delete any of the recordings, you can tap the "Delete All Recordings" button, and and confirm the action.
- Within Terminal, run
git clone [email protected]:markjeschke/SaveAKRecordings.git
in the command line, or download the zip to your local drive. - If you have CocoaPods already installed, run
pod install
to install the AudioKit framework. - Open the
SaveAKRecording.xcworkspace
source, and build the app to your iPhone or iPad.
- Within Terminal, enter
$ sudo gem install cocoapods
in the command line. - Change directory, so that you'll be in the root directory of this "SaveAKRecording" Xcode project.
- Run
pod install
to install the pods that are listed in the Podfile. - Once the installation has completed, open the project by clicking to open
SaveAKRecording.xcworkspace
– not theSaveAKRecording.xcodeproj
.
If you're having trouble installing CocoaPods, please refer to their installation instructions.
You must deploy to an actual device in order to view multiple document files within "Show Recordings."