{"action":"opened","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/issues/374","repository_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/issues/374/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/issues/374/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/issues/374/events","html_url":"https://github.com/GoogleCloudPlatform/python-docs-samples/issues/374","id":159814154,"number":374,"title":"speech_streaming.py got an error on a Raspberry Pi","user":{"login":"kotobuki","id":10932,"avatar_url":"https://avatars.githubusercontent.com/u/10932?v=3","gravatar_id":"","url":"https://api.github.com/users/kotobuki","html_url":"https://github.com/kotobuki","followers_url":"https://api.github.com/users/kotobuki/followers","following_url":"https://api.github.com/users/kotobuki/following{/other_user}","gists_url":"https://api.github.com/users/kotobuki/gists{/gist_id}","starred_url":"https://api.github.com/users/kotobuki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kotobuki/subscriptions","organizations_url":"https://api.github.com/users/kotobuki/orgs","repos_url":"https://api.github.com/users/kotobuki/repos","events_url":"https://api.github.com/users/kotobuki/events{/privacy}","received_events_url":"https://api.github.com/users/kotobuki/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-12T08:00:28Z","updated_at":"2016-06-12T08:00:28Z","closed_at":null,"body":"I got an error on a Raspberry Pi (Raspberry Pi 2 Model B, Raspbian Jessie May 2016) as follows. I could run the example successfully only once, but fails in many cases due to same error.\r\n\r\n```\r\n$ python speech_streaming.py \r\n...\r\nTraceback (most recent call last):\r\n  File \"speech_streaming.py\", line 145, in <module>\r\n    main()\r\n  File \"speech_streaming.py\", line 137, in main\r\n    service.Recognize(request_stream(stop_audio), DEADLINE_SECS))\r\n  File \"speech_streaming.py\", line 114, in listen_print_loop\r\n    for resp in recognize_stream:\r\n  File \"/usr/local/lib/python2.7/dist-packages/grpc/framework/crust/_control.py\", line 415, in next\r\n    raise self._termination.abortion_error\r\ngrpc.framework.interfaces.face.face.LocalError: LocalError(code=None, details=\"None\")\r\n```\r\n\r\nI confirmed that the following example works as expected, so the hardware (i.e. a USB microphone) and the PyAudio library seems to be fine.\r\n\r\nhttps://gist.github.com/kotobuki/f8e7ca76186a6b575c9bf1e86bed5eb1\r\n\r\n```\r\n$ pip list\r\n...\r\ngcloud (0.14.0)\r\ngoogle-api-python-client (1.5.1)\r\ngoogleapis-common-protos (1.1.0)\r\n...\r\ngrpc-google-cloud-speech (1.0.4)\r\ngrpcio (0.14.0)\r\n...\r\npyalsaaudio (0.7)\r\n...\r\nPyAudio (0.2.9)\r\n```"}}
{"actor":{"display_login":"kotobuki"}}