IPhone - AVAudioRecorder - how can I record to mp3?

I am using the AVAudioRecorder class, available with the 3.0 SDK to record audio in my application. I successfully write to the caf / aiff file. But I would like to record in mp3.

I tried to change some values ​​in the settings dictionary, but all I get is an empty file.

  • Can I burn to mp3 using AVAudioRecorder

  • If not, how to transfer caf files from my application to my computer?

Thanks.

+3
source share
3 answers

From all that I can find in the API documentation, you cannot change the encoder. The only encoder settings that I could find can be changed:

AVEncoderAudioQualityKey;
AVEncoderBitRateKey;
AVEncoderBitDepthHintKey;

, .

+1

:

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

IMA - 4: 1, , 25% . , .

Lossless , 50%.

μLaw aLaw - , 50%, , Lossless.

iLBC.

, MP3-, - .

+2

MP3-. . , .

0

Source: https://habr.com/ru/post/1711389/


All Articles