I just installed sphinx for the first time. I ran the sphinx2-test and it processes the file /usr/local/share/sphinx2/model/lm/turtle/goforward.16k. I want to listen to that file -- what format is it in, and how can I convert it to a wav using sox ?
--Rob
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I just installed sphinx for the first time. I ran the sphinx2-test and it processes the file /usr/local/share/sphinx2/model/lm/turtle/goforward.16k. I want to listen to that file -- what format is it in, and how can I convert it to a wav using sox ?
--Rob
Hi,
you can play the file /usr/local/share/sphinx2/model/lm/turtle/goforward.16k with the play command:
play /usr/local/share/sphinx2/model/lm/turtle/goforward.16k -f s -r 16000 -w -t raw
play filename -f formattype(s --> signed linear) -r samplingrate (16000 samples per second) -w (data enconding) -t raw (filetype)
To convert it to a wav using sox you can do:
sox -t raw -r 16000 -s -w /usr/local/share/sphinx2/model/lm/turtle/goforward.16k -t wav out.wav
I hope this helps.
Sergio
That worked great, thanks.