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

Commit 9ea340c

Browse files
docs: update comments for ListVoicesRequest (#229)
* docs: update comments for ListVoicesRequest PiperOrigin-RevId: 417752787 Source-Link: googleapis/googleapis@3e58417 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 <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 61a7fce commit 9ea340c

File tree

3 files changed

+12
-20
lines changed

3 files changed

+12
-20
lines changed

google/cloud/texttospeech_v1beta1/services/text_to_speech/async_client.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -182,13 +182,10 @@ async def list_voices(
182182
language tag. If not specified, the API will return all
183183
supported voices. If specified, the ListVoices call will
184184
only return voices that can be used to synthesize this
185-
language_code. E.g. when specifying ``"en-NZ"``, you
186-
will get supported ``"en-NZ"`` voices; when specifying
187-
``"no"``, you will get supported ``"no-\*"`` (Norwegian)
188-
and ``"nb-\*"`` (Norwegian Bokmal) voices; specifying
189-
``"zh"`` will also get supported ``"cmn-\*"`` voices;
190-
specifying ``"zh-hk"`` will also get supported
191-
``"yue-hk"`` voices.
185+
language_code. For example, if you specify ``"en-NZ"``,
186+
all ``"en-NZ"`` voices will be returned. If you specify
187+
``"no"``, both ``"no-\*"`` (Norwegian) and ``"nb-\*"``
188+
(Norwegian Bokmal) voices will be returned.
192189
193190
This corresponds to the ``language_code`` field
194191
on the ``request`` instance; if ``request`` is provided, this

google/cloud/texttospeech_v1beta1/services/text_to_speech/client.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -376,13 +376,10 @@ def list_voices(
376376
language tag. If not specified, the API will return all
377377
supported voices. If specified, the ListVoices call will
378378
only return voices that can be used to synthesize this
379-
language_code. E.g. when specifying ``"en-NZ"``, you
380-
will get supported ``"en-NZ"`` voices; when specifying
381-
``"no"``, you will get supported ``"no-\*"`` (Norwegian)
382-
and ``"nb-\*"`` (Norwegian Bokmal) voices; specifying
383-
``"zh"`` will also get supported ``"cmn-\*"`` voices;
384-
specifying ``"zh-hk"`` will also get supported
385-
``"yue-hk"`` voices.
379+
language_code. For example, if you specify ``"en-NZ"``,
380+
all ``"en-NZ"`` voices will be returned. If you specify
381+
``"no"``, both ``"no-\*"`` (Norwegian) and ``"nb-\*"``
382+
(Norwegian Bokmal) voices will be returned.
386383
387384
This corresponds to the ``language_code`` field
388385
on the ``request`` instance; if ``request`` is provided, this

google/cloud/texttospeech_v1beta1/types/cloud_tts.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,10 @@ class ListVoicesRequest(proto.Message):
6969
language tag. If not specified, the API will return all
7070
supported voices. If specified, the ListVoices call will
7171
only return voices that can be used to synthesize this
72-
language_code. E.g. when specifying ``"en-NZ"``, you will
73-
get supported ``"en-NZ"`` voices; when specifying ``"no"``,
74-
you will get supported ``"no-\*"`` (Norwegian) and
75-
``"nb-\*"`` (Norwegian Bokmal) voices; specifying ``"zh"``
76-
will also get supported ``"cmn-\*"`` voices; specifying
77-
``"zh-hk"`` will also get supported ``"yue-hk"`` voices.
72+
language_code. For example, if you specify ``"en-NZ"``, all
73+
``"en-NZ"`` voices will be returned. If you specify
74+
``"no"``, both ``"no-\*"`` (Norwegian) and ``"nb-\*"``
75+
(Norwegian Bokmal) voices will be returned.
7876
"""
7977

8078
language_code = proto.Field(proto.STRING, number=1,)

0 commit comments

Comments
 (0)