GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Clean up async docs and unify for future GAPIC async. by daspecster · Pull Request #2638 · googleapis/google-cloud-python

Conversation

@daspecster

@daspecster daspecster commented Oct 28, 2016

Copy link
Copy Markdown
Contributor

@dhermes mentioned this in a previous review.
This is correct and I also cleaned up the docs.

In my testing with async, I haven't gotten more than one alternative to show up, even whith max_alternatives=2. So that's why there isn't two in the doc example.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@daspecster daspecster added the api: speech Issues related to the Speech-to-Text API. label Oct 28, 2016
@daspecster daspecster assigned tseaver and dhermes Oct 28, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Oct 28, 2016
@daspecster daspecster added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Oct 28, 2016
dhermes
dhermes reviewed Oct 28, 2016
View reviewed changes
Comment thread speech/google/cloud/speech/operation.py
@@ -123,8 +123,9 @@ def _update(self, response):
raw_results = response.get('response', {}).get('results', None)

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@daspecster daspecster removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Oct 28, 2016
dhermes
dhermes reviewed Oct 28, 2016
View reviewed changes
Comment thread speech/google/cloud/speech/result.py Outdated
from google.cloud.speech.transcript import Transcript


class SpeechResult(object):

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@daspecster daspecster mentioned this pull request Oct 28, 2016
Tracking Speech API development. #2522
Closed
14 tasks done
dhermes
dhermes approved these changes Oct 28, 2016
View reviewed changes
Comment thread speech/google/cloud/speech/operation.py
results.append(Transcript.from_api_repr(result))
for result in raw_results:
for alternative in result['alternatives']:
results.append(Transcript.from_api_repr(alternative))

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread speech/unit_tests/test_operation.py Outdated
self.assertEqual('123456789', operation.name)
self.assertTrue(operation.complete)

self.assertIsInstance(operation.results, list)

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@daspecster
Clean up async docs and unify for future GAPIC async.
1c5ed57
@daspecster
daspecster force-pushed the unify-speech-async-operation-results branch from 7afb765 to 1c5ed57 Compare October 29, 2016 02:22
@daspecster
daspecster merged commit 1cbc793 into googleapis:master Oct 29, 2016
@daspecster
daspecster deleted the unify-speech-async-operation-results branch October 29, 2016 02:28
@daspecster daspecster mentioned this pull request Dec 8, 2016
Track implement the leftover "future" items for Speech #2842
Closed
1 of 3 tasks
richkadel pushed a commit to richkadel/google-cloud-python that referenced this pull request May 6, 2017
@daspecster
Merge pull request googleapis#2638 from daspecster/unify-speech-async…
e8e0c2d
…-operation-results

Clean up async docs and unify for future GAPIC async.
@theacodes theacodes unassigned dhermes Sep 28, 2018
atulep pushed a commit that referenced this pull request Apr 3, 2023
@daspecster
Merge pull request #2638 from daspecster/unify-speech-async-operation…
0fdb9d2
…-results

Clean up async docs and unify for future GAPIC async.
atulep pushed a commit that referenced this pull request Apr 18, 2023
@daspecster
Merge pull request #2638 from daspecster/unify-speech-async-operation…
1de1ad4
…-results

Clean up async docs and unify for future GAPIC async.
parthea pushed a commit that referenced this pull request Oct 22, 2023
@daspecster
Merge pull request #2638 from daspecster/unify-speech-async-operation…
5dd39ac
…-results

Clean up async docs and unify for future GAPIC async.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@dhermes dhermes dhermes approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@tseaver tseaver

Labels

api: speech Issues related to the Speech-to-Text API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@daspecster @dhermes @tseaver @googlebot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.