2

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.

2
  • Did you manage to solve this? If so, could you please share how you solved it? Thanks! Nov 7, 2015 at 9:21
  • Can you show us what you've done so far? Show some codes. Oct 3, 2017 at 18:00

1 Answer 1

-4

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.

2
  • Aurelius, it'd be great if we could get an example of how to record audio from the microphone and save it to a file. Even though we know it's technically possible with AudioKit, there isn't any documentation for beginners specifying how to record and play back microphone input. In contrast, it's really obvious how to do this with AVFoundation: developer.apple.com/library/ios/documentation/AVFoundation/… Dec 14, 2015 at 6:38
  • Working on this for the next version, late December/early January. Dec 15, 2015 at 8:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.