From 0b5ba6963d02b6eee22c1a16f432dc414011b97b Mon Sep 17 00:00:00 2001 From: Michelle Casbon Date: Mon, 6 Jan 2020 16:36:32 -0800 Subject: [PATCH 1/2] Add voice selection by name --- texttospeech/cloud-client/synthesize_text.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/texttospeech/cloud-client/synthesize_text.py b/texttospeech/cloud-client/synthesize_text.py index d5886bd16f1..768c0da0317 100644 --- a/texttospeech/cloud-client/synthesize_text.py +++ b/texttospeech/cloud-client/synthesize_text.py @@ -36,6 +36,7 @@ def synthesize_text(text): # Names of voices can be retrieved with client.list_voices(). voice = texttospeech.types.VoiceSelectionParams( language_code='en-US', + name='en-US-Standard-C', ssml_gender=texttospeech.enums.SsmlVoiceGender.FEMALE) audio_config = texttospeech.types.AudioConfig( @@ -68,6 +69,7 @@ def synthesize_ssml(ssml): # Names of voices can be retrieved with client.list_voices(). voice = texttospeech.types.VoiceSelectionParams( language_code='en-US', + name='en-US-Standard-C', ssml_gender=texttospeech.enums.SsmlVoiceGender.FEMALE) audio_config = texttospeech.types.AudioConfig( From 968a0fb3e37a7b0224a74cc09e05e22fb6341df1 Mon Sep 17 00:00:00 2001 From: Michelle Casbon Date: Wed, 8 Jan 2020 00:13:12 +0000 Subject: [PATCH 2/2] Add future to requirements.txt Fixes python2 test failures referencing html. --- texttospeech/cloud-client/requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/texttospeech/cloud-client/requirements.txt b/texttospeech/cloud-client/requirements.txt index 0cd0886a375..ccf0a4d5e1b 100644 --- a/texttospeech/cloud-client/requirements.txt +++ b/texttospeech/cloud-client/requirements.txt @@ -1 +1,2 @@ +future==0.18.2 google-cloud-texttospeech==0.5.0