I'm trying to convert 728 .raw files to 16khz .wav files by using the script given in the link here but I'm receiving an error
sox FAIL formats: can't open input file `./*.wav': No such file or directory
script I'm using is
for i in ./*.raw; do sox "$i" -r 16000 "${i%%.wav}r.wav"; done
the script is in convert.sh
and the raw files are in rawfiles folder. The file structure is like
/Orginal/rawfiles/.rawfiles
and /Orginal/convert.sh
I have 728 files to convert .raw files to 16 bit 16khz mono wav files. What modifications do I have to do in order to remove the error and convert the files?