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

此生再无相见时 提交于 2019-12-06 07:49:45

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/27730529/how-can-we-convert-wav-file-to-text-by-using-pocketsphinx

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!