Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to give an input wav file to pocket sphinx

Tags:

cmusphinx

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.

like image 230
nizam.sp Avatar asked Nov 30 '13 17:11

nizam.sp


1 Answers

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
like image 132
Nikolay Shmyrev Avatar answered Oct 03 '22 22:10

Nikolay Shmyrev