How to convert mp4 to text using command line in Ubuntu

Convert a mp4 file into wav file

ffmpeg -i file.mp4 -ar 16000 -ac 1 file.wav

convert the wav file into a text file

pocketsphinx_continuous -infile file.wav 2> pocketsphinx.log > myspeech.txt

About albertsk

Professor at the University of Hawaii
This entry was posted in Uncategorized. Bookmark the permalink.