iOS:以非CAF格式录制音频 [英] iOS: Record audio in other format than caf

查看:152
本文介绍了iOS:以非CAF格式录制音频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在录音.我能够以caf(核心音频格式)录制音频.现在,我想在.mp3.amr中录制声音.

I am working on audio recording. I am able to record my audio in caf (Core audio format). Now I want to record sound in .mp3 or .amr.

我尝试了很多Google,但没有找到任何东西.我不确定我的步骤是否有效:

I tried a lot of google but didn't found anything. I am not sure if my steps following work:

将扩展范围为.caf的音频写入文档目录

从该文件读取数据

使用.mp3 or .amr extention

我有100%的疑问,这将无法正常工作,因为它将仅使用其他扩展名重新保存文件.这不会更改音频编解码器.

I have 100% doubt that this will not going to work as this will just re save file with some other extension. This won't change audio codec.

我认为,要转换任何格式,无论是音频还是视频,我们都需要更改其编解码器和数据序列.

I thought that for converting any format whether it is audio or video we need to change its codecs and data sequence.

也请建议我任何不播放.caf文件的播放器,而不是其他任何文件.因此,我可以确保文件转换成功.

Please also suggest me any player which don't play .caf files not anything else. So I can make sure that my files are converted successfully.

更新请也让我知道,我用不同扩展名重写数据的方式是否符合我的需要?

UPDATE Please also let me know that the way I am re-writing data with different extension is correct in the way I am needed?

推荐答案

您可能对 iPhoneExtAudioFileConvertTest 示例.
但是MP3格式由于专利而无法使用,也许您可​​以使用 LAME .

You might be interested in the iPhoneExtAudioFileConvertTest example.
The MP3 format is however not available due to patents, maybe you can use LAME.

这篇关于iOS:以非CAF格式录制音频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆