Skip to content

Rename and move _JSONSpeechAPI to HTTPSpeechAPI. #2979

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

Merged
merged 2 commits into from
Feb 6, 2017

Conversation

daspecster
Copy link
Contributor

@daspecster daspecster commented Jan 31, 2017

Moves _JSONSpeechAPI out of client.py and into _http.py.

Also renames _JSONSpeechAPI -> HTTPSpeechAPI.

#2965 needs to be merged before this.

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

@lukesneeringer lukesneeringer left a comment

Choose a reason for hiding this comment

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

This seems fine, but @dhermes please give it a once-over also.

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.

Also LGTM

@@ -0,0 +1,211 @@
# Copyright 2017 Google Inc.

This comment was marked as spam.

This comment was marked as spam.

return [Alternative.from_api_repr(alternative)
for alternative in result['alternatives']]
else:
raise ValueError('More than one result or none returned from API.')

This comment was marked as spam.

This comment was marked as spam.

"""
if sample.content is not None:
audio = {'content':
_bytes_to_unicode(b64encode(_to_bytes(sample.content)))}

This comment was marked as spam.

This comment was marked as spam.

@daspecster daspecster added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Feb 1, 2017
@daspecster daspecster removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Feb 6, 2017
@daspecster daspecster merged commit a6bf059 into googleapis:master Feb 6, 2017
@daspecster daspecster deleted the move-speech-http branch February 6, 2017 17:57
richkadel pushed a commit to richkadel/google-cloud-python that referenced this pull request May 6, 2017
* Rename and move _JSONSpeechAPI to HTTPSpeechAPI.
atulep pushed a commit that referenced this pull request Apr 3, 2023
* Rename and move _JSONSpeechAPI to HTTPSpeechAPI.
atulep pushed a commit that referenced this pull request Apr 18, 2023
* Rename and move _JSONSpeechAPI to HTTPSpeechAPI.
parthea pushed a commit that referenced this pull request Oct 22, 2023
* Rename and move _JSONSpeechAPI to HTTPSpeechAPI.
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.

4 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy