speech_recognition icon indicating copy to clipboard operation
speech_recognition copied to clipboard

Speech recognition module for Python, supporting several engines and APIs, online and offline.

Results 206 speech_recognition issues
Sort by recently updated
recently updated
newest added

Guys, I try to many ways to solve this problem my code: import speech_recognition as sr import pyttsx3 import pywhatkit listener = sr.Recognizer() microphone = sr.Microphone() r = sr.Recognizer() my_mic...

Steps to reproduce ------------------ File "/home/aritra/anaconda3/lib/python3.8/site-packages/speech_recognition/__init__.py", line 108, in get_pyaudio import pyaudio ModuleNotFoundError: No module named 'pyaudio' During handling of the above exception, another exception occurred: ` Traceback (most recent...

Hi. Im trying translate russian speech, by code: ``` import speech_recognition as sr r = sr.Recognizer() harvard = sr.AudioFile('my_file.wav') with harvard as source: audio = r.record(source) r.recognize_google(audio, language='ru') ``` And...

I have been trying to do speech recognition on a `.wav` file read using `sr.AudioFile`. I tried running it on my local system and Google Colab, but both produced entirely...

Hi. I'm getting an error: ERROR:root:This audio source is already inside a context manager Traceback (most recent call last): File "c:/Users/Laurynas/Desktop/AI/main.py", line 42, in cmdlistener with my_mic as sourcee: File...

**This is the code:** import pyttsx3 import datetime speech_recognition as sr engine = pyttsx3.init('sapi5') voices = engine.getProperty('voices') engine.setProperty('voice', voices[1].id) def speak(audio): engine.say(audio) engine.runAndWait() def wishMe(): hour = int(datetime.datetime.now().hour) if hour...

Hello, I am using speech_recognition version 3.8.1. In my main thread, I have loop running that is constantly listening and processing the speech. I have another thread running which executes...

Hi All, I have 15 second of audio file in .mav format and passed that audio in to the below code . it will not providing complete text. only providing...

Steps to reproduce ------------------ 1. I was trying to use an audio output as ``Microphone()`` When I list my microphones with ```python import speech_recognition as sr for index, name in...

def takecommand(): # audio input r = sr.Recognizer() with sr.Microphone() as source: print("Listening...") r.pause_threshold = 1 audio = r.listen(source) try: print("Recognizing...") query = r.recognize_google(audio , Language='en-in') print(f"User: said: , {query}\n")...