for a single .mp3, I can convert it to wav using
sox ./input/filename.mp3 ./output/filename.wav
I tried:
#!/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 '
`filename.mp3'
I played all the mp3's and they work perfectly file.
\``) and apostrophe (
'`), see this, this, this, this, … (Cont’d) – G-Man Says 'Reinstate Monica' Feb 21 '18 at 03:23