Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add docs for 'result_index' usage and a system test. #3241

Merged
merged 1 commit into from
Mar 30, 2017

Conversation

daspecster
Copy link
Contributor

Closes #3166.

Updated the docs and added a system test for using result_index.

@daspecster daspecster added api: speech Issues related to the Speech-to-Text API. docs labels Mar 30, 2017
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Mar 30, 2017
@daspecster daspecster force-pushed the speech-add-result-index branch from 9c4315b to b5742aa Compare March 30, 2017 15:27
@lukesneeringer
Copy link
Contributor

No code change required?

@daspecster
Copy link
Contributor Author

@lukesneeringer turns out there isn't!
Since streaming is just returning the proto for now.

@daspecster daspecster merged commit 0aaf359 into googleapis:master Mar 30, 2017
@daspecster daspecster deleted the speech-add-result-index branch March 30, 2017 15:55
@dhermes
Copy link
Contributor

dhermes commented Mar 30, 2017

It seems that is not correct: https://circleci.com/gh/GoogleCloudPlatform/google-cloud-python/1455

(Pdb) results
<google.cloud.speech.result.StreamingSpeechResult object at 0x7f20454e6a90>
(Pdb) results.__dict__
{'alternatives': [<google.cloud.speech.alternative.Alternative object at 0x7f20454e6ac8>], 'is_final': True, 'stability': 0.0}
(Pdb) results.alternatives
[<google.cloud.speech.alternative.Alternative object at 0x7f20454e6ac8>]
(Pdb) results.alternatives[0]
<google.cloud.speech.alternative.Alternative object at 0x7f20454e6ac8>
(Pdb) results.alternatives[0].__dict__
{'_transcript': 'hello thank you for using Google Cloud platform', '_confidence': 0.9826789498329163}

@dhermes dhermes mentioned this pull request Mar 30, 2017
richkadel pushed a commit to richkadel/google-cloud-python that referenced this pull request May 6, 2017
…index

Add docs for 'result_index'  usage and a system test.
atulep pushed a commit that referenced this pull request Apr 3, 2023
Add docs for 'result_index'  usage and a system test.
atulep pushed a commit that referenced this pull request Apr 18, 2023
Add docs for 'result_index'  usage and a system test.
parthea pushed a commit that referenced this pull request Oct 22, 2023
Add docs for 'result_index'  usage and a system test.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: speech Issues related to the Speech-to-Text API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants