diff --git a/google/cloud/texttospeech_v1/services/text_to_speech/client.py b/google/cloud/texttospeech_v1/services/text_to_speech/client.py index dadad936..b87cc114 100644 --- a/google/cloud/texttospeech_v1/services/text_to_speech/client.py +++ b/google/cloud/texttospeech_v1/services/text_to_speech/client.py @@ -228,11 +228,11 @@ def list_voices( 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-*" + 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. + get supported "yue-\*" voices. This corresponds to the ``language_code`` field on the ``request`` instance; if ``request`` is provided, this should not be set. diff --git a/google/cloud/texttospeech_v1beta1/services/text_to_speech/client.py b/google/cloud/texttospeech_v1beta1/services/text_to_speech/client.py index 776bcac6..f885936b 100644 --- a/google/cloud/texttospeech_v1beta1/services/text_to_speech/client.py +++ b/google/cloud/texttospeech_v1beta1/services/text_to_speech/client.py @@ -228,11 +228,11 @@ def list_voices( 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-*" + 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. + get supported "yue-\*" voices. This corresponds to the ``language_code`` field on the ``request`` instance; if ``request`` is provided, this should not be set. diff --git a/synth.py b/synth.py index a6f6ba14..de6f4c92 100644 --- a/synth.py +++ b/synth.py @@ -32,7 +32,7 @@ # Sphinx interprets `*` as emphasis s.replace( - ["google/cloud/**/*_client.py", "google/cloud/**/cloud_tts.py"], + ["google/cloud/**/client.py", "google/cloud/**/cloud_tts.py"], "((en)|(no)|(nb)(cmn)|(yue))-\*", "\g<1>-\*", )