This is a drop-in replacement of AVAudioRecorder, implemented using The Amazing Audio Engine.
It allows you to use an audio filter during recording, processing in real time the recorded sound before saving it. You can use it to implement filters like the pitch shifting filter used in the Tuenti iOS app.
A sample app and a simple reverb filter are included as reference.
- Include the following line in your
Podfile:pod 'TMAERecorder', :git => 'https://github.com/tuenti/TMAERecorder' - Run
pod install
- Clone, add as a submodule or download TMAERecorder.
- Add all the files under
Classesto your project. - Make sure your project is configured to use ARC.
The sample app uses Typhoon as dependency injection container and The Amazing Audio Engine to ease audio recording and filtering. Both dependencies are managed using CocoaPods. Once you have cloned this repository, and with CocoaPods set up, please install these dependencies opening a Terminal window, changing to the Xcode project directory and running
$ pod install
Make sure to always open the Xcode workspace instead of the project file when building the sample app:
$ open TMAERecorder sample.xcworkspace
TMAERecorder was created by iOS team at Tuenti Technologies S.L.. You can follow Tuenti engineering team on Twitter @tuentieng.
TMAERecorder is available under the Apache License, Version 2.0. See LICENSE file for more info.