Skip to content

Instantly share code, notes, and snippets.

@TanUkkii007
Last active March 29, 2019 06:29
Show Gist options
  • Save TanUkkii007/843041d683e5b605cc77797afb52a03b to your computer and use it in GitHub Desktop.
Save TanUkkii007/843041d683e5b605cc77797afb52a03b to your computer and use it in GitHub Desktop.
wav to raw conversion with sox
ls | xargs -I {} basename {} .raw | xargs -I {} sox -r 16000 -e signed -b 16 -c 1 {}.raw /output/path/{}.wav
sox /path/to.wav -n -S stat
ls | xargs -I {} basename {} .wav | xargs -I {} sox {}.wav --bits 16 /output/path/{}.raw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment