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 — Add speech asynchronous recognize support. by daspecster · Pull Request #2426 · googleapis/google-cloud-python

Conversation

@daspecster

@daspecster daspecster commented Sep 26, 2016

Copy link
Copy Markdown
Contributor

Add support for Speech API long running operations.

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 Sep 26, 2016
@daspecster daspecster assigned tseaver and dhermes Sep 26, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Sep 26, 2016
daspecster
daspecster commented Sep 26, 2016
View reviewed changes
Comment thread google/cloud/speech/client.py
config['profanityFilter'] = profanity_filter
if speech_context is not None:
config['speechContext'] = {'phrases': speech_context}
def _build_request_data(content, source_uri, encoding, sample_rate,

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.

dhermes
dhermes reviewed Sep 26, 2016
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.

I'm not 100% but I think there is a utility in google.protobuf for parsing a JSON version of a protobuf message type (here it is Operation)

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread docs/speech-usage.rst Outdated
>>> operation.complete
True
>>> operation.results[0]['alternatives'][0]['transcript']
"how old is the Brooklyn Bridge"

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 docs/speech-usage.rst Outdated
... operation.poll() # API call
>>> operation.complete
True
>>> operation.results[0]['alternatives'][0]['transcript']

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.

Comment thread google/cloud/speech/client.py
AMR_WB = 'AMR_WB'
"""AMR_WB encoding type."""
from google.cloud.speech.encoding import Encoding
from google.cloud.speech.operation import Operation

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 google/cloud/speech/client.py
config['profanityFilter'] = profanity_filter
if speech_context is not None:
config['speechContext'] = {'phrases': speech_context}
def _build_request_data(content, source_uri, encoding, sample_rate,

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 google/cloud/speech/operation.py Outdated
from google.cloud._helpers import _rfc3339_to_datetime


class Operation(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.

Comment thread unit_tests/speech/_fixtures.py Outdated
}
]
}
]

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 unit_tests/speech/_fixtures.py Outdated
]
}
]
}

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 unit_tests/speech/_fixtures.py Outdated
'startTime': '2016-09-22T17:52:25.536964Z',
'lastUpdateTime': '2016-09-22T17:52:27.802902Z'
},
'done': False

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 unit_tests/speech/_fixtures.py Outdated
'google.cloud.speech.v1beta1.AsyncRecognizeMetadata'),
'progressPercent': 27,
'startTime': '2016-09-22T17:52:25.536964Z',
'lastUpdateTime': '2016-09-22T17:52:27.802902Z'

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 google/cloud/speech/connection.py
"""The version of the API, used in building the API call's URL."""

API_URL_TEMPLATE = '{api_base_url}/{api_version}/speech:{path}'
API_URL_TEMPLATE = '{api_base_url}/{api_version}/{path}'

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 commented Sep 26, 2016

Copy link
Copy Markdown
Contributor Author

@dhermes was there supposed to be a link in here?

I'm not 100% but I think there is a utility in google.protobuf for parsing a JSON version of a protobuf message type (here it is Operation)

All reactions

Sorry, something went wrong.

Uh oh!

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

tseaver
tseaver reviewed Sep 26, 2016
View reviewed changes
Comment thread unit_tests/speech/test_client.py
encoding,
self.SAMPLE_RATE)
self.assertIsInstance(operation, Operation)
self.assertFalse(operation.complete)

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 docs/speech-usage.rst Outdated
... operation.poll() # API call
>>> operation.complete
True
>>> operation.results[0]['alternatives'][0]['transcript']

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 google/cloud/speech/connection.py
"""The version of the API, used in building the API call's URL."""

API_URL_TEMPLATE = '{api_base_url}/{api_version}/speech:{path}'
API_URL_TEMPLATE = '{api_base_url}/{api_version}/{path}'

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 added 2 commits September 27, 2016 10:18
@daspecster
Add speech asynchronous recognize support.
e5184af
@daspecster
Remove 'alternatives' key when accessing results.
92b2b89
@daspecster
daspecster force-pushed the add-speech-async branch from 7942a39 to 92b2b89 Compare September 27, 2016 14:18
@daspecster
Add Transcript and Metadata classes.
ce01e9a
@daspecster

daspecster commented Sep 27, 2016

Copy link
Copy Markdown
Contributor Author

@tseaver I think I got all the things you mentioned. LMKWYT

All reactions

Sorry, something went wrong.

Uh oh!

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

tseaver
tseaver reviewed Sep 28, 2016
View reviewed changes
Comment thread unit_tests/speech/test_operation.py Outdated
self._requested = []

def api_request(self, method, path):
self._requested.append({'method': method, 'path': path})

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.

@tseaver

tseaver commented Sep 28, 2016

Copy link
Copy Markdown
Contributor

@daspecster Should be OK to merge if you can tweak the assertions for the operations tests (see above).

All reactions

Sorry, something went wrong.

Uh oh!

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

@daspecster
Add missing request assertions for operation.poll.
08e9e03
tseaver
tseaver approved these changes Sep 28, 2016
View reviewed changes
@daspecster
daspecster merged commit 5a0e492 into googleapis:master Sep 28, 2016
@daspecster
daspecster deleted the add-speech-async branch September 28, 2016 15:43
@dhermes dhermes mentioned this pull request Sep 29, 2016
Manually cut releases of each package #2441
Closed
@daspecster daspecster mentioned this pull request Nov 9, 2016
Add async support to Speech API #2384
Closed
@dhermes dhermes mentioned this pull request Nov 14, 2016
Upgrading core to version to 0.21.0. #2733
Merged
@theacodes theacodes unassigned dhermes Sep 28, 2018
atulep pushed a commit that referenced this pull request Apr 3, 2023
@daspecster
Merge pull request #2426 from daspecster/add-speech-async
8cabd33
Add speech asynchronous recognize support.
atulep pushed a commit that referenced this pull request Apr 18, 2023
@daspecster
Merge pull request #2426 from daspecster/add-speech-async
16d84a9
Add speech asynchronous recognize support.
parthea pushed a commit that referenced this pull request Oct 22, 2023
@daspecster
Merge pull request #2426 from daspecster/add-speech-async
4fd0eca
Add speech asynchronous recognize support.
parthea pushed a commit that referenced this pull request Apr 1, 2026
@GarrettWu
feat: add bigframe.bigquery.load_data function (#2426)
f6b0cb5
Thank you for opening a Pull Request! Before submitting your PR, there
are a few things you can do to make sure it goes smoothly:
- [ ] Make sure to open an issue as a
[bug/issue](https://github.com/googleapis/python-bigquery-dataframes/issues/new/choose)
before writing your code! That way we can discuss the change, evaluate
designs, and agree on the general idea
- [ ] Ensure the tests and linter pass
- [ ] Code coverage does not decrease (if any source code was changed)
- [ ] Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> 🦕
parthea pushed a commit that referenced this pull request Apr 1, 2026
@shuoweil
chore: librarian release pull request: 20260207T015024Z (#2446)
2f8fc72
PR created by the Librarian CLI to initialize a release. Merging this PR
will auto trigger a release.

Librarian Version: v0.7.0
Language Image:
us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/python-librarian-generator@sha256:e7cc6823efb073a8a26e7cefdd869f12ec228abfbd2a44aa9a7eacc284023677
<details><summary>bigframes: 2.35.0</summary>

##
[2.35.0](google/bigframes@v2.34.0...v2.35.0)
(2026-02-07)

### Features

* Add bigframes.pandas.col with basic operators (#2405)
([12741677](google/bigframes@12741677))

* remove redundant &#34;started.&#34; messages from progress output
(#2440)
([2017cc2f](google/bigframes@2017cc2f))

* add bigframe.bigquery.load_data function (#2426)
([4b0f13b2](google/bigframes@4b0f13b2))

* Disable progress bars in Anywidget mode (#2444)
([4e2689a1](google/bigframes@4e2689a1))

* add bigquery.ai.generate_text function (#2433)
([5bd0029a](google/bigframes@5bd0029a))

* Disable progress bars in Anywidget mode to reduce notebook clutter
(#2437)
([853240da](google/bigframes@853240da))

* Add a bigframes cell magic for ipython (#2395)
([e6de52de](google/bigframes@e6de52de))

* add `bigframes.bigquery.ai.generate_embedding` (#2343)
([e91536c8](google/bigframes@e91536c8))

### Bug Fixes

* always display the results in the `%%bqsql` cell magics output (#2439)
([2d973b54](google/bigframes@2d973b54))

* exlcude gcsfs 2026.2.0 (#2445)
([311de31e](google/bigframes@311de31e))

* suppress JSONDtypeWarning in Anywidget mode and clean up progress
output (#2441)
([e0d185ad](google/bigframes@e0d185ad))

### Documentation

* fix cast method shown on public docs (#2436)
([ad0f33c6](google/bigframes@ad0f33c6))

</details>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

2 more reviewers
@dhermes dhermes dhermes left review comments
@tseaver tseaver tseaver 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 @tseaver @dhermes @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.