O

Services

Case studies

Contact

13.09.20

How to do speech recognition with Python

featured image thumbnail for post How to do speech recognition with Python

Easily convert speech to text in Python with the SpeechRecognition library. Add voice to you application with a few lines of code:

import speech_recognition as sr r = sr.Recognizer() with sr.Microphone() as source: print("Say something!") audio = r.listen(source) print("Sphinx thinks you said " + r.recognize_sphinx(audio)) print("Google Speech Recognition thinks you said " + r.recognize_google(audio))

Thats it! It has built in support for 7 different speech recognition engines (from Google, IBM, Microsoft and others), most are cloud based, but 2 work off-line as well.

←Previous: Covid corner: A levels algorithm fiasco

Next: Machine learning engineering book→


Keep up with the latest developments in data science. One email per month.

ortom logoortom logoortom logoortom logo

©2025

LINKEDIN

CLUTCH.CO

TERMS & PRIVACY