Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Traceback (most recent call last):
- File "C:\Users\danton\AppData\Local\Programs\Python\Python38\lib\site-packages\speech_recognition\__init__.py", line 840, in recognize_google
- response = urlopen(request, timeout=self.operation_timeout)
- File "C:\Users\danton\AppData\Local\Programs\Python\Python38\lib\urllib\request.py", line 222, in urlopen
- return opener.open(url, data, timeout)
- File "C:\Users\danton\AppData\Local\Programs\Python\Python38\lib\urllib\request.py", line 531, in open
- response = meth(req, response)
- File "C:\Users\danton\AppData\Local\Programs\Python\Python38\lib\urllib\request.py", line 640, in http_response
- response = self.parent.error(
- File "C:\Users\danton\AppData\Local\Programs\Python\Python38\lib\urllib\request.py", line 569, in error
- return self._call_chain(*args)
- File "C:\Users\danton\AppData\Local\Programs\Python\Python38\lib\urllib\request.py", line 502, in _call_chain
- result = func(*args)
- File "C:\Users\danton\AppData\Local\Programs\Python\Python38\lib\urllib\request.py", line 649, in http_error_default
- raise HTTPError(req.full_url, code, msg, hdrs, fp)
- urllib.error.HTTPError: HTTP Error 400: Bad Request
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "subCorrect.py", line 23, in <module>
- audio = r.record(audio)
- File "C:\Users\danton\AppData\Local\Programs\Python\Python38\lib\site-packages\speech_recognition\__init__.py", line 842, in recognize_google
- raise RequestError("recognition request failed: {}".format(e.reason))
- speech_recognition.RequestError: recognition request failed: Bad Request
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement