Title: speech_streaming tests do not pass · Issue #403 · GoogleCloudPlatform/python-docs-samples · GitHub
Open Graph Title: speech_streaming tests do not pass · Issue #403 · GoogleCloudPlatform/python-docs-samples
X Title: speech_streaming tests do not pass · Issue #403 · GoogleCloudPlatform/python-docs-samples
Description: After installing the required dependencies, the tests of the streaming Speech API don't pass. The live speech recognition (speech_streaming.py) also don't work: no error is raised, but no response from the Google Cloud server is received...
Open Graph Description: After installing the required dependencies, the tests of the streaming Speech API don't pass. The live speech recognition (speech_streaming.py) also don't work: no error is raised, but no response ...
X Description: After installing the required dependencies, the tests of the streaming Speech API don't pass. The live speech recognition (speech_streaming.py) also don't work: no error is raised, but no r...
Opengraph URL: https://github.com/GoogleCloudPlatform/python-docs-samples/issues/403
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"speech_streaming tests do not pass","articleBody":"After installing the required dependencies, the tests of the streaming Speech API don't pass. The live speech recognition (speech_streaming.py) also don't work: no error is raised, but no response from the Google Cloud server is received, even if Streaming RecognizeRequest are sent regularly.\n\n(googlecloud) raphael@debian-raphael:~/Documents/Projets/ZebrIA/python-docs-samples/speech/api$ python -m pytest speech_streaming_test.py \n================================================================================== test session starts ===================================================================================\nplatform linux2 -- Python 2.7.9, pytest-2.9.2, py-1.4.31, pluggy-0.3.1\nrootdir: /home/raphael/Documents/Projets/ZebrIA/python-docs-samples/speech/api, inifile: \ncollected 1 items \n\nspeech_streaming_test.py F\n\n======================================================================================== FAILURES ========================================================================================\n_______________________________________________________________________________________ test_main ________________________________________________________________________________________\n\nresource = \u003cfunction \u003clambda\u003e at 0x7fedc94b3668\u003e, monkeypatch = \u003c_pytest.monkeypatch.monkeypatch instance at 0x7fedc94b97e8\u003e\ncapsys = \u003c_pytest.capture.CaptureFixture instance at 0x7fedc94b97a0\u003e\n\n```\n@pytest.mark.skipif(\n sys.version_info \u003e= (3, 0),\n reason=(\"grpc doesn't yet support python3 \"\n 'https://github.com/grpc/grpc/issues/282'))\ndef test_main(resource, monkeypatch, capsys):\n monkeypatch.setattr(\n speech_streaming, 'record_audio',\n mock_audio_stream(resource('quit.raw')))\n monkeypatch.setattr(speech_streaming, 'DEADLINE_SECS', 5)\n\n speech_streaming.main()\n```\n\nspeech_streaming_test.py:70: \n\n---\n\nspeech_streaming.py:141: in main\n request_stream(stop_audio), DEADLINE_SECS))\nspeech_streaming.py:117: in listen_print_loop\n for resp in recognize_stream:\n\n---\n\nself = \u003cgrpc.framework.crust._control.Rendezvous object at 0x7fedc94ce790\u003e\n\n```\ndef next(self):\n with self._condition:\n while True:\n if self._termination.abortion_error is not None:\n raise self._termination.abortion_error\n```\n\nE LocalError: LocalError(code=StatusCode.UNIMPLEMENTED, details=\"GRPC target method is not implemented.\")\n\n/home/raphael/.virtualenvs/googlecloud/local/lib/python2.7/site-packages/grpc/framework/crust/_control.py:415: LocalError\n","author":{"url":"https://github.com/raphael0202","@type":"Person","name":"raphael0202"},"datePublished":"2016-07-05T15:51:23.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":13},"url":"https://github.com/403/python-docs-samples/issues/403"}
| 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:62417636-db6c-cd36-823a-ac4eda8a7f18 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ABEA:4D83E:74D639:9F6BAE:6A4DB294 |
| html-safe-nonce | fbfeb4da49bd5bdd81b98fa7fcf337f7ac4217b906f960d77ef1b1c46f6b9f82 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQkVBOjREODNFOjc0RDYzOTo5RjZCQUU6NkE0REIyOTQiLCJ2aXNpdG9yX2lkIjoiMzU2OTUxODQyMDY1NDE0MjEwMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | fc6b741ecc7c7cc968339a187335f8cdcde42b57251fcfa896c6c56f29feb3c9 |
| hovercard-subject-tag | issue:163883859 |
| 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/403/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c57d9d7dfab24baf622660543411b7b2a2ac3e0015f7ddeeeb449f889db32f32/GoogleCloudPlatform/python-docs-samples/issues/403 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c57d9d7dfab24baf622660543411b7b2a2ac3e0015f7ddeeeb449f889db32f32/GoogleCloudPlatform/python-docs-samples/issues/403 |
| og:image:alt | After installing the required dependencies, the tests of the streaming Speech API don't pass. The live speech recognition (speech_streaming.py) also don't work: no error is raised, but no response ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | raphael0202 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33 |
| 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 | 32f7b614aca06e6bbd89842b1370df1328264f68 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width