Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b20c339

Browse filesBrowse files
authored
Update beta samples to GA (GoogleCloudPlatform#2008)
1 parent 717edb3 commit b20c339
Copy full SHA for b20c339

File tree

Expand file treeCollapse file tree

2 files changed

+4
-2
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+4
-2
lines changed

‎texttospeech/cloud-client/audio_profile.py

Copy file name to clipboardExpand all lines: texttospeech/cloud-client/audio_profile.py
+3-1Lines 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__':
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.