| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
This seems fine, but @dhermes please give it a once-over also.
Sorry, something went wrong.
There was a problem hiding this comment.
Also LGTM
Sorry, something went wrong.
| @@ -0,0 +1,211 @@ | |||
| # Copyright 2017 Google Inc. | |||
| return [Alternative.from_api_repr(alternative) | ||
| for alternative in result['alternatives']] | ||
| else: | ||
| raise ValueError('More than one result or none returned from API.') |
| """ | ||
| if sample.content is not None: | ||
| audio = {'content': | ||
| _bytes_to_unicode(b64encode(_to_bytes(sample.content)))} |
* Rename and move _JSONSpeechAPI to HTTPSpeechAPI.
* Rename and move _JSONSpeechAPI to HTTPSpeechAPI.
* Rename and move _JSONSpeechAPI to HTTPSpeechAPI.
* Rename and move _JSONSpeechAPI to HTTPSpeechAPI.
| Back | FazBrowse Home | New Git URL |
Moves _JSONSpeechAPI out of client.py and into _http.py.
Also renames _JSONSpeechAPI -> HTTPSpeechAPI.
#2965 needs to be merged before this.