Skip to content
1 change: 1 addition & 0 deletions texttospeech/cloud-client/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
future==0.18.2
google-cloud-texttospeech==0.5.0
2 changes: 2 additions & 0 deletions texttospeech/cloud-client/synthesize_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down