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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.