This repository was archived by the owner on Nov 29, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +19
-24
lines changed
google/cloud/texttospeech_v1 Expand file tree Collapse file tree 3 files changed +19
-24
lines changed Original file line number Diff line number Diff line change @@ -213,15 +213,13 @@ async def list_voices(
213
213
language_code (:class:`str`):
214
214
Optional. Recommended.
215
215
`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
217
218
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.
225
223
226
224
This corresponds to the ``language_code`` field
227
225
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(
398
398
language_code (str):
399
399
Optional. Recommended.
400
400
`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
402
403
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.
410
408
411
409
This corresponds to the ``language_code`` field
412
410
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):
63
63
language_code (str):
64
64
Optional. Recommended.
65
65
`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.
74
73
"""
75
74
76
75
language_code = proto .Field (proto .STRING , number = 1 ,)
You can’t perform that action at this time.
0 commit comments