for a single .mp3, I can convert it to wav using
sox ./input/filename.mp3 ./output/filename.wav
#!/bin/bash for i in $(ls *mp3) do sox -t wav $i waves/$(basename $i) done
But it throws the following error:
sox FAIL formats: can't open input file `filename.mp3': WAVE: RIFF header not found
How would I run this sox conversion over all mp3 files in the input folder and save the generated wav's to the output folder?
PS : I don't know why it shows the file enclosed between a back quote ( ` ) and an apostrophe
I played all the mp3's and they work perfectly file.