Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 1.8k
Speech Client Library Header#3048
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
719e3296ad2b93f1c424b5944f28a1d5409eee7b795b57c93File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -51,12 +51,12 @@ | ||
| REQUIREMENTS = [ | ||
| 'google-cloud-core >= 0.23.0, < 0.24dev', | ||
| 'grpcio >= 1.0.2, < 2.0dev', | ||
| 'gapic-google-cloud-speech-v1beta1 >= 0.15.0, < 0.16dev', | ||
| 'gapic-google-cloud-speech-v1beta1 >= 0.15.1, < 0.16dev', | ||
| ] | ||
| setup( | ||
| name='google-cloud-speech', | ||
| version='0.22.0', | ||
| version='0.23.0', | ||
This comment was marked as spam.Sorry, something went wrong. Uh oh!There was an error while loading. Please reload this page.
This comment was marked as spam.Sorry, something went wrong. Uh oh!There was an error while loading. Please reload this page. | ||
| description='Python Client for Google Cloud Speech', | ||
| long_description=README, | ||
| namespace_packages=[ | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -258,9 +258,9 @@ def make_channel(*args): | ||
| channel_args.append(args) | ||
| return channel_obj | ||
| def speech_api(channel=None): | ||
| def speech_api(channel=None, **kwargs): | ||
| return _MockGAPICSpeechAPI(response=_make_sync_response(), | ||
| channel=channel) | ||
| channel=channel, **kwargs) | ||
This comment was marked as spam.Sorry, something went wrong. Uh oh!There was an error while loading. Please reload this page.
This comment was marked as spam.Sorry, something went wrong. Uh oh!There was an error while loading. Please reload this page.
This comment was marked as spam.Sorry, something went wrong. Uh oh!There was an error while loading. Please reload this page.
This comment was marked as spam.Sorry, something went wrong. Uh oh!There was an error while loading. Please reload this page. | ||
| host = 'foo.apis.invalid' | ||
| speech_api.SERVICE_ADDRESS = host | ||
| @@ -311,10 +311,10 @@ def make_channel(*args): | ||
| channel_args.append(args) | ||
| return channel_obj | ||
| def speech_api(channel=None): | ||
| def speech_api(channel=None, **kwargs): | ||
| return _MockGAPICSpeechAPI( | ||
| response=_make_sync_response(result), | ||
| channel=channel) | ||
| channel=channel, **kwargs) | ||
| host = 'foo.apis.invalid' | ||
| speech_api.SERVICE_ADDRESS = host | ||
| @@ -407,8 +407,8 @@ def make_channel(*args): | ||
| encoding=speech.Encoding.LINEAR16, | ||
| sample_rate=self.SAMPLE_RATE) | ||
| def speech_api(channel=None): | ||
| return _MockGAPICSpeechAPI(channel=channel) | ||
| def speech_api(channel=None, **kwargs): | ||
| return _MockGAPICSpeechAPI(channel=channel, **kwargs) | ||
| host = 'foo.apis.invalid' | ||
| speech_api.SERVICE_ADDRESS = host | ||
| @@ -463,8 +463,8 @@ def make_channel(*args): | ||
| channel_args.append(args) | ||
| return channel_obj | ||
| def speech_api(channel=None): | ||
| return _MockGAPICSpeechAPI(channel=channel) | ||
| def speech_api(channel=None, **kwargs): | ||
| return _MockGAPICSpeechAPI(channel=channel, **kwargs) | ||
| host = 'foo.apis.invalid' | ||
| speech_api.SERVICE_ADDRESS = host | ||
| @@ -522,8 +522,9 @@ def make_channel(*args): | ||
| channel_args.append(args) | ||
| return channel_obj | ||
| def speech_api(channel=None): | ||
| return _MockGAPICSpeechAPI(channel=channel, response=responses) | ||
| def speech_api(channel=None, **kwargs): | ||
| return _MockGAPICSpeechAPI(channel=channel, response=responses, | ||
| **kwargs) | ||
| host = 'foo.apis.invalid' | ||
| speech_api.SERVICE_ADDRESS = host | ||
| @@ -599,8 +600,9 @@ def make_channel(*args): | ||
| channel_args.append(args) | ||
| return channel_obj | ||
| def speech_api(channel=None): | ||
| return _MockGAPICSpeechAPI(channel=channel, response=responses) | ||
| def speech_api(channel=None, **kwargs): | ||
| return _MockGAPICSpeechAPI(channel=channel, response=responses, | ||
| **kwargs) | ||
| host = 'foo.apis.invalid' | ||
| speech_api.SERVICE_ADDRESS = host | ||
| @@ -643,8 +645,9 @@ def make_channel(*args): | ||
| channel_args.append(args) | ||
| return channel_obj | ||
| def speech_api(channel=None): | ||
| return _MockGAPICSpeechAPI(channel=channel, response=responses) | ||
| def speech_api(channel=None, **kwargs): | ||
| return _MockGAPICSpeechAPI(channel=channel, response=responses, | ||
| **kwargs) | ||
| host = 'foo.apis.invalid' | ||
| speech_api.SERVICE_ADDRESS = host | ||
| @@ -677,8 +680,8 @@ def make_channel(*args): | ||
| channel_args.append(args) | ||
| return channel_obj | ||
| def speech_api(channel=None): | ||
| return _MockGAPICSpeechAPI(channel=channel) | ||
| def speech_api(channel=None, **kwargs): | ||
| return _MockGAPICSpeechAPI(channel=channel, **kwargs) | ||
| host = 'foo.apis.invalid' | ||
| speech_api.SERVICE_ADDRESS = host | ||
| @@ -720,9 +723,10 @@ class _MockGAPICSpeechAPI(object): | ||
| SERVICE_ADDRESS = 'foo.apis.invalid' | ||
| def __init__(self, response=None, channel=None): | ||
| def __init__(self, response=None, channel=None, **kwargs): | ||
| self._response = response | ||
| self._channel = channel | ||
| self._kwargs = kwargs | ||
| def async_recognize(self, config, audio): | ||
| from google.gapic.longrunning.operations_client import OperationsClient | ||
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.