René's URL Explorer Experiment


Title: Google Speech API - how to catch grpc errors and close recognition correctly in speechv1 · Issue #963 · GoogleCloudPlatform/python-docs-samples · GitHub

Open Graph Title: Google Speech API - how to catch grpc errors and close recognition correctly in speechv1 · Issue #963 · GoogleCloudPlatform/python-docs-samples

X Title: Google Speech API - how to catch grpc errors and close recognition correctly in speechv1 · Issue #963 · GoogleCloudPlatform/python-docs-samples

Description: Hello. While using speechv1beta I was able to catch grpc error such as OUT_OF_RANGE and others simply with for resp in recognize_stream: if resp.error.code != code_pb2.OK: print(resp.error.message) With introducing of speechv1 actual grp...

Open Graph Description: Hello. While using speechv1beta I was able to catch grpc error such as OUT_OF_RANGE and others simply with for resp in recognize_stream: if resp.error.code != code_pb2.OK: print(resp.error.message)...

X Description: Hello. While using speechv1beta I was able to catch grpc error such as OUT_OF_RANGE and others simply with for resp in recognize_stream: if resp.error.code != code_pb2.OK: print(resp.error.message)...

Opengraph URL: https://github.com/GoogleCloudPlatform/python-docs-samples/issues/963

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Google Speech API - how to catch grpc errors and close recognition correctly in speechv1","articleBody":"Hello. While using speechv1beta I was able to catch grpc error such as OUT_OF_RANGE and others simply with \r\n```python\r\nfor resp in recognize_stream:\r\n    if resp.error.code != code_pb2.OK:\r\n        print(resp.error.message)\r\n```\r\nWith introducing of speechv1 actual grpc resposces are getting handled inside the `speech` module, and I can only get `alternatives` \r\n```python\r\nalternatives = self.audio_sample.streaming_recognize(self.language, interim_results=True,\r\n                                                                 profanity_filter=True)\r\n```\r\n\r\nHow can I catch grpc errors in new API?\r\n\r\n\r\nThe second question is how to stop the recognition correctly in the new API.\r\nI can't find any fucntionality as \r\n```python\r\nrecognize_stream = service.StreamingRecognize(\r\n                requests, self.DEADLINE_SECS)\r\n...\r\nrecognize_stream.cancel()\r\n```\r\nin the new speechv1 api.\r\nThanks!","author":{"url":"https://github.com/datspike","@type":"Person","name":"datspike"},"datePublished":"2017-05-25T17:51:04Z","url":"https://github.com/GoogleCloudPlatform/python-docs-samples/issues/963"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:2496da0d-d0bc-ff22-2618-2be66106c1ea
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE020:6B7A6:57DBF5:72EAA9:6AFE69A9
html-safe-nonce267e509b7b9a0f9e9979481df77432dd771a33634bdecfd4c1dc180bb5d7960b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMDIwOjZCN0E2OjU3REJGNTo3MkVBQTk6NkFGRTY5QTkiLCJ2aXNpdG9yX2lkIjoiNzYwMTQ2ODc3NDIyNjQ4NzcyMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac3ddf4a7e208e92158043a56a4018ef165678a6eee4581a5e6ce71ba7173905ab
hovercard-subject-tagissue:231410464
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/GoogleCloudPlatform/python-docs-samples/963/issue_layout
twitter:imagehttps://opengraph.githubassets.com/c24745febbf1207fbe747de1f758206ba1cdc43aa98b0374efc1a62d7871b170/GoogleCloudPlatform/python-docs-samples/issues/963
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c24745febbf1207fbe747de1f758206ba1cdc43aa98b0374efc1a62d7871b170/GoogleCloudPlatform/python-docs-samples/issues/963
og:image:altHello. While using speechv1beta I was able to catch grpc error such as OUT_OF_RANGE and others simply with for resp in recognize_stream: if resp.error.code != code_pb2.OK: print(resp.error.message)...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedatspike
hostnamegithub.com
expected-hostnamegithub.com
Noneb3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86
turbo-cache-controlno-preview
go-importgithub.com/GoogleCloudPlatform/python-docs-samples git https://github.com/GoogleCloudPlatform/python-docs-samples.git
octolytics-dimension-user_id2810941
octolytics-dimension-user_loginGoogleCloudPlatform
octolytics-dimension-repository_id35065876
octolytics-dimension-repository_nwoGoogleCloudPlatform/python-docs-samples
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id35065876
octolytics-dimension-repository_network_root_nwoGoogleCloudPlatform/python-docs-samples
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4a10310af51a1bfffbedc4fd81cb582acf0cb0ff
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/GoogleCloudPlatform/python-docs-samples/issues/963#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FGoogleCloudPlatform%2Fpython-docs-samples%2Fissues%2F963
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FGoogleCloudPlatform%2Fpython-docs-samples%2Fissues%2F963
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=GoogleCloudPlatform%2Fpython-docs-samples
Reloadhttps://github.com/GoogleCloudPlatform/python-docs-samples/issues/963
Reloadhttps://github.com/GoogleCloudPlatform/python-docs-samples/issues/963
Reloadhttps://github.com/GoogleCloudPlatform/python-docs-samples/issues/963
GoogleCloudPlatformhttps://github.com/GoogleCloudPlatform
python-docs-sampleshttps://github.com/GoogleCloudPlatform/python-docs-samples
Codehttps://github.com/GoogleCloudPlatform/python-docs-samples
Issues48 (48)https://github.com/GoogleCloudPlatform/python-docs-samples/issues
Pull requests244 (244)https://github.com/GoogleCloudPlatform/python-docs-samples/pulls
Actionshttps://github.com/GoogleCloudPlatform/python-docs-samples/actions
Wikihttps://github.com/GoogleCloudPlatform/python-docs-samples/wiki
Security and qualityhttps://github.com/GoogleCloudPlatform/python-docs-samples/security
Insightshttps://github.com/GoogleCloudPlatform/python-docs-samples/insights
https://github.com/GoogleCloudPlatform/python-docs-samples
New issuehttps://github.com/login?return_to=https://github.com/GoogleCloudPlatform/python-docs-samples/issues/963
New issuehttps://github.com/login?return_to=https://github.com/GoogleCloudPlatform/python-docs-samples/issues/963
Google Speech API - how to catch grpc errors and close recognition correctly in speechv1https://github.com/GoogleCloudPlatform/python-docs-samples/issues/963#top
https://github.com/gguuss
MLhttps://github.com/GoogleCloudPlatform/python-docs-samples/issues?q=state%3Aopen%20label%3A%22ML%22
https://github.com/datspike
datspikehttps://github.com/datspike
on May 25, 2017https://github.com/GoogleCloudPlatform/python-docs-samples/issues/963#issue-231410464
theacodeshttps://github.com/theacodes
gguusshttps://github.com/gguuss
on May 25, 2017https://github.com/GoogleCloudPlatform/python-docs-samples/issues/963#event-1097717301
theacodeshttps://github.com/theacodes
MLhttps://github.com/GoogleCloudPlatform/python-docs-samples/issues?q=state%3Aopen%20label%3A%22ML%22
questionhttps://github.com/GoogleCloudPlatform/python-docs-samples/issues?q=state%3Aopen%20label%3A%22question%22
on May 25, 2017https://github.com/GoogleCloudPlatform/python-docs-samples/issues/963#event-1097717507
https://github.com/jerjou
jerjouhttps://github.com/jerjou
on Jul 5, 2017https://github.com/GoogleCloudPlatform/python-docs-samples/issues/963#issuecomment-313234052
sourcehttps://github.com/GoogleCloudPlatform/google-cloud-python/blob/master/speech/google/cloud/speech/sample.py#L249
grpc libhttps://pypi.python.org/pypi/proto-google-cloud-speech-v1/0.15.3
jerjouhttps://github.com/jerjou
completedhttps://github.com/GoogleCloudPlatform/python-docs-samples/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jul 5, 2017https://github.com/GoogleCloudPlatform/python-docs-samples/issues/963#event-1151721619
Sign up for freehttps://github.com/signup?return_to=https://github.com/GoogleCloudPlatform/python-docs-samples/issues/963
Sign in to commenthttps://github.com/login?return_to=https://github.com/GoogleCloudPlatform/python-docs-samples/issues/963
gguusshttps://github.com/gguuss
MLhttps://github.com/GoogleCloudPlatform/python-docs-samples/issues?q=state%3Aopen%20label%3A%22ML%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.