Search code examples
iphonexcodeaudiomp3audio-recording

Recording mp3 on iPhone by SDK


I'm wondering if it's possible to record an audio file in mp3 format programmatically with Xcode.

I've read a tons of documentations and I've googled for this, but no result.

Please help, if someone knows how this is possible?


Solution

  • I would start here

    http://developer.apple.com/library/ios/#referencelibrary/GettingStarted/GS_AudioVideo_iPhone/_index.html,

    try to record some raw sound file and then convert it to mp3 with some 3rd party library like LAME. You can pick up LAME source here:

    http://lame.sourceforge.net/

    Try building a static library for iOS / armv6, I actually managed to build it couple of minutes ago, but I'm too tired to try if it actually works :) There is probably no easy way to do this, hope this helps in your search. I will try LAME in the next couple of days and let you know however.