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 — Speech v1 by lukesneeringer · Pull Request #3266 · googleapis/google-cloud-python

Conversation

@lukesneeringer

@lukesneeringer lukesneeringer commented Apr 3, 2017 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

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.

Sorry, something went wrong.

Uh oh!

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

All reactions
lukesneeringer and others added 4 commits April 2, 2017 13:44
@lukesneeringer
[WIP] Speech v1
8454815
Luke Sneeringer
Speech v1 port.
67c1e65
Unit tests pass, need to check on system tests.
Luke Sneeringer
Fixed missing coverage; system tests still WIP.
7fb2b68
Luke Sneeringer
Fix to final bizarre system test. Raised with backend folks.
3dacda5
@lukesneeringer lukesneeringer self-assigned this Apr 3, 2017
@lukesneeringer
lukesneeringer requested a review from dhermes April 3, 2017 17:45
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Apr 3, 2017
dhermes
dhermes reviewed Apr 3, 2017
View reviewed changes

@dhermes dhermes left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Looks mostly OK. Lot's of cosmetic, not much content

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread speech/google/cloud/speech/_gax.py
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.

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.

Comment thread speech/google/cloud/speech/client.py

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.

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.

Comment thread speech/setup.py Outdated

REQUIREMENTS = [
'google-cloud-core >= 0.24.0, < 0.25dev',
'google-cloud-core >= 0.24.0, < 0.26dev',

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.

Comment thread speech/setup.py Outdated
setup(
name='google-cloud-speech',
version='0.24.0',
version='0.25.0',

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/tests/system.py
"""
# 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.

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.

lukesneeringer and others added 3 commits April 3, 2017 14:03
@lukesneeringer
Update Speech docs.
f8b98b3
Luke Sneeringer
Change back version numbers.
d4d02ac
Luke Sneeringer
Merge branch 'speech-v1' of github.com:GoogleCloudPlatform/google-clo…
e8da4c0
…ud-python into speech-v1
@lukesneeringer lukesneeringer mentioned this pull request Apr 5, 2017
Remove time.sleep in Speech system tests. #3273
Closed
@dhermes

dhermes commented Apr 5, 2017

Copy link
Copy Markdown
Contributor

LGTM pending CI

All reactions

Sorry, something went wrong.

Uh oh!

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

@lukesneeringer

lukesneeringer commented Apr 5, 2017

Copy link
Copy Markdown
Contributor Author

@gguuss Are the samples ready for this? We are ready to push it out once your documentation is updated.

All reactions

Sorry, something went wrong.

Uh oh!

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

@gguuss

gguuss commented Apr 5, 2017

Copy link
Copy Markdown
Contributor

I'll let y'all know when I have my change in a branch

All reactions

Sorry, something went wrong.

Uh oh!

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

@gguuss

gguuss commented Apr 5, 2017

Copy link
Copy Markdown
Contributor

Sample changes staged here

All reactions

Sorry, something went wrong.

Uh oh!

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

@theacodes

theacodes commented Apr 5, 2017

Copy link
Copy Markdown
Contributor

@lukesneeringer seems weird that the samples have to do speech_client.speech_api.x?

All reactions

Sorry, something went wrong.

Uh oh!

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

@lukesneeringer

lukesneeringer commented Apr 5, 2017

Copy link
Copy Markdown
Contributor Author

@jonparrott We do not. Those changes are red in the diff. :-)

All reactions

Sorry, something went wrong.

Uh oh!

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

@lukesneeringer
lukesneeringer merged commit a9268a3 into master Apr 5, 2017
@lukesneeringer
lukesneeringer deleted the speech-v1 branch April 5, 2017 21:34
@lukesneeringer

lukesneeringer commented Apr 6, 2017

Copy link
Copy Markdown
Contributor Author

@gguuss I am ready to push this to PyPI, as soon as you say you are ready.

All reactions

Sorry, something went wrong.

Uh oh!

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

@lukesneeringer

lukesneeringer commented Apr 7, 2017

Copy link
Copy Markdown
Contributor Author

@gguuss Poke. (This is due today, so I will push it to PyPI around noon regardless.)

All reactions

Sorry, something went wrong.

Uh oh!

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

@gguuss

gguuss commented Apr 7, 2017

Copy link
Copy Markdown
Contributor

I'm ready to go.

All reactions

Sorry, something went wrong.

Uh oh!

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

@lukesneeringer lukesneeringer mentioned this pull request Apr 7, 2017
Bump Speech to 0.25.0. #3280
Merged
@nandoz

nandoz commented Apr 20, 2017

Copy link
Copy Markdown

hello

All reactions

Sorry, something went wrong.

Uh oh!

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

richkadel pushed a commit to richkadel/google-cloud-python that referenced this pull request May 6, 2017
@lukesneeringer
Speech v1 (googleapis#3266)
f29bef3
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.
atulep pushed a commit that referenced this pull request Apr 3, 2023
@lukesneeringer
Speech v1 (#3266)
d225480
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.
atulep pushed a commit that referenced this pull request Apr 18, 2023
@lukesneeringer
Speech v1 (#3266)
5d09621
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.
parthea pushed a commit that referenced this pull request Oct 21, 2023
@renovate-bot @leahecole @busunkim96
chore(deps): update dependency cryptography to v2.9 [(#3266)](GoogleC…
fd3323d
…loudPlatform/python-docs-samples#3266)

Co-authored-by: Leah E. Cole <[email protected]>
parthea pushed a commit that referenced this pull request Oct 22, 2023
@lukesneeringer
Speech v1 (#3266)
c886534
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.
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 left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

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

Assignees

@lukesneeringer lukesneeringer

Labels

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.

6 participants

@lukesneeringer @dhermes @gguuss @theacodes @nandoz @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.