How can we convert WAV file to text using pocketsphinx?

I have installed pocketsphinx correctly on my Linux machine and now I want to convert audio file (.wave) to text using pocketsphinx, how can I do that? is there a clear command and a short command for this? 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 to do it with python? Thanks in advance.

+3


source to share


1 answer


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

pocketsphinx_continuous -infile myfile.wav 

      



however the file must be in a specific format: 16 kHz 16-bit mono-wav file

+1


source







All Articles