Answer

In order to convert a sound file in WAV format to CAF format use the afconvert tool
available on OS X from the command line.

/usr/bin/afconvert -f caff -d LEI16 mySound.wav mySound.caf