How do you record audio directly from iOS?

Is there a way to record device audio on iOS?

  • AVAudioRecorder allows the recording of external audio. However I wish to record the audio made by my application as opposed to external audio. Is this possible to do on iOS?

  • Answer:

    What frameworks are your application using to make audio?  If you're using a lower-level framework like Audio Queues or Audio Units (both part of Core Audio) or OpenAL, then you have buffers of samples that you could write out to a file with Audio File Services or ExtAudioFile. If you're using a high-level framework like AV Foundation, Media Player, or an <audio> tag inside a UIWebView, then it's probably not going to be possible, because you don't have access to the audio data. There is not, as far as I know, any way to do something like the Mac's "Soundflower" to capture all system audio, since Soundflower is basically a virtual device for audio output, and third parties can't write device-level software for iOS.

Chris Adamson at Quora Visit the source

Was this solution helpful to you?

Other answers

You will definitely need to use low level Core Audio in order to do this and it's possible because apps that have that kind of functionallity exist but it's not that simple as it may sound. Check this few resources that will push you in the right direction: http://www.amazon.com/Learning-Core-Audio-Hands-On-Programming/dp/0321636848/ref=sr_1_1?ie=UTF8&qid=1334337998&sr=8-1 http://developer.apple.com/library/ios/#DOCUMENTATION/MusicAudio/Conceptual/CoreAudioOverview/CoreAudioEssentials/CoreAudioEssentials.html http://timbolstad.com/2010/03/14/core-audio-getting-started/ And definitely search through Apple Dev forum, more specifically Core Audio subforum: https://devforums.apple.com/community/ios/graphics/audio

Mirko Sabljic

See http://theamazingaudioengine.com/. There is an example of just that here: http://theamazingaudioengine.com/doc/_receiving-_audio.html#Recording NOTE: You cannot record from the MoviePlayer or the AVAudioPlayer.

Vaughan Rouesnel

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.