3 Speech Recognition

In this chapter, we’ll begin interacting with Python through speech. We’ll first install the SpeechRecognition module; the installation process can be a source of frustration and will therefore require some careful attention. You’ll then create a script to let Python recognize your speech and print it out to ensure that the voice recognition function works smoothly on your computer.

You’ll use voice control to complete several tasks, including voice dictation, opening web browsers, opening files, and playing music on your computer. You’ll put all code related to speech recognition into a custom local module so the final ...

Get Make Python Talk now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.