Skip to content

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