How to give an input wav file to pocket sphinx

nizam.sp picture nizam.sp · Nov 30, 2013 · Viewed 12.5k times · Source

Is there some command line utility of pocket sphinx or cmu sphinx to convert a .wav file to text?

pocketsphinx_continuous -hmm -lm -dict will do. But I don't want to keep speaking the same sentence again and again.

Answer

Nikolay Shmyrev picture Nikolay Shmyrev · Nov 30, 2013

pocketsphinx_continuous starting from version 0.8 has option -infile which you can use to decode a file. File must be in a specific format: 16khz 16bit mono wav file

 pocketsphinx_continuous -infile file.wav