Using the speech recognition library and Google’s text-to-speech API to build a
speech recognition app.
Create a new virtual python environment within your project’s root directory and
activate it.1
2python3 -m venv venv
source venv/bin/activate
Install necessary library:1
pip install speechrecognition pyaudio