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

Commit bc5b73f

Browse files
docs: update comments for ListVoicesRequest (#244)
* docs: update comments for ListVoicesRequest PiperOrigin-RevId: 424942023 Source-Link: googleapis/googleapis@8ce1934 Source-Link: https://github.com/googleapis/googleapis-gen/commit/40dbea34254aaedbe2f8c483a54e32d075d5fed9 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNDBkYmVhMzQyNTRhYWVkYmUyZjhjNDgzYTU0ZTMyZDA3NWQ1ZmVkOSJ9 * 🦉 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 3b4f0d0 commit bc5b73f

File tree

3 files changed

+19
-24
lines changed

3 files changed

+19
-24
lines changed

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

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -213,15 +213,13 @@ async def list_voices(
213213
language_code (:class:`str`):
214214
Optional. Recommended.
215215
`BCP-47 <https://www.rfc-editor.org/rfc/bcp/bcp47.txt>`__
216-
language tag. If specified, the ListVoices call will
216+
language tag. If not specified, the API will return all
217+
supported voices. If specified, the ListVoices call will
217218
only return voices that can be used to synthesize this
218-
language_code. E.g. when specifying ``"en-NZ"``, you
219-
will get supported ``"en-\*"`` voices; when specifying
220-
``"no"``, you will get supported ``"no-\*"`` (Norwegian)
221-
and ``"nb-\*"`` (Norwegian Bokmal) voices; specifying
222-
``"zh"`` will also get supported ``"cmn-\*"`` voices;
223-
specifying ``"zh-hk"`` will also get supported
224-
``"yue-\*"`` voices.
219+
language_code. For example, if you specify ``"en-NZ"``,
220+
all ``"en-NZ"`` voices will be returned. If you specify
221+
``"no"``, both ``"no-\*"`` (Norwegian) and ``"nb-\*"``
222+
(Norwegian Bokmal) voices will be returned.
225223
226224
This corresponds to the ``language_code`` field
227225
on the ``request`` instance; if ``request`` is provided, this

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

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -398,15 +398,13 @@ def list_voices(
398398
language_code (str):
399399
Optional. Recommended.
400400
`BCP-47 <https://www.rfc-editor.org/rfc/bcp/bcp47.txt>`__
401-
language tag. If specified, the ListVoices call will
401+
language tag. If not specified, the API will return all
402+
supported voices. If specified, the ListVoices call will
402403
only return voices that can be used to synthesize this
403-
language_code. E.g. when specifying ``"en-NZ"``, you
404-
will get supported ``"en-\*"`` voices; when specifying
405-
``"no"``, you will get supported ``"no-\*"`` (Norwegian)
406-
and ``"nb-\*"`` (Norwegian Bokmal) voices; specifying
407-
``"zh"`` will also get supported ``"cmn-\*"`` voices;
408-
specifying ``"zh-hk"`` will also get supported
409-
``"yue-\*"`` voices.
404+
language_code. For example, if you specify ``"en-NZ"``,
405+
all ``"en-NZ"`` voices will be returned. If you specify
406+
``"no"``, both ``"no-\*"`` (Norwegian) and ``"nb-\*"``
407+
(Norwegian Bokmal) voices will be returned.
410408
411409
This corresponds to the ``language_code`` field
412410
on the ``request`` instance; if ``request`` is provided, this

google/cloud/texttospeech_v1/types/cloud_tts.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,13 @@ class ListVoicesRequest(proto.Message):
6363
language_code (str):
6464
Optional. Recommended.
6565
`BCP-47 <https://www.rfc-editor.org/rfc/bcp/bcp47.txt>`__
66-
language tag. If specified, the ListVoices call will only
67-
return voices that can be used to synthesize this
68-
language_code. E.g. when specifying ``"en-NZ"``, you will
69-
get supported ``"en-\*"`` voices; when specifying ``"no"``,
70-
you will get supported ``"no-\*"`` (Norwegian) and
71-
``"nb-\*"`` (Norwegian Bokmal) voices; specifying ``"zh"``
72-
will also get supported ``"cmn-\*"`` voices; specifying
73-
``"zh-hk"`` will also get supported ``"yue-\*"`` voices.
66+
language tag. If not specified, the API will return all
67+
supported voices. If specified, the ListVoices call will
68+
only return voices that can be used to synthesize this
69+
language_code. For example, if you specify ``"en-NZ"``, all
70+
``"en-NZ"`` voices will be returned. If you specify
71+
``"no"``, both ``"no-\*"`` (Norwegian) and ``"nb-\*"``
72+
(Norwegian Bokmal) voices will be returned.
7473
"""
7574

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

0 commit comments

Comments
 (0)