How do I use afconvert to convert all the files in a directory from wav to caf?

后端 未结 7 2099
无人共我
无人共我 2021-01-31 00:24

I have a directory with about 50 wav files that I need to convert to caf, because AudioServicesCreateSystemSoundID() returns an error for some of them (but not all).

Her

相关标签:
7条回答
  • 2021-01-31 01:09
    for file in *.wav; do afconvert -f caff -d LEI16@44100 -c 1 "$file"; done
    

    Hit the Return key directly after done.

    Simple :)

    0 讨论(0)
提交回复
热议问题