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

Update speech usage examples. #3206

Merged

Conversation

daspecster
Copy link
Contributor

@daspecster daspecster added api: speech Issues related to the Speech-to-Text API. docs labels Mar 24, 2017
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Mar 24, 2017
Copy link
Contributor

@dhermes dhermes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this not a great opportunity to other put this in a speech_snippets.py file or follow the template of datastore and just test as doctests?

... speech.Encoding.FLAC, 16000,
... source_uri='gs://my-bucket/recording.flac', language_code='en-GB',
... max_alternatives=2)
>>> results = sample.sync_recognize(language_code='en-GB', max_alternatives=2)

This comment was marked as spam.

@daspecster
Copy link
Contributor Author

@dhermes yeah I think it would be. @lukesneeringer sounded like I should just run through these manually for now but I'm game either way.

@lukesneeringer WDYT?

@dhermes
Copy link
Contributor

dhermes commented Mar 24, 2017

These "hand-crafted" code snippets will always be vulernable to bit-rot if we don't have a way to test them.

@lukesneeringer
Copy link
Contributor

Speech is not a GA candidate, so if you are done checking off the GA requirements, feel free to take a more involved pass and make doctests.

@lukesneeringer
Copy link
Contributor

To be clear, though, please make sure everything is pristine on the GA libraries first.

@daspecster
Copy link
Contributor Author

daspecster commented Mar 24, 2017

@lukesneeringer @dhermes continue back into the original issue?
#3172 (comment)

@lukesneeringer
Copy link
Contributor

Yes.

@daspecster
Copy link
Contributor Author

daspecster commented Mar 28, 2017

@lukesneeringer / @dhermes is this good to merge?

@lukesneeringer lukesneeringer merged commit 2a0ba64 into googleapis:master Mar 30, 2017
@daspecster daspecster deleted the update-speech-examples-for-beta branch March 30, 2017 15:22
richkadel pushed a commit to richkadel/google-cloud-python that referenced this pull request May 6, 2017
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