Wednesday, May 25, 2011

Convert sound through Mac terminal

You may use the afconvert tool to convert sounds. For example, to convert the 16-bit linear PCM system sound Submarine.aiff to IMA4 audio in a CAF file, use the following command in the Terminal application:

afconvert /System/Library/Sounds/Submarine.aiff ~/Desktop/sub.caf -d ima4 -f caff -v


You can inspect a sound to determine its data format by opening it in QuickTime Player and choosing Show Movie Inspector from the Movie menu.
Custom sounds must be under 30 seconds when played. if a custom sound is over that limit, the default system sound is played instead.


iPhone support sound formats are
Linear PCM, MA4 (IMA/ADPCM), uLaw or aLaw wAy...

No comments:

Post a Comment