Skip to content

Instantly share code, notes, and snippets.

@mcichecki
Created July 26, 2021 07:16
Show Gist options
  • Save mcichecki/3e2bcaab408d3403e39533aa6fa84cba to your computer and use it in GitHub Desktop.
Save mcichecki/3e2bcaab408d3403e39533aa6fa84cba to your computer and use it in GitHub Desktop.
Shell script which converts all files in the folder to the caf format
#!/bin/bash
mkdir -p caf
for file in $1*; do
file_basename=$(basename -- "$file")
filename="${file_basename%.*}"
echo converting $filename
afconvert -f caff -d LEI16@44100 -c 1 $file caf/$filename.caf
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment