Skip to content

Commit

Permalink
docs: update comments for ListVoicesRequest (#229)
Browse files Browse the repository at this point in the history
* docs: update comments for ListVoicesRequest

PiperOrigin-RevId: 417752787

Source-Link: googleapis/googleapis@3e58417

Source-Link: googleapis/googleapis-gen@e9ad9d6
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTlhZDlkNjM4NjAwNjM4YTAwYjA3MmZmYThkNDE4YTc4OThmMmQ0NiJ9

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Dec 22, 2021
1 parent 92addcd commit edf6082
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 20 deletions.
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
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

0 comments on commit edf6082

Please sign in to comment.