-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Conversation
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.
This seems fine, but @dhermes please give it a once-over also.
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.
Also LGTM
@@ -0,0 +1,211 @@ | |||
# Copyright 2017 Google Inc. |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
speech/google/cloud/speech/_http.py
Outdated
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.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
""" | ||
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.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
e8857e8
to
2eee25a
Compare
* Rename and move _JSONSpeechAPI to HTTPSpeechAPI.
* Rename and move _JSONSpeechAPI to HTTPSpeechAPI.
* Rename and move _JSONSpeechAPI to HTTPSpeechAPI.
* Rename and move _JSONSpeechAPI to HTTPSpeechAPI.
Moves
_JSONSpeechAPI
out ofclient.py
and into_http.py
.Also renames
_JSONSpeechAPI
->HTTPSpeechAPI
.#2965 needs to be merged before this.