You can install the Speech Recognition library and import it.
First, make sure you have all the requirements listed in the “Requirements” section.
The easiest way to install this is by using pip install SpeechRecognition.
Otherwise, download the source distribution from PyPI, and extract the archive.
In the folder, run python setup.py install.