This repository was archived by the owner on Nov 29, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
google/cloud/texttospeech_v1 Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ,)
You can’t perform that action at this time.
0 commit comments