Skip to content

Instantly share code, notes, and snippets.

@ronggong
Created June 29, 2017 11:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ronggong/a189a520858ab2d124049f06899981d7 to your computer and use it in GitHub Desktop.
Save ronggong/a189a520858ab2d124049f06899981d7 to your computer and use it in GitHub Desktop.
Sox Mac audio format conversion
mkdir converted
for i in *.aif; do sox -t aif -b 24 $i converted/${i%.aif}.wav; done
#-t: to tell sox the input format
#-b: bit depth
#i%.aif: to remove the file name extension
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment