Adobe Flash
Exporting Audio File to CAF
May 9, 2009

iPhone likes CAF (Core Audio Format), but how do you create or convert to a CAF file?

1) Use the afconvert tool from Apple. This is a command line application that you need to run from the shell prompt. Example:

afconvert -f caff -d LEI16 myAudio1.wav myAudio1.caf
afconvert -f caff -d ima4 myAudio2.wav myAudio2.caf

To batch multiple files, I have found it useful to write a batch file

2) Alterativey,

audacity-logo-r_50pctI use the free audio editor Audacity, which can be downloaded from:

Note, that version 1.2.6 does not export to CAF, but 1.3.7 does (caveat: it’s currently still in Beta).

To convert to CAF, do File->Export.  Select Other uncompressed files, then click the Options… button.  Another dialog will pop-up where you can select CAF (Apple Code Audio File).


Link to CAF specification:


Using afconvert seems to be more reliable.