iPhone - AVAudioRecorder - 我怎么能录制到MP3? [英] iPhone - AVAudioRecorder - how can I record to an mp3?
问题描述
我使用现有的3.0 SDK的AVAudioRecorder类来记录我的应用程序的音频。
我能够成功记录到一个咖啡馆/ AIFF文件。不过,我想记录到MP3。
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 an mp3.
我试着在设置字典中改变一些价值观,但我得到的是一个空白文件。
I tried changing some values in the settings dictionary but all I get is a blank file.
-
是否有可能使用AVAudioRecorder录制到MP3
Is it possible to record to an mp3 using AVAudioRecorder
如果不是,我怎么能非洲足联文件从我的应用程序传输到计算机?
If not, how can I transfer the caf files from my app to a computer?
感谢。
推荐答案
从所有我能找到API文档,你不能改变的EN $ C $铬。唯一的EN codeR设置我能找到,你可以改变是:
From all I can find on the API documentation, you can't change the encoder. The only encoder settings I could find that you can change are:
AVEncoderAudioQualityKey;
AVEncoderBitRateKey;
AVEncoderBitDepthHintKey;
至于在传输文件,一个典型的方法是通过电子邮件发送该文件。
As for transferring the file, a typical approach would be to email the file.
这篇关于iPhone - AVAudioRecorder - 我怎么能录制到MP3?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!