From aca3bd51a4325d00196c4b54284a0b05beb31a79 Mon Sep 17 00:00:00 2001 From: Alix Hamilton Date: Tue, 21 Aug 2018 13:41:01 -0400 Subject: [PATCH 1/2] updates tts region tags to standard --- texttospeech/cloud-client/audio_profile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/texttospeech/cloud-client/audio_profile.py b/texttospeech/cloud-client/audio_profile.py index 21a6515b4c51..8555a2e40414 100644 --- a/texttospeech/cloud-client/audio_profile.py +++ b/texttospeech/cloud-client/audio_profile.py @@ -24,7 +24,7 @@ import argparse -# [START tts_synthesize_text_with_audio_profile] +# [START tts_synthesize_text_audio_profile] 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 @@ -50,7 +50,7 @@ def synthesize_text_with_audio_profile(text, output, effects_profile_id): out.write(response.audio_content) print('Audio content written to file "%s"' % output) -# [END tts_synthesize_text_with_audio_profile] +# [END tts_synthesize_text_audio_profile] if __name__ == '__main__': From 091ae3f5f56fb995d49be2f7e484370b1a25be42 Mon Sep 17 00:00:00 2001 From: Alix Hamilton Date: Tue, 21 Aug 2018 13:44:11 -0400 Subject: [PATCH 2/2] uses beta tags for audio profile snippets --- texttospeech/cloud-client/audio_profile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/texttospeech/cloud-client/audio_profile.py b/texttospeech/cloud-client/audio_profile.py index 8555a2e40414..4ddd9db5204a 100644 --- a/texttospeech/cloud-client/audio_profile.py +++ b/texttospeech/cloud-client/audio_profile.py @@ -24,7 +24,7 @@ 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 @@ -50,7 +50,7 @@ def synthesize_text_with_audio_profile(text, output, effects_profile_id): out.write(response.audio_content) print('Audio content written to file "%s"' % output) -# [END tts_synthesize_text_audio_profile] +# [END tts_synthesize_text_audio_profile_beta] if __name__ == '__main__':