The SpeechRecognition Package
Last updated
Was this helpful?
Last updated
Was this helpful?
The SpeechRecognition
package provides a high-level interface to record and process audio inputs in Python.
Reference:
This package depends on another Python package called , which itself depends on a lower-level library caled "portaudio" (not a Python package). To install "portaudio":
On a Mac, use homebrew (brew install portaudio
).
On Windows, use pipwin within an active virtual environment (see installation steps below).
Do these installation steps after activating a virtual environment.
Windows:
Mac:
Record audio using your computer's built-in microphone, and save that to a file:
Record audio using your computer's built-in microphone, and recognize the spoken words: