how to apply filters to microphone input

edited January 2016

m trying to make karaoke app that records the background music from file and the microphone. I also want to add filter effects to the microphone input.

i can do everything stated above using the amazing audio engine sdk but i cant figure out how to add the microphone input as a channel so i can apply filters to it (and not to the background music.)

any help would be appreciated.

my current recording code:

  • (void)beginRecording {
    // Init recorder
    self.recorder = [[AERecorder alloc] initWithAudioController:_audioController];
    NSString *documentsFolder = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES)
    NSString *filePath = [documentsFolder stringByAppendingPathComponent:@Recording.aiff];
    // Start the recording process
    NSError *error = NULL;
    if ( ![_recorder beginRecordingToFileAtPath:filePath
    error:&error] ) {
    // Report error
    // Receive both audio input and audio output. Note that if you're using
    // AEPlaythroughChannel, mentioned above, you may not need to receive the input again.
    [_audioController addInputReceiver:_recorder];
    [_audioController addOutputReceiver:_recorder];


  • Add a channel, then add the audio from the recorder to the channel.

    Then you can apply the filter to the channel, so it doesn't impact the music.

  • sample code please..:(

Sign In or Register to comment.