Best open source libraries for speech to text

Hi there! I am looking for open source libraries for easily converting recorded speech into text. Can you please recommend me some of them? At the same time, I am also looking for some buddies/groups to learn/code/contribute in this field.

Posted Mar 5, 2020, 8:07 PM UTC

186
vtpdc•

I looked into this a while back. It's not easy to convert speech to text. You have to train voice models and the processing power to actually convert is substantial.

That said, the best project I could find was Mozilla's DeepSpeech. It has over 13K stars on GitHub. Maybe someone else knows of a better answer?

https://github.com/mozilla/DeepSpeech

4
pinkdata1OP•

Yes, I also found this one and I was planning on playing around with it. From your experience with it, did you build and train your own voice models? Or does the library come with models and you just test them on your own files? Did you run it on your own local machine or did you use a cloud machine?

1
aproposnix•

A pre-trained English model is available for use and can be downloaded using the instructions below. A package with some example audio files is available for download in our release notes.

3
vtpdc•

I ran it on my local machine with the pre-trained voice model. I used it on voice recordings I made without speech-to-text in mind. The vast majority of the transcription was wrong, but some of the words were right and gave me clues to the context of the message. Of course, had I recorded myself more clearly, I may have gotten a better result. It's certainly not going to be perfect or nowhere near as accurate as Google or Alexa.

If it helps, here are my command notes:

$ pip3 install deepspeech
$ sudo dnf install sox
$ ffmpeg -i input.m4a output.wav
$ deepspeech --model deepspeech-0.5.1-models/output_graph.pbmm --alphabet deepspeech-0.5.1-models/alphabet.txt --lm deepspeech-0.5.1-models/lm.binary --trie deepspeech-0.5.1-models/trie --audio output.wav

Edit: I did the above in a Python virtual environment of course. Also, happy cake day!

2
pinkdata1OP•

You are so awesome. Thanks a lot, I will also give it a try. Oh, yeah, 1 year on Reddit! Time flies when you are having fun.

2
[deleted]•

[deleted]

2
anotheruser123123•

Sorry, I cannot use Speech to text on Android and it is probably due to me deleting Google's app, but I am still trying to figure it out.

What do you mean with offline Google Voice typing? I am interested, as I would want to get back that feature without having to download the full Google app.

1
[deleted]•

[deleted]

1