iPhone:录制到 CAF 文件仅产生静态
我正在开发一个 iPhone 录音应用程序,它可以创建 caf 格式的音频文件。
当我播放这些文件时,我这里唯一的东西是静态的。此外,文件的大小也很大,例如,10 秒的录音可达 1.7 mb。
我可以用其他格式(例如 mp3)录制吗?有人有一些如何执行此操作的示例代码吗?
谢谢
I am developing an iPhone voice recording application which creates audio files in caf format.
When I play those files back, the only thing I here is static. Also, the sizes of the files are huge e.g. up to 1.7 mb for a 10 sec recording.
Could I record in another format such as mp3. Does anyone have some example code of how to do so?
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您必须使用 AVAudioRecorder 类来执行此操作。
以下是开发人员参考的链接:
然后
,您可以使用以下代码:
给你!
You have to use AVAudioRecorder class to do that.
Here is a link to developer reference:
AVAudioRecorder reference
Then, you can use the following code:
Here you are !!