Last active
September 2, 2024 08:26
-
-
Save adameubanks/846f4dad00d2f8538f91b3e1896212d3 to your computer and use it in GitHub Desktop.
Simple implementation of speech recognition in python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install speech_recognition with pip install speech_recognition | |
# Install pyaudio with pip install pyaudio | |
# Make sure you look up full instructions for installing pyaudio | |
import speech_recognition as sr | |
recognizer = sr.Recognizer() | |
mic = sr.Microphone() | |
with mic as source: | |
audio = recognizer.listen(source) | |
output = recognizer.recognize_google(audio) | |
print(output) |
When I tried ModuleNotFoundError comes up even after I installed speech_recognition module. What should I do?
you need to do pip install SpeechRecognition
Anyone know an updated way to get pyaudio installed cant find a correct way
peech_recognition.UnknownValueError am getting tis error
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I tried ModuleNotFoundError comes up even after I installed speech_recognition module. What should I do?