Here are some resources for more information about topics covered in this lesson:
00:00 Installing SpeechRecognition. SpeechRecognition is compatible with a wide range of Python versions, but in this course you’ll be seeing version 3.8.1 of SpeechRecognition working in concert with Python 3.9.
00:18 When working with any new library, it’s often a good idea to work in a virtual environment. If you’re unsure how to set one up, take a look at this Real Python course.
Here, you can see me creating a virtual environment on macOS and then switching to it using the following command. You can install
SpeechRecognition from a terminal using
SpeechRecognition is installed, verify the installation by opening a Python REPL and typing the following seen onscreen.
01:04 Once you’ve verified that the right version of SpeechRecognition is installed, leave the Python REPL open, as you’ll be working with it a little later. SpeechRecognition will work out of the box if all you need to do is work with existing audio files.
01:19 Specific use cases, however, require a few dependencies. Notably, the PyAudio package is needed for capturing microphone input. Next, let’s dive in and explore the basics of the package.
Become a Member to join the conversation.
Bartosz Wilk on Aug. 6, 2022