转载自:http://www.permadi.com/blog/2009/05/exporting-audio-file-to-caf/
iPhone likesCAF(Core Audio Format), but how do you create or convert to a CAF file?
1) Use theafconverttool from Apple.
This is a command line application that you need to run from the shell prompt. Example:
|
1
2
|
afconvert -f caff -d LEI16 myAudio1.wav myAudio1.caf
afconvert -f caff -d ima4 myAudio2.wav myAudio2.caf
|
Documentation:http://developer.apple.com/mac/library/documentation/Darwin/Reference/ManPages/man1/afconvert.1.html
To batch multiple files, I have found it useful to write a batch file
2) Alterativey,
I use the free audio editor Audacity, which can be downloaded from:http://audacity.sourceforge.net/
Note, that version 1.2.6 doesnotexport to CAF, but 1.3.7 does (caveat: it’s currently still in Beta).
To convert to CAF, doFile->Export. SelectOther uncompressed files, then click theOptions…button. Another dialog will pop-up where you can selectCAF (Apple Code Audio File).
Link to CAF specification:http://developer.apple.com/documentation/MusicAudio/Reference/CAFSpec/CAF_intro/CAF_intro.html#//apple_ref/doc/uid/TP40001862-CH203-DontLinkElementID_60.
Note
Usingafconvertseems to be more reliable.
本文介绍两种将音频文件转换为苹果设备偏好的CAF格式的方法:使用Apple提供的命令行工具afconvert,以及通过免费音频编辑软件Audacity进行转换。文中还提供了相关链接和技术细节。

4056

被折叠的 条评论
为什么被折叠?



