Simple python script to convert live speech or any audio file to text using Google Speech Rexognition API♥
- Try importing audio files with .wav extension as pyaudio detects few specified extensions
-
Speech Recognition
- pip install SpeechRecognition
- pip install 'speech recognition.whl file'
https://pypi.python.org/packages/26/e1/7f5678cd94ec1234269d23756dbdaa4c8cfaed973412f88ae8adf7893a50/SpeechRecognition-3.8.1-py2.py3-none-any.whl
-
Pyaudio
- pip install pyaudio.
- Keep audio file in the same directory in which your python script is saved.
- Dont name your file as speechRecognition as it may import your python script instead of the package.
- Upgrade pip before installing dependencies stated above
- For Windows
- pip install pip --upgrade
- For Mac
- sudo pip install --upgrade pip
- For Linux
- pip install -U pip
- For Windows