Skip to content
This repository was archived by the owner on Nov 29, 2023. It is now read-only.

Commit 18d0e10

Browse files
nnegreybusunkim96
authored andcommitted
Update beta samples to GA [(#2008)](GoogleCloudPlatform/python-docs-samples#2008)
1 parent 2536a22 commit 18d0e10

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

samples/audio_profile.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,11 @@
2424
import argparse
2525

2626

27+
# [START tts_synthesize_text_audio_profile]
2728
# [START tts_synthesize_text_audio_profile_beta]
2829
def synthesize_text_with_audio_profile(text, output, effects_profile_id):
2930
"""Synthesizes speech from the input string of text."""
30-
from google.cloud import texttospeech_v1beta1 as texttospeech
31+
from google.cloud import texttospeech
3132

3233
client = texttospeech.TextToSpeechClient()
3334

@@ -51,6 +52,7 @@ def synthesize_text_with_audio_profile(text, output, effects_profile_id):
5152
print('Audio content written to file "%s"' % output)
5253

5354
# [END tts_synthesize_text_audio_profile_beta]
55+
# [END tts_synthesize_text_audio_profile]
5456

5557

5658
if __name__ == '__main__':

samples/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
google-cloud-texttospeech==0.3.0
1+
google-cloud-texttospeech==0.4.0

0 commit comments

Comments
 (0)