Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone recording audio

I'm currently working on a project where it is necessary to record sound being played by the iPhone. By this, I mean recording sound being played in the background like a sound clip or whatever, NOT using the built-in microphone.

Can this be done? I am currently experimenting with the AVAudioRecorder but this only captures sound with the built-in microphone.

Any help would be appreciated!

like image 312
Olivier Avatar asked Mar 22 '26 17:03

Olivier


1 Answers

This is possible only when using only the Audio Unit RemoteIO API or only the Audio Queue API with uncompressed raw audio, and with no background audio mixed in. Then you have full access to the audio samples, and can queue them up to be saved in a file.

It is not possible to record sound output of the device itself using any of the other public audio APIs.

like image 65
hotpaw2 Avatar answered Mar 25 '26 05:03

hotpaw2



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!