Record signal in AudioKit to file

1.1k views Asked by At

How can you record audio to a file in an app's documents directory using AudioKit. They include examples on how to display live microphone signals and how to playback audio that's shipped as part of a binary but there is no information as far as I can tell regarding saving microphone input to a file.

I have managed to record files using AKManager.sharedManager().startRecordingToURL(pathURL) however when I export the file I get a silent .wav file. Am I not specifying a recording device?

I'm using Swift so answers in swift are preferable to Obj-C answers.

1

There are 1 answers

2
Aurelius Prochazka On

In general AudioKit doesn't care whether the audio source is a series of pre-recorded files, a physical model, an oscillator, or a microphone. Each of these can be processed and then the output is saved.