Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can we convert .wav file to text by using pocketsphinx?

I installed pocketsphinx in my Linux machine correctly, and now I want to convert an audio file (.wave) to text by using pocketsphinx,how can i do that? is there any clear command and short command to do that? somthing like this command:

  ./src/programs/pocketsphinx_continuous -samprate 8000 -nfft 2048 -adcdev hw:1,0 -lm 2530.lm -dict 2530.dic myvoice.wav 

and also how can I do that with using python? Thanks in advance.

like image 590
Ali Avatar asked Jan 01 '15 11:01

Ali


1 Answers

I find my answer, pocketsphinx with version 0.8 has an option that can do that:

pocketsphinx_continuous -infile myfile.wav 

however file must be in a specific format: 16khz 16bit mono wav file

like image 73
Ali Avatar answered Sep 22 '22 20:09

Ali