1
+
1
2
.. This file is automatically generated. Do not edit this file directly.
2
3
3
4
Google Cloud Text-to-Speech API Python Samples
@@ -14,10 +15,12 @@ This directory contains samples for Google Cloud Text-to-Speech API. The `Google
14
15
15
16
.. _Google Cloud Text-to-Speech API : https://cloud.google.com/text-to-speech/docs/
16
17
18
+
17
19
Setup
18
20
-------------------------------------------------------------------------------
19
21
20
22
23
+
21
24
Authentication
22
25
++++++++++++++
23
26
@@ -28,6 +31,9 @@ credentials for applications.
28
31
.. _Authentication Getting Started Guide :
29
32
https://cloud.google.com/docs/authentication/getting-started
30
33
34
+
35
+
36
+
31
37
Install Dependencies
32
38
++++++++++++++++++++
33
39
@@ -42,7 +48,7 @@ Install Dependencies
42
48
.. _Python Development Environment Setup Guide :
43
49
https://cloud.google.com/python/setup
44
50
45
- #. Create a virtualenv. Samples are compatible with Python 2.7 and 3.4 +.
51
+ #. Create a virtualenv. Samples are compatible with Python 3.6 +.
46
52
47
53
.. code-block :: bash
48
54
@@ -58,9 +64,15 @@ Install Dependencies
58
64
.. _pip : https://pip.pypa.io/
59
65
.. _virtualenv : https://virtualenv.pypa.io/
60
66
67
+
68
+
69
+
70
+
71
+
61
72
Samples
62
73
-------------------------------------------------------------------------------
63
74
75
+
64
76
Quickstart
65
77
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
66
78
@@ -77,6 +89,8 @@ To run this sample:
77
89
$ python quickstart.py
78
90
79
91
92
+
93
+
80
94
List voices
81
95
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
82
96
@@ -93,6 +107,8 @@ To run this sample:
93
107
$ python list_voices.py
94
108
95
109
110
+
111
+
96
112
Synthesize text
97
113
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
98
114
@@ -108,6 +124,7 @@ To run this sample:
108
124
109
125
$ python synthesize_text.py
110
126
127
+
111
128
usage: synthesize_text.py [-h] (--text TEXT | --ssml SSML)
112
129
113
130
Google Cloud Text-To-Speech API sample application .
@@ -123,6 +140,8 @@ To run this sample:
123
140
124
141
125
142
143
+
144
+
126
145
Synthesize file
127
146
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
128
147
@@ -138,6 +157,7 @@ To run this sample:
138
157
139
158
$ python synthesize_file.py
140
159
160
+
141
161
usage: synthesize_file.py [-h] (--text TEXT | --ssml SSML)
142
162
143
163
Google Cloud Text-To-Speech API sample application .
@@ -153,6 +173,8 @@ To run this sample:
153
173
154
174
155
175
176
+
177
+
156
178
Audio profile
157
179
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
158
180
@@ -168,14 +190,15 @@ To run this sample:
168
190
169
191
$ python audio_profile.py
170
192
193
+
171
194
usage: audio_profile.py [-h] [--output OUTPUT] [--text TEXT]
172
195
[--effects_profile_id EFFECTS_PROFILE_ID]
173
196
174
197
Google Cloud Text-To-Speech API sample application for audio profile.
175
198
176
199
Example usage:
177
200
python audio_profile.py --text " hello" --effects_profile_id
178
- " telephony-class-application"
201
+ " telephony-class-application" --output " output.mp3 "
179
202
180
203
optional arguments:
181
204
-h, --help show this help message and exit
@@ -188,6 +211,10 @@ To run this sample:
188
211
189
212
190
213
214
+
215
+
216
+
217
+
191
218
The client library
192
219
-------------------------------------------------------------------------------
193
220
@@ -203,4 +230,5 @@ to `browse the source`_ and `report issues`_.
203
230
https://github.com/GoogleCloudPlatform/google-cloud-python/issues
204
231
205
232
206
- .. _Google Cloud SDK : https://cloud.google.com/sdk/
233
+
234
+ .. _Google Cloud SDK : https://cloud.google.com/sdk/
0 commit comments