{"action":"created","issue":{"url":"https://api.github.com/repos/Uberi/speech_recognition/issues/385","repository_url":"https://api.github.com/repos/Uberi/speech_recognition","labels_url":"https://api.github.com/repos/Uberi/speech_recognition/issues/385/labels{/name}","comments_url":"https://api.github.com/repos/Uberi/speech_recognition/issues/385/comments","events_url":"https://api.github.com/repos/Uberi/speech_recognition/issues/385/events","html_url":"https://github.com/Uberi/speech_recognition/issues/385","id":378971482,"node_id":"MDU6SXNzdWUzNzg5NzE0ODI=","number":385,"title":"Speech_recognition broken for new Bing API","user":{"login":"brysonpayne","id":31050414,"node_id":"MDQ6VXNlcjMxMDUwNDE0","avatar_url":"https://avatars1.githubusercontent.com/u/31050414?v=4","gravatar_id":"","url":"https://api.github.com/users/brysonpayne","html_url":"https://github.com/brysonpayne","followers_url":"https://api.github.com/users/brysonpayne/followers","following_url":"https://api.github.com/users/brysonpayne/following{/other_user}","gists_url":"https://api.github.com/users/brysonpayne/gists{/gist_id}","starred_url":"https://api.github.com/users/brysonpayne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brysonpayne/subscriptions","organizations_url":"https://api.github.com/users/brysonpayne/orgs","repos_url":"https://api.github.com/users/brysonpayne/repos","events_url":"https://api.github.com/users/brysonpayne/events{/privacy}","received_events_url":"https://api.github.com/users/brysonpayne/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-11-09T00:14:35Z","updated_at":"2018-11-10T16:15:48Z","closed_at":null,"author_association":"NONE","body":"Steps to reproduce\r\n------------------\r\n\r\n1. Register for a Bing Speech API key\r\n2. Try to use sr.recognize_bing()\r\n\r\nExpected behaviour\r\n------------------\r\nSpeech recognition (speech to text)\r\n\r\nActual behaviour\r\n----------------\r\nError - tried two different keys, multiple machines - Bing API has been updated, appears to no longer authenticate correctly with Speech_recognition 3.8.x - worked a few months ago - only thing I changed was getting a new API key.\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/speech_recognition/__init__.py\", line 935, in recognize_bing\r\n    credential_response = urlopen(credential_request, timeout=60)  # credential response can take longer, use longer timeout instead of default one\r\n  File \"/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py\", line 223, in urlopen\r\n    return opener.open(url, data, timeout)\r\n  File \"/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py\", line 532, in open\r\n    response = meth(req, response)\r\n  File \"/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py\", line 642, in http_response\r\n    'http', request, response, code, msg, hdrs)\r\n  File \"/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py\", line 570, in error\r\n    return self._call_chain(*args)\r\n  File \"/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py\", line 504, in _call_chain\r\n    result = func(*args)\r\n  File \"/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py\", line 650, in http_error_default\r\n    raise HTTPError(req.full_url, code, msg, hdrs, fp)\r\nurllib.error.HTTPError: HTTP Error 401: Access Denied\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"/Users/bpayne/Downloads/voice_control_mac_2018-11.py\", line 22, in <module>\r\n    MY_API_KEY,\"en-US\")\r\n  File \"/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/speech_recognition/__init__.py\", line 937, in recognize_bing\r\n    raise RequestError(\"credential request failed: {}\".format(e.reason))\r\nspeech_recognition.RequestError: credential request failed: Access Denied\r\n```\r\n\r\nSystem information\r\n------------------\r\n\r\nMy **system** is Mac OS X 10.13.6 High Sierra, and Win 10 Pro/Enterprise - tested on 3 machines.\r\n\r\nMy **Python version** is 3.6.3 to 3.6.7, tested across 3 machines/versions. (You can check this by running `python -V`.)\r\n\r\nMy **Pip version** is 18.1\r\n\r\nMy **SpeechRecognition library version** is 3.8.1\r\n\r\nMy **PyAudio library version** is 0.2.11\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Uberi/speech_recognition/issues/comments/437595078","html_url":"https://github.com/Uberi/speech_recognition/issues/385#issuecomment-437595078","issue_url":"https://api.github.com/repos/Uberi/speech_recognition/issues/385","id":437595078,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNzU5NTA3OA==","user":{"login":"brysonpayne","id":31050414,"node_id":"MDQ6VXNlcjMxMDUwNDE0","avatar_url":"https://avatars1.githubusercontent.com/u/31050414?v=4","gravatar_id":"","url":"https://api.github.com/users/brysonpayne","html_url":"https://github.com/brysonpayne","followers_url":"https://api.github.com/users/brysonpayne/followers","following_url":"https://api.github.com/users/brysonpayne/following{/other_user}","gists_url":"https://api.github.com/users/brysonpayne/gists{/gist_id}","starred_url":"https://api.github.com/users/brysonpayne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brysonpayne/subscriptions","organizations_url":"https://api.github.com/users/brysonpayne/orgs","repos_url":"https://api.github.com/users/brysonpayne/repos","events_url":"https://api.github.com/users/brysonpayne/events{/privacy}","received_events_url":"https://api.github.com/users/brysonpayne/received_events","type":"User","site_admin":false},"created_at":"2018-11-10T16:15:48Z","updated_at":"2018-11-10T16:15:48Z","author_association":"NONE","body":"I issued a pull request for init.py with the updated URLs for the newer Speech APIs. \r\nGlad to contribute to a great library like Speech_Recognition."}}
{"actor":{"display_login":"brysonpayne"}}