pythonspeech-recognitionvoice-recognitioncmusphinxpocketsphinx

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.


Solution

  • 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