From 4cf0d66ffc45efc2f0f8cd7afbdeee00db90a804 Mon Sep 17 00:00:00 2001 From: Noah Negrey Date: Fri, 22 Feb 2019 08:04:11 -0800 Subject: [PATCH] Update beta samples to GA [(#2008)](https://github.com/GoogleCloudPlatform/python-docs-samples/issues/2008) --- packages/google-cloud-texttospeech/samples/audio_profile.py | 4 +++- packages/google-cloud-texttospeech/samples/requirements.txt | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/google-cloud-texttospeech/samples/audio_profile.py b/packages/google-cloud-texttospeech/samples/audio_profile.py index 4ddd9db5204a..01f2ba884ba3 100644 --- a/packages/google-cloud-texttospeech/samples/audio_profile.py +++ b/packages/google-cloud-texttospeech/samples/audio_profile.py @@ -24,10 +24,11 @@ import argparse +# [START tts_synthesize_text_audio_profile] # [START tts_synthesize_text_audio_profile_beta] def synthesize_text_with_audio_profile(text, output, effects_profile_id): """Synthesizes speech from the input string of text.""" - from google.cloud import texttospeech_v1beta1 as texttospeech + from google.cloud import texttospeech client = texttospeech.TextToSpeechClient() @@ -51,6 +52,7 @@ def synthesize_text_with_audio_profile(text, output, effects_profile_id): print('Audio content written to file "%s"' % output) # [END tts_synthesize_text_audio_profile_beta] +# [END tts_synthesize_text_audio_profile] if __name__ == '__main__': diff --git a/packages/google-cloud-texttospeech/samples/requirements.txt b/packages/google-cloud-texttospeech/samples/requirements.txt index cb9f67240443..0db01b710b9b 100644 --- a/packages/google-cloud-texttospeech/samples/requirements.txt +++ b/packages/google-cloud-texttospeech/samples/requirements.txt @@ -1 +1 @@ -google-cloud-texttospeech==0.3.0 +google-cloud-texttospeech==0.4.0