Batch convert audio in Linux

article #307, updated 4702 days ago

You’ll need the standard utility “sox”, which does conversions. Then, use this line:

for flac in *.flac; do sox -S "${flac}" -r 44100 -b 16 new/"${flac}"; done

in a shell file, having created the directory “new” underneath the existing files. The above will convert all .flac files to 16-bit 44.1 kHz.

Categories: