Uh oh!
There was an error while loading. Please reload this page.
Speech v1 - #3266
Conversation
Unit tests pass, need to check on system tests.
dhermes
left a comment
There was a problem hiding this comment.
Looks mostly OK. Lot's of cosmetic, not much content
| profanity_filter=profanity_filter, | ||
| speech_context=SpeechContext(phrases=speech_context)) | ||
| sample_rate_hertz=sample.sample_rate_hertz, | ||
| speech_contexts=[SpeechContext(phrases=speech_contexts)], |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| def sample(self, content=None, source_uri=None, stream=None, encoding=None, | ||
| sample_rate=None): | ||
| sample_rate_hertz=None): |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| REQUIREMENTS = [ | ||
| 'google-cloud-core >= 0.24.0, < 0.25dev', | ||
| 'google-cloud-core >= 0.24.0, < 0.26dev', |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| setup( | ||
| name='google-cloud-speech', | ||
| version='0.24.0', | ||
| version='0.25.0', |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| """ | ||
| # This bizarre delay is necessary because the v1 API seems to return | ||
| # the v1beta1 type URL sometimes if you poll too soon. | ||
| time.sleep(3) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
dhermes
commented
Apr 5, 2017
LGTM pending CI |
lukesneeringer
commented
Apr 5, 2017
@gguuss Are the samples ready for this? We are ready to push it out once your documentation is updated. |
gguuss
commented
Apr 5, 2017
I'll let y'all know when I have my change in a branch |
gguuss
commented
Apr 5, 2017
theacodes
commented
Apr 5, 2017
@lukesneeringer seems weird that the samples have to do |
lukesneeringer
commented
Apr 5, 2017
@jonparrott We do not. Those changes are red in the diff. :-) |
lukesneeringer
commented
Apr 6, 2017
@gguuss I am ready to push this to PyPI, as soon as you say you are ready. |
lukesneeringer
commented
Apr 7, 2017
@gguuss Poke. (This is due today, so I will push it to PyPI around noon regardless.) |
gguuss
commented
Apr 7, 2017
I'm ready to go. |
nandoz
commented
Apr 20, 2017
hello |
This updates our manual client library to the Speech v1 API. This entails several **backwards incompatible changes**: * The `language_code` parameter is no longer optional anywhere. It must be explicitly specified, and does _not_ default to `'en-US'`. * The `sync_recognize` method has been renamed to `recognize` on every class where it appears. * The `async_recognize` method has been renamed to `long_running_recognize` on every class where it appears. * The `sample_rate` parameter and property has been renamed to `sample_rate_hertz` everywhere it appears. Additionally, the backend API contains a backwards incompatible change which does not require a code change in the client library, but will likely require one downstream: The `START_OF_SPEECH`, `END_OF_SPEECH`, and `END_OF_AUDIO` events have been removed.
This updates our manual client library to the Speech v1 API. This entails several **backwards incompatible changes**: * The `language_code` parameter is no longer optional anywhere. It must be explicitly specified, and does _not_ default to `'en-US'`. * The `sync_recognize` method has been renamed to `recognize` on every class where it appears. * The `async_recognize` method has been renamed to `long_running_recognize` on every class where it appears. * The `sample_rate` parameter and property has been renamed to `sample_rate_hertz` everywhere it appears. Additionally, the backend API contains a backwards incompatible change which does not require a code change in the client library, but will likely require one downstream: The `START_OF_SPEECH`, `END_OF_SPEECH`, and `END_OF_AUDIO` events have been removed.
This updates our manual client library to the Speech v1 API. This entails several **backwards incompatible changes**: * The `language_code` parameter is no longer optional anywhere. It must be explicitly specified, and does _not_ default to `'en-US'`. * The `sync_recognize` method has been renamed to `recognize` on every class where it appears. * The `async_recognize` method has been renamed to `long_running_recognize` on every class where it appears. * The `sample_rate` parameter and property has been renamed to `sample_rate_hertz` everywhere it appears. Additionally, the backend API contains a backwards incompatible change which does not require a code change in the client library, but will likely require one downstream: The `START_OF_SPEECH`, `END_OF_SPEECH`, and `END_OF_AUDIO` events have been removed.
…loudPlatform/python-docs-samples#3266) Co-authored-by: Leah E. Cole <6719667+leahecole@users.noreply.github.com>
This updates our manual client library to the Speech v1 API. This entails several **backwards incompatible changes**: * The `language_code` parameter is no longer optional anywhere. It must be explicitly specified, and does _not_ default to `'en-US'`. * The `sync_recognize` method has been renamed to `recognize` on every class where it appears. * The `async_recognize` method has been renamed to `long_running_recognize` on every class where it appears. * The `sample_rate` parameter and property has been renamed to `sample_rate_hertz` everywhere it appears. Additionally, the backend API contains a backwards incompatible change which does not require a code change in the client library, but will likely require one downstream: The `START_OF_SPEECH`, `END_OF_SPEECH`, and `END_OF_AUDIO` events have been removed.
This updates our manual client library to the Speech v1 API.
This entails several backwards incompatible changes:
language_codeparameter is no longer optional anywhere. It must be explicitly specified, and does not default to'en-US'.sync_recognizemethod has been renamed torecognizeon every class where it appears.async_recognizemethod has been renamed tolong_running_recognizeon every class where it appears.sample_rateparameter and property has been renamed tosample_rate_hertzeverywhere it appears.Additionally, the backend API contains a backwards incompatible change which does not require a code change in the client library, but will likely require one downstream: The
START_OF_SPEECH,END_OF_SPEECH, andEND_OF_AUDIOevents have been removed.