Created
February 11, 2023 07:18
-
-
Save jcopps/f238f0dcfa358cf8da63a5db6ab03080 to your computer and use it in GitHub Desktop.
Convert wav to PCM - 16K
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for file in ./*; do | |
[ -f "$file" ] || continue | |
ffmpeg -i "$file" -f s16le -ar 16000 -acodec pcm_s16le "$file".raw | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
REVERSE
ffmpeg -f s16le -ar 16000 -ac 1 -i "$file" "$file".wav
for file in ./*; do
[ -f "$file" ] || continue
ffmpeg -f s16le -ar 16000 -ac 1 -i "$file" "$file".wav
done