Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Commit

Permalink
feat: update v1 proto (#221)
Browse files Browse the repository at this point in the history
* feat: update v1 proto

PiperOrigin-RevId: 410256789

Source-Link: googleapis/googleapis@b3ff183

Source-Link: googleapis/googleapis-gen@488fbdc
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNDg4ZmJkYzQ2OTYyZDhiMGM3N2FmNzA2ZmFhNTUyYjlmYjVhNzFiOCJ9

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] committed Nov 16, 2021
1 parent e7c1003 commit e8776d7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 48 deletions.
Expand Up @@ -223,17 +223,7 @@ async def list_voices(
# and friendly error handling.
rpc = gapic_v1.method_async.wrap_method(
self._client._transport.list_voices,
default_retry=retries.Retry(
initial=0.1,
maximum=60.0,
multiplier=1.3,
predicate=retries.if_exception_type(
core_exceptions.DeadlineExceeded,
core_exceptions.ServiceUnavailable,
),
deadline=600.0,
),
default_timeout=600.0,
default_timeout=None,
client_info=DEFAULT_CLIENT_INFO,
)

Expand Down Expand Up @@ -319,17 +309,7 @@ async def synthesize_speech(
# and friendly error handling.
rpc = gapic_v1.method_async.wrap_method(
self._client._transport.synthesize_speech,
default_retry=retries.Retry(
initial=0.1,
maximum=60.0,
multiplier=1.3,
predicate=retries.if_exception_type(
core_exceptions.DeadlineExceeded,
core_exceptions.ServiceUnavailable,
),
deadline=600.0,
),
default_timeout=600.0,
default_timeout=None,
client_info=DEFAULT_CLIENT_INFO,
)

Expand Down
Expand Up @@ -122,34 +122,10 @@ def _prep_wrapped_messages(self, client_info):
# Precompute the wrapped methods.
self._wrapped_methods = {
self.list_voices: gapic_v1.method.wrap_method(
self.list_voices,
default_retry=retries.Retry(
initial=0.1,
maximum=60.0,
multiplier=1.3,
predicate=retries.if_exception_type(
core_exceptions.DeadlineExceeded,
core_exceptions.ServiceUnavailable,
),
deadline=600.0,
),
default_timeout=600.0,
client_info=client_info,
self.list_voices, default_timeout=None, client_info=client_info,
),
self.synthesize_speech: gapic_v1.method.wrap_method(
self.synthesize_speech,
default_retry=retries.Retry(
initial=0.1,
maximum=60.0,
multiplier=1.3,
predicate=retries.if_exception_type(
core_exceptions.DeadlineExceeded,
core_exceptions.ServiceUnavailable,
),
deadline=600.0,
),
default_timeout=600.0,
client_info=client_info,
self.synthesize_speech, default_timeout=None, client_info=client_info,
),
}

Expand Down
2 changes: 2 additions & 0 deletions google/cloud/texttospeech_v1/types/cloud_tts.py
Expand Up @@ -51,6 +51,8 @@ class AudioEncoding(proto.Enum):
LINEAR16 = 1
MP3 = 2
OGG_OPUS = 3
MULAW = 5
ALAW = 6


class ListVoicesRequest(proto.Message):
Expand Down

0 comments on commit e8776d7

Please sign in to comment.