sphinx4 requires files in mswav format, not raw files. The only requirement for them is to have proper sample rate. You can convert sample rate with sox using the following script:
for f in cat files.list; do sox $f -r 16000 $f.new.wav; mv $f.new.wav $f; done
where files.list contains the list of files you need to convert.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Can someone tell me which sox command should I use in order to convert a list of wav audio files to raw?
I need to use it in sphinx4..
sphinx4 requires files in mswav format, not raw files. The only requirement for them is to have proper sample rate. You can convert sample rate with sox using the following script:
for f in
cat files.list
; do sox $f -r 16000 $f.new.wav; mv $f.new.wav $f; donewhere files.list contains the list of files you need to convert.
Or is there anyway I could use my wav audio files directly to run performance tests at sphinx 4?
Sure, you can use wav files. First of all think a bit, then write a code based on demo.