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

docs: fix docstring formatting #218

Merged
merged 3 commits into from
Nov 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -179,12 +179,13 @@ async def list_voices(
`BCP-47 <https://www.rfc-editor.org/rfc/bcp/bcp47.txt>`__
language tag. If specified, the ListVoices call will
only return voices that can be used to synthesize this
language_code. E.g. when specifying "en-NZ", you will
get supported "en-\*" voices; when specifying "no", you
will get supported "no-\*" (Norwegian) and "nb-\*"
(Norwegian Bokmal) voices; specifying "zh" will also get
supported "cmn-\*" voices; specifying "zh-hk" will also
get supported "yue-\*" voices.
language_code. E.g. when specifying ``"en-NZ"``, you
will get supported ``"en-\*"`` voices; when specifying
``"no"``, you will get supported ``"no-\*"`` (Norwegian)
and ``"nb-\*"`` (Norwegian Bokmal) voices; specifying
``"zh"`` will also get supported ``"cmn-\*"`` voices;
specifying ``"zh-hk"`` will also get supported
``"yue-\*"`` voices.

This corresponds to the ``language_code`` field
on the ``request`` instance; if ``request`` is provided, this
Expand Down
13 changes: 7 additions & 6 deletions google/cloud/texttospeech_v1/services/text_to_speech/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,12 +359,13 @@ def list_voices(
`BCP-47 <https://www.rfc-editor.org/rfc/bcp/bcp47.txt>`__
language tag. If specified, the ListVoices call will
only return voices that can be used to synthesize this
language_code. E.g. when specifying "en-NZ", you will
get supported "en-\*" voices; when specifying "no", you
will get supported "no-\*" (Norwegian) and "nb-\*"
(Norwegian Bokmal) voices; specifying "zh" will also get
supported "cmn-\*" voices; specifying "zh-hk" will also
get supported "yue-\*" voices.
language_code. E.g. when specifying ``"en-NZ"``, you
will get supported ``"en-\*"`` voices; when specifying
``"no"``, you will get supported ``"no-\*"`` (Norwegian)
and ``"nb-\*"`` (Norwegian Bokmal) voices; specifying
``"zh"`` will also get supported ``"cmn-\*"`` voices;
specifying ``"zh-hk"`` will also get supported
``"yue-\*"`` voices.

This corresponds to the ``language_code`` field
on the ``request`` instance; if ``request`` is provided, this
Expand Down
12 changes: 6 additions & 6 deletions google/cloud/texttospeech_v1/types/cloud_tts.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ class ListVoicesRequest(proto.Message):
`BCP-47 <https://www.rfc-editor.org/rfc/bcp/bcp47.txt>`__
language tag. If specified, the ListVoices call will only
return voices that can be used to synthesize this
language_code. E.g. when specifying "en-NZ", you will get
supported "en-\*" voices; when specifying "no", you will get
supported "no-\*" (Norwegian) and "nb-\*" (Norwegian Bokmal)
voices; specifying "zh" will also get supported "cmn-\*"
voices; specifying "zh-hk" will also get supported "yue-\*"
voices.
language_code. E.g. when specifying ``"en-NZ"``, you will
get supported ``"en-\*"`` voices; when specifying ``"no"``,
you will get supported ``"no-\*"`` (Norwegian) and
``"nb-\*"`` (Norwegian Bokmal) voices; specifying ``"zh"``
will also get supported ``"cmn-\*"`` voices; specifying
``"zh-hk"`` will also get supported ``"yue-\*"`` voices.
"""

language_code = proto.Field(proto.STRING, number=1,)
Expand Down
7 changes: 0 additions & 7 deletions owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,6 @@
default_version = "v1"

for library in s.get_staging_dirs(default_version):
# Sphinx interprets `*` as emphasis
s.replace(
[library / "google/cloud/**/*client.py", library / "google/cloud/**/cloud_tts.py"],
"((en)|(no)|(nb)|(cmn)|(yue))-\*",
"\g<1>-\*",
)

s.move(library, excludes=["setup.py", "docs/index.rst", "README.rst"])

s.remove_staging_dirs()
Expand Down