From edf608268fabc51783218d49c41452cfe7fe2146 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 22 Dec 2021 12:11:18 -0500 Subject: [PATCH] docs: update comments for ListVoicesRequest (#229) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs: update comments for ListVoicesRequest PiperOrigin-RevId: 417752787 Source-Link: https://github.com/googleapis/googleapis/commit/3e584174cda84c9f853318b9ac95e5037eaedd5b Source-Link: https://github.com/googleapis/googleapis-gen/commit/e9ad9d638600638a00b072ffa8d418a7898f2d46 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTlhZDlkNjM4NjAwNjM4YTAwYjA3MmZmYThkNDE4YTc4OThmMmQ0NiJ9 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .../services/text_to_speech/async_client.py | 11 ++++------- .../services/text_to_speech/client.py | 11 ++++------- .../cloud/texttospeech_v1beta1/types/cloud_tts.py | 10 ++++------ 3 files changed, 12 insertions(+), 20 deletions(-) diff --git a/packages/google-cloud-texttospeech/google/cloud/texttospeech_v1beta1/services/text_to_speech/async_client.py b/packages/google-cloud-texttospeech/google/cloud/texttospeech_v1beta1/services/text_to_speech/async_client.py index 68c02102820b..5bef1d8c5fe0 100644 --- a/packages/google-cloud-texttospeech/google/cloud/texttospeech_v1beta1/services/text_to_speech/async_client.py +++ b/packages/google-cloud-texttospeech/google/cloud/texttospeech_v1beta1/services/text_to_speech/async_client.py @@ -182,13 +182,10 @@ async def list_voices( language tag. If not specified, the API will return all supported voices. If specified, the ListVoices call will only return voices that can be used to synthesize this - language_code. E.g. when specifying ``"en-NZ"``, you - will get supported ``"en-NZ"`` voices; when specifying - ``"no"``, you will get supported ``"no-\*"`` (Norwegian) - and ``"nb-\*"`` (Norwegian Bokmal) voices; specifying - ``"zh"`` will also get supported ``"cmn-\*"`` voices; - specifying ``"zh-hk"`` will also get supported - ``"yue-hk"`` voices. + language_code. For example, if you specify ``"en-NZ"``, + all ``"en-NZ"`` voices will be returned. If you specify + ``"no"``, both ``"no-\*"`` (Norwegian) and ``"nb-\*"`` + (Norwegian Bokmal) voices will be returned. This corresponds to the ``language_code`` field on the ``request`` instance; if ``request`` is provided, this diff --git a/packages/google-cloud-texttospeech/google/cloud/texttospeech_v1beta1/services/text_to_speech/client.py b/packages/google-cloud-texttospeech/google/cloud/texttospeech_v1beta1/services/text_to_speech/client.py index a9139a4dcd7b..0ab15bbc9265 100644 --- a/packages/google-cloud-texttospeech/google/cloud/texttospeech_v1beta1/services/text_to_speech/client.py +++ b/packages/google-cloud-texttospeech/google/cloud/texttospeech_v1beta1/services/text_to_speech/client.py @@ -376,13 +376,10 @@ def list_voices( language tag. If not specified, the API will return all supported voices. If specified, the ListVoices call will only return voices that can be used to synthesize this - language_code. E.g. when specifying ``"en-NZ"``, you - will get supported ``"en-NZ"`` voices; when specifying - ``"no"``, you will get supported ``"no-\*"`` (Norwegian) - and ``"nb-\*"`` (Norwegian Bokmal) voices; specifying - ``"zh"`` will also get supported ``"cmn-\*"`` voices; - specifying ``"zh-hk"`` will also get supported - ``"yue-hk"`` voices. + language_code. For example, if you specify ``"en-NZ"``, + all ``"en-NZ"`` voices will be returned. If you specify + ``"no"``, both ``"no-\*"`` (Norwegian) and ``"nb-\*"`` + (Norwegian Bokmal) voices will be returned. This corresponds to the ``language_code`` field on the ``request`` instance; if ``request`` is provided, this diff --git a/packages/google-cloud-texttospeech/google/cloud/texttospeech_v1beta1/types/cloud_tts.py b/packages/google-cloud-texttospeech/google/cloud/texttospeech_v1beta1/types/cloud_tts.py index bb4f3b50e4aa..74483533d49c 100644 --- a/packages/google-cloud-texttospeech/google/cloud/texttospeech_v1beta1/types/cloud_tts.py +++ b/packages/google-cloud-texttospeech/google/cloud/texttospeech_v1beta1/types/cloud_tts.py @@ -69,12 +69,10 @@ class ListVoicesRequest(proto.Message): language tag. If not specified, the API will return all supported voices. If specified, the ListVoices call will only return voices that can be used to synthesize this - language_code. E.g. when specifying ``"en-NZ"``, you will - get supported ``"en-NZ"`` voices; when specifying ``"no"``, - you will get supported ``"no-\*"`` (Norwegian) and - ``"nb-\*"`` (Norwegian Bokmal) voices; specifying ``"zh"`` - will also get supported ``"cmn-\*"`` voices; specifying - ``"zh-hk"`` will also get supported ``"yue-hk"`` voices. + language_code. For example, if you specify ``"en-NZ"``, all + ``"en-NZ"`` voices will be returned. If you specify + ``"no"``, both ``"no-\*"`` (Norwegian) and ``"nb-\*"`` + (Norwegian Bokmal) voices will be returned. """ language_code = proto.Field(proto.STRING, number=1,)