(Based on this Answer: Ubuntu – Convert speech (mp3 audio files) to text https://itectec.com/ubuntu/ubuntu-convert-speech-mp3-audio-files-to-text/ )
Hi friends, I was looking for a solution to extract audio to text files. Bases in this Answer from itectec.com I resolved my problem.
This original solution is based on Ubuntu, but I tested on Debian 11 Bullseye and it worked.
Steps: (This steps are Similar to the original Tutorial).
First convert your existing audio file to the mandatory input format: ffmpeg -i 1.mp3 -ar 16000 -ac 1 1.wav
After run pocketsphinx pocketsphinx_continuous -infile 1.wav 2> pocketsphinx.log > myspeech.txt
the program will created the file myspeech.txt will have what you're looking for.
You would need to install the above programs using this command:
sudo apt install pocketsphinx pocketsphinx-en-us ffmpeg
References
References
Ubuntu – Convert speech (mp3 audio files) to text
https://itectec.com/ubuntu/ubuntu-convert-speech-mp3-audio-files-to-text/
https://itectec.com/ubuntu/ubuntu-convert-speech-mp3-audio-files-to-text/
Debian GNU/Linux www.debian.org
I hope it help. It worked for me.
See you next.
Danny