This repository was archived by the owner on Nov 29, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +20
-25
lines changed
google/cloud/texttospeech_v1 Expand file tree Collapse file tree 4 files changed +20
-25
lines changed Original file line number Diff line number Diff line change @@ -179,12 +179,13 @@ async def list_voices(
179
179
`BCP-47 <https://www.rfc-editor.org/rfc/bcp/bcp47.txt>`__
180
180
language tag. If specified, the ListVoices call will
181
181
only return voices that can be used to synthesize this
182
- language_code. E.g. when specifying "en-NZ", you will
183
- get supported "en-\*" voices; when specifying "no", you
184
- will get supported "no-\*" (Norwegian) and "nb-\*"
185
- (Norwegian Bokmal) voices; specifying "zh" will also get
186
- supported "cmn-\*" voices; specifying "zh-hk" will also
187
- get supported "yue-\*" voices.
182
+ language_code. E.g. when specifying ``"en-NZ"``, you
183
+ will get supported ``"en-\*"`` voices; when specifying
184
+ ``"no"``, you will get supported ``"no-\*"`` (Norwegian)
185
+ and ``"nb-\*"`` (Norwegian Bokmal) voices; specifying
186
+ ``"zh"`` will also get supported ``"cmn-\*"`` voices;
187
+ specifying ``"zh-hk"`` will also get supported
188
+ ``"yue-\*"`` voices.
188
189
189
190
This corresponds to the ``language_code`` field
190
191
on the ``request`` instance; if ``request`` is provided, this
Original file line number Diff line number Diff line change @@ -359,12 +359,13 @@ def list_voices(
359
359
`BCP-47 <https://www.rfc-editor.org/rfc/bcp/bcp47.txt>`__
360
360
language tag. If specified, the ListVoices call will
361
361
only return voices that can be used to synthesize this
362
- language_code. E.g. when specifying "en-NZ", you will
363
- get supported "en-\*" voices; when specifying "no", you
364
- will get supported "no-\*" (Norwegian) and "nb-\*"
365
- (Norwegian Bokmal) voices; specifying "zh" will also get
366
- supported "cmn-\*" voices; specifying "zh-hk" will also
367
- get supported "yue-\*" voices.
362
+ language_code. E.g. when specifying ``"en-NZ"``, you
363
+ will get supported ``"en-\*"`` voices; when specifying
364
+ ``"no"``, you will get supported ``"no-\*"`` (Norwegian)
365
+ and ``"nb-\*"`` (Norwegian Bokmal) voices; specifying
366
+ ``"zh"`` will also get supported ``"cmn-\*"`` voices;
367
+ specifying ``"zh-hk"`` will also get supported
368
+ ``"yue-\*"`` voices.
368
369
369
370
This corresponds to the ``language_code`` field
370
371
on the ``request`` instance; if ``request`` is provided, this
Original file line number Diff line number Diff line change @@ -63,12 +63,12 @@ class ListVoicesRequest(proto.Message):
63
63
`BCP-47 <https://www.rfc-editor.org/rfc/bcp/bcp47.txt>`__
64
64
language tag. If specified, the ListVoices call will only
65
65
return voices that can be used to synthesize this
66
- language_code. E.g. when specifying "en-NZ", you will get
67
- supported "en-\*" voices; when specifying "no", you will get
68
- supported "no-\*" (Norwegian) and "nb-\*" (Norwegian Bokmal)
69
- voices; specifying "zh" will also get supported "cmn-\*"
70
- voices; specifying "zh-hk" will also get supported "yue -\*"
71
- voices.
66
+ language_code. E.g. when specifying `` "en-NZ"`` , you will
67
+ get supported `` "en-\*"`` voices; when specifying `` "no"``,
68
+ you will get supported `` "no-\*"`` (Norwegian) and
69
+ ``"nb-\*"`` (Norwegian Bokmal) voices; specifying ``"zh"``
70
+ will also get supported ``"cmn -\*"`` voices; specifying
71
+ ``"zh-hk"`` will also get supported ``"yue-\*"`` voices.
72
72
"""
73
73
74
74
language_code = proto .Field (proto .STRING , number = 1 ,)
Original file line number Diff line number Diff line change 24
24
default_version = "v1"
25
25
26
26
for library in s .get_staging_dirs (default_version ):
27
- # Sphinx interprets `*` as emphasis
28
- s .replace (
29
- [library / "google/cloud/**/*client.py" , library / "google/cloud/**/cloud_tts.py" ],
30
- "((en)|(no)|(nb)|(cmn)|(yue))-\*" ,
31
- "\g<1>-\*" ,
32
- )
33
-
34
27
s .move (library , excludes = ["setup.py" , "docs/index.rst" , "README.rst" ])
35
28
36
29
s .remove_staging_dirs ()
You can’t perform that action at this time.
0 commit comments