Title: grpc streaming example crashes and hangs · Issue #515 · GoogleCloudPlatform/python-docs-samples · GitHub
Open Graph Title: grpc streaming example crashes and hangs · Issue #515 · GoogleCloudPlatform/python-docs-samples
X Title: grpc streaming example crashes and hangs · Issue #515 · GoogleCloudPlatform/python-docs-samples
Description: Just cloned the latest repo for grpc - running this on Raspbian (Raspberry Pi) Cannot even break out of the program at all. The sample rate of my usb mic is limited to 44100 and 48000. I tried changing those in the example but I get the ...
Open Graph Description: Just cloned the latest repo for grpc - running this on Raspbian (Raspberry Pi) Cannot even break out of the program at all. The sample rate of my usb mic is limited to 44100 and 48000. I tried chan...
X Description: Just cloned the latest repo for grpc - running this on Raspbian (Raspberry Pi) Cannot even break out of the program at all. The sample rate of my usb mic is limited to 44100 and 48000. I tried chan...
Opengraph URL: https://github.com/GoogleCloudPlatform/python-docs-samples/issues/515
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"grpc streaming example crashes and hangs","articleBody":"Just cloned the latest repo for grpc -\nrunning this on Raspbian (Raspberry Pi)\n\nCannot even break out of the program at all.\nThe sample rate of my usb mic is limited to 44100 and 48000. I tried changing those in the example but I get the same results.\n\nI have pyaudio installed up to date.\nSound recording and playback both work with pyaudio.\n\nThe ~/.asoundrc script is here:\n\n```\npcm.!default {\n type asym\n playback.pcm \"hw:0,0\"\n capture.pcm \"hw:1,1\"\n}\n\n# pcm.!default {\n# type hw\n# card 0\n# }\n\nctl.!default {\n type hw\n card 0\n}\n\n#pcm.record {\n# type plug;\n# slave {\n# pcm \"hw 1,1\"\n# }\n# }\n```\n\nHere is the output of the program.\n\n```\n(grpc) pi@raspberrypi:~/python-docs-samples/speech/grpc $ python transcribe_streaming.py\nALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave\nALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear\nALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe\nALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side\nALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi\nALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi\nALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem\nALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem\nALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline\nALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline\nALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused\n\nALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused\n\nALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave\nCannot connect to server socket err = No such file or directory\nCannot connect to server request channel\njack server is not running or cannot be started\nException in thread Thread-2:\nTraceback (most recent call last):\n File \"/usr/lib/python2.7/threading.py\", line 810, in __bootstrap_inner\n self.run()\n File \"/usr/lib/python2.7/threading.py\", line 763, in run\n self.__target(*self.__args, **self.__kwargs)\n File \"/home/pi/gopigo/Projects/Awareness/voice/python-docs-samples/speech/grpc/grpc/local/lib/python2.7/site-packages/grpc/_channel.py\", line 184, in consume_request_iterator\n for request in request_iterator:\n File \"transcribe_streaming.py\", line 112, in request_stream\n data = audio_stream.read(chunk)\n File \"/home/pi/gopigo/Projects/Awareness/voice/python-docs-samples/speech/grpc/grpc/local/lib/python2.7/site-packages/pyaudio.py\", line 608, in read\n return pa.read_stream(self._stream, num_frames, exception_on_overflow)\nIOError: [Errno -9981] Input overflowed\n```\n","author":{"url":"https://github.com/thecloudist","@type":"Person","name":"thecloudist"},"datePublished":"2016-09-12T19:28:57.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":17},"url":"https://github.com/515/python-docs-samples/issues/515"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:66ce0aba-321b-a829-dc24-2634e9e013ea |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8B9C:1C3657:13C653:1A8AE5:6A4D8475 |
| html-safe-nonce | 574b87c76a6033c4863ce73396f35e4b54a8c51cc39f891bf6c325d91943523d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QjlDOjFDMzY1NzoxM0M2NTM6MUE4QUU1OjZBNEQ4NDc1IiwidmlzaXRvcl9pZCI6IjU2MzE4NDkyNDI3NTYwNjY0NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 31100a3f7c61e916118d1d452fcf0f007114087f468a3e629fd7a97aaae6cf5c |
| hovercard-subject-tag | issue:176462799 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/GoogleCloudPlatform/python-docs-samples/515/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6e8b3f3f14162a32c9fa2312af6e88ac98b66f21c92fd0e748033b1f7b9bef73/GoogleCloudPlatform/python-docs-samples/issues/515 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6e8b3f3f14162a32c9fa2312af6e88ac98b66f21c92fd0e748033b1f7b9bef73/GoogleCloudPlatform/python-docs-samples/issues/515 |
| og:image:alt | Just cloned the latest repo for grpc - running this on Raspbian (Raspberry Pi) Cannot even break out of the program at all. The sample rate of my usb mic is limited to 44100 and 48000. I tried chan... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | thecloudist |
| hostname | github.com |
| expected-hostname | github.com |
| None | c6bf61c909482ec3072ef5d7a5a28f2a9d214788c9a44793eca1960048cb05ae |
| turbo-cache-control | no-preview |
| go-import | github.com/GoogleCloudPlatform/python-docs-samples git https://github.com/GoogleCloudPlatform/python-docs-samples.git |
| octolytics-dimension-user_id | 2810941 |
| octolytics-dimension-user_login | GoogleCloudPlatform |
| octolytics-dimension-repository_id | 35065876 |
| octolytics-dimension-repository_nwo | GoogleCloudPlatform/python-docs-samples |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 35065876 |
| octolytics-dimension-repository_network_root_nwo | GoogleCloudPlatform/python-docs-samples |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6702a58b419a792226bd21ef0fb1bcb318bbcaa3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width