Advertisement
Guest User

Untitled

a guest
Apr 4th, 2020
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Traceback (most recent call last):
  2.   File "C:\Users\danton\AppData\Local\Programs\Python\Python38\lib\site-packages\speech_recognition\__init__.py", line 840, in recognize_google
  3.     response = urlopen(request, timeout=self.operation_timeout)
  4.   File "C:\Users\danton\AppData\Local\Programs\Python\Python38\lib\urllib\request.py", line 222, in urlopen
  5.     return opener.open(url, data, timeout)
  6.   File "C:\Users\danton\AppData\Local\Programs\Python\Python38\lib\urllib\request.py", line 531, in open
  7.     response = meth(req, response)
  8.   File "C:\Users\danton\AppData\Local\Programs\Python\Python38\lib\urllib\request.py", line 640, in http_response
  9.     response = self.parent.error(
  10.   File "C:\Users\danton\AppData\Local\Programs\Python\Python38\lib\urllib\request.py", line 569, in error
  11.     return self._call_chain(*args)
  12.   File "C:\Users\danton\AppData\Local\Programs\Python\Python38\lib\urllib\request.py", line 502, in _call_chain
  13.     result = func(*args)
  14.   File "C:\Users\danton\AppData\Local\Programs\Python\Python38\lib\urllib\request.py", line 649, in http_error_default
  15.     raise HTTPError(req.full_url, code, msg, hdrs, fp)
  16. urllib.error.HTTPError: HTTP Error 400: Bad Request
  17.  
  18. During handling of the above exception, another exception occurred:
  19.  
  20. Traceback (most recent call last):
  21.   File "subCorrect.py", line 23, in <module>
  22.     audio = r.record(audio)
  23.   File "C:\Users\danton\AppData\Local\Programs\Python\Python38\lib\site-packages\speech_recognition\__init__.py", line 842, in recognize_google
  24.     raise RequestError("recognition request failed: {}".format(e.reason))
  25. speech_recognition.RequestError: recognition request failed: Bad Request
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement