8000
We read every piece of feedback, and take your input very seriously.
1 parent fe33cd0 commit 506cc5aCopy full SHA for 506cc5a
samples/snippets/audio_profile.py
@@ -24,10 +24,11 @@
24
import argparse
25
26
27
+# [START tts_synthesize_text_audio_profile]
28
# [START tts_synthesize_text_audio_profile_beta]
29
def synthesize_text_with_audio_profile(text, output, effects_profile_id):
30
"""Synthesizes speech from the input string of text."""
- from google.cloud import texttospeech_v1beta1 as texttospeech
31
+ from google.cloud import texttospeech
32
33
client = texttospeech.TextToSpeechClient()
34
@@ -51,6 +52,7 @@ def synthesize_text_with_audio_profile(text, output, effects_profile_id):
51
52
print('Audio content written to file "%s"' % output)
53
54
# [END tts_synthesize_text_audio_profile_beta]
55
+# [END tts_synthesize_text_audio_profile]
56
57
58
if __name__ == '__main__':
samples/snippets/requirements.txt
@@ -1 +1 @@
1
-google-cloud-texttospeech==0.3.0
+google-cloud-texttospeech==0.4.0