Skip to content

Instantly share code, notes, and snippets.

@kurtismash
Created May 9, 2022 15:23
Show Gist options
  • Save kurtismash/5039c044a1eb8c6b42f387e7504e7948 to your computer and use it in GitHub Desktop.
Save kurtismash/5039c044a1eb8c6b42f387e7504e7948 to your computer and use it in GitHub Desktop.
Collection of useful sox commands
# Generate MD5 of audio data chunk within WAV file (OSX)
sox <input_file> -t raw - | md5
# Merge audio files by channel, i.e. 2 mono to stereo
sox -M <input_file.L> <input_file.R> <output_file>
# Raw audio data into WAV file
sox -t raw -r 44.1k -b 16 -c 1 -B -e signed-integer <input_file> <output_file>.wav
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment