iPhone - AVAudioRecorder - how can I record to an mp3?

后端 未结 3 1510
慢半拍i
慢半拍i 2021-01-01 06:03

I am using the AVAudioRecorder class available with the 3.0 SDK to record audio in my app. I am successfully able to record to a caf/aiff file. But I would like to record to

3条回答
  •  说谎
    说谎 (楼主)
    2021-01-01 06:09

    See:

    http://developer.apple.com/iphone/library/qa/qa2008/qa1615.html

    IMA is a 4:1 format, which means it will compress to 25% of the original size. It's good enough for voice, but not ideal for music.

    Lossless is great for music, but usually only gets 50%.

    µLaw and aLaw are older formats that compress to 50%, but are much worse than Lossless.

    I haven't used iLBC.

    I'd bet you'll never see an MP3 encoder made available to third-party apps due to licensing issues.

提交回复
热议问题