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

Commit

Permalink
feat:Add ALAW support on client library and improve the ListVoiceRequ…
Browse files Browse the repository at this point in the history
…est message's documentation (#113)

PiperOrigin-RevId: 365608171

Source-Author: Google APIs <noreply@google.com>
Source-Date: Mon Mar 29 10:35:36 2021 -0700
Source-Repo: googleapis/googleapis
Source-Sha: 45445f476c39de13be89a3c5a45b67c7a2320fcf
Source-Link: googleapis/googleapis@45445f4
  • Loading branch information
yoshi-automation committed Mar 30, 2021
1 parent 3d6431c commit 8bbd380
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 15 deletions.
Expand Up @@ -179,14 +179,15 @@ async def list_voices(
language_code (:class:`str`):
Optional. Recommended.
`BCP-47 <https://www.rfc-editor.org/rfc/bcp/bcp47.txt>`__
language tag. If specified, the ListVoices call will
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-\*" voices; when specifying "no", you
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-\*" voices.
get supported "yue-hk" voices.
This corresponds to the ``language_code`` field
on the ``request`` instance; if ``request`` is provided, this
Expand Down
Expand Up @@ -342,14 +342,15 @@ def list_voices(
language_code (str):
Optional. Recommended.
`BCP-47 <https://www.rfc-editor.org/rfc/bcp/bcp47.txt>`__
language tag. If specified, the ListVoices call will
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-\*" voices; when specifying "no", you
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-\*" voices.
get supported "yue-hk" voices.
This corresponds to the ``language_code`` field
on the ``request`` instance; if ``request`` is provided, this
Expand Down
14 changes: 8 additions & 6 deletions google/cloud/texttospeech_v1beta1/types/cloud_tts.py
Expand Up @@ -56,6 +56,7 @@ class AudioEncoding(proto.Enum):
MP3_64_KBPS = 4
OGG_OPUS = 3
MULAW = 5
ALAW = 6


class ListVoicesRequest(proto.Message):
Expand All @@ -66,13 +67,14 @@ class ListVoicesRequest(proto.Message):
language_code (str):
Optional. Recommended.
`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 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-\*" voices; when specifying "no", 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-\*"
voices; specifying "zh-hk" will also get supported "yue-hk"
voices.
"""

Expand Down Expand Up @@ -132,8 +134,8 @@ class SynthesizeSpeechRequest(proto.Message):
Required. The configuration of the
synthesized audio.
enable_time_pointing (Sequence[google.cloud.texttospeech_v1beta1.types.SynthesizeSpeechRequest.TimepointType]):
Whether and what timepoints should be
returned in the response.
Whether and what timepoints are returned in
the response.
"""

class TimepointType(proto.Enum):
Expand Down
6 changes: 3 additions & 3 deletions synth.metadata
Expand Up @@ -4,15 +4,15 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/python-texttospeech.git",
"sha": "dc07688434edf0774a8b19d2c6250eddc942b60a"
"sha": "3d6431c1b978262ecd353746d45c62cfcab0c431"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "149a3a84c29c9b8189576c7442ccb6dcf6a8f95b",
"internalRef": "364411656"
"sha": "45445f476c39de13be89a3c5a45b67c7a2320fcf",
"internalRef": "365608171"
}
},
{
Expand Down

0 comments on commit 8bbd380

Please sign in to comment.