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

docs: update comments for ListVoicesRequest #229

Merged
merged 2 commits into from
Dec 22, 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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -182,13 +182,10 @@ async def list_voices(
language tag. If not specified, the API will return all
supported voices. 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-NZ"`` 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-hk"`` voices.
language_code. For example, if you specify ``"en-NZ"``,
all ``"en-NZ"`` voices will be returned. If you specify
``"no"``, both ``"no-\*"`` (Norwegian) and ``"nb-\*"``
(Norwegian Bokmal) voices will be returned.
This corresponds to the ``language_code`` field
on the ``request`` instance; if ``request`` is provided, this
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -376,13 +376,10 @@ def list_voices(
language tag. If not specified, the API will return all
supported voices. 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-NZ"`` 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-hk"`` voices.
language_code. For example, if you specify ``"en-NZ"``,
all ``"en-NZ"`` voices will be returned. If you specify
``"no"``, both ``"no-\*"`` (Norwegian) and ``"nb-\*"``
(Norwegian Bokmal) voices will be returned.
This corresponds to the ``language_code`` field
on the ``request`` instance; if ``request`` is provided, this
Expand Down
10 changes: 4 additions & 6 deletions google/cloud/texttospeech_v1beta1/types/cloud_tts.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,10 @@ class ListVoicesRequest(proto.Message):
language tag. If not specified, the API will return all
supported voices. 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-NZ"`` 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-hk"`` voices.
language_code. For example, if you specify ``"en-NZ"``, all
``"en-NZ"`` voices will be returned. If you specify
``"no"``, both ``"no-\*"`` (Norwegian) and ``"nb-\*"``
(Norwegian Bokmal) voices will be returned.
"""

language_code = proto.Field(proto.STRING, number=1,)
Expand Down