Skip to content

Instantly share code, notes, and snippets.

@unRARed
Created March 20, 2024 08:15
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 unRARed/c058671578e12bde646691a772a9c1c3 to your computer and use it in GitHub Desktop.
Save unRARed/c058671578e12bde646691a772a9c1c3 to your computer and use it in GitHub Desktop.
Make wav files compatible with the Spark Wav Trigger board
mkdir fixed
# WAV Files need to be Stereo, 44100, 16bit and have no metadata
for file in *.wav; do ffmpeg -y -i $file -ac 2 -ar 44100 -sample_fmt s16 -map_metadata -1 -fflags +bitexact -flags:v +bitexact -flags:a +bitexact fixed/$file; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment