Uberi / speech_recognition

Speech recognition module for Python, supporting several engines and APIs, online and offline.
https://pypi.python.org/pypi/SpeechRecognition/
BSD 3-Clause "New" or "Revised" License
8.46k stars 2.4k forks source link

AttributeError: 'Recognizer' object has no attribute 'recognize_google' #744

Open RehanShk opened 7 months ago

RehanShk commented 7 months ago
Traceback (most recent call last):
  File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.8/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "/home/jetson/.local/lib/python3.8/site-packages/speech_recognition/__init__.py", line 568, in threaded_listen
    if running[0]: callback(self, audio)
  File "/home/jetson/FYP/Main.py", line 24, in callback
    command = recognizer.recognize_google(audio).lower()
AttributeError: 'Recognizer' object has no attribute 'recognize_google'

I am using background_listening example of speech_recognition, It was working fine everytime I was using it, but after I installed deepface, its giving me above error

ftnext commented 7 months ago

@RehanShk Please report according to the issue template. It is also helpful to share the entire traceback and the whole script.