This is a Demonstration of Python SpeechRecognition Module.
Pre-requisites:
You need to install PyAudio to be able recieve input form Microphone.
PyAudio is Binding Library in Python for port-audio.
To install PyAudio, First install:
On Ubuntu:
sudo apt-get install python-pyaudio
or
sudo apt-get install python3-pyaudio
or
sudo apt-get install libasound-dev portaudio19-dev libportaudio2 libportaudiocpp0
sudo apt-get install ffmpeg libav-tools
sudo pip install pyaudio
on Windows just install port-audio exe file that you can find on google.
and Finally:
pip install PyAudio
pip install SpeechRecognition