|
1 | 1 | { |
| 2 | + "clientLibrary": { |
| 3 | + "apis": [ |
| 4 | + { |
| 5 | + "id": "google.cloud.texttospeech.v1", |
| 6 | + "version": "v1" |
| 7 | + } |
| 8 | + ], |
| 9 | + "language": "PYTHON", |
| 10 | + "name": "google-cloud-texttospeech" |
| 11 | + }, |
2 | 12 | "snippets": [ |
3 | 13 | { |
| 14 | + "canonical": true, |
4 | 15 | "clientMethod": { |
5 | 16 | "async": true, |
| 17 | + "client": { |
| 18 | + "fullName": "google.cloud.texttospeech_v1.TextToSpeechAsyncClient", |
| 19 | + "shortName": "TextToSpeechAsyncClient" |
| 20 | + }, |
| 21 | + "fullName": "google.cloud.texttospeech_v1.TextToSpeechAsyncClient.list_voices", |
6 | 22 | "method": { |
| 23 | + "fullName": "google.cloud.texttospeech.v1.TextToSpeech.ListVoices", |
7 | 24 | "service": { |
| 25 | + "fullName": "google.cloud.texttospeech.v1.TextToSpeech", |
8 | 26 | "shortName": "TextToSpeech" |
9 | 27 | }, |
10 | 28 | "shortName": "ListVoices" |
11 | | - } |
| 29 | + }, |
| 30 | + "parameters": [ |
| 31 | + { |
| 32 | + "name": "request", |
| 33 | + "type": "google.cloud.texttospeech_v1.types.ListVoicesRequest" |
| 34 | + }, |
| 35 | + { |
| 36 | + "name": "language_code", |
| 37 | + "type": "str" |
| 38 | + }, |
| 39 | + { |
| 40 | + "name": "retry", |
| 41 | + "type": "google.api_core.retry.Retry" |
| 42 | + }, |
| 43 | + { |
| 44 | + "name": "timeout", |
| 45 | + "type": "float" |
| 46 | + }, |
| 47 | + { |
| 48 | + "name": "metadata", |
| 49 | + "type": "Sequence[Tuple[str, str]" |
| 50 | + } |
| 51 | + ], |
| 52 | + "resultType": "google.cloud.texttospeech_v1.types.ListVoicesResponse", |
| 53 | + "shortName": "list_voices" |
12 | 54 | }, |
| 55 | + "description": "Sample for ListVoices", |
13 | 56 | "file": "texttospeech_v1_generated_text_to_speech_list_voices_async.py", |
| 57 | + "language": "PYTHON", |
| 58 | + "origin": "API_DEFINITION", |
14 | 59 | "regionTag": "texttospeech_v1_generated_TextToSpeech_ListVoices_async", |
15 | 60 | "segments": [ |
16 | 61 | { |
|
43 | 88 | "start": 41, |
44 | 89 | "type": "RESPONSE_HANDLING" |
45 | 90 | } |
46 | | - ] |
| 91 | + ], |
| 92 | + "title": "texttospeech_v1_generated_text_to_speech_list_voices_async.py" |
47 | 93 | }, |
48 | 94 | { |
| 95 | + "canonical": true, |
49 | 96 | "clientMethod": { |
| 97 | + "client": { |
| 98 | + "fullName": "google.cloud.texttospeech_v1.TextToSpeechClient", |
| 99 | + "shortName": "TextToSpeechClient" |
| 100 | + }, |
| 101 | + "fullName": "google.cloud.texttospeech_v1.TextToSpeechClient.list_voices", |
50 | 102 | "method": { |
| 103 | + "fullName": "google.cloud.texttospeech.v1.TextToSpeech.ListVoices", |
51 | 104 | "service": { |
| 105 | + "fullName": "google.cloud.texttospeech.v1.TextToSpeech", |
52 | 106 | "shortName": "TextToSpeech" |
53 | 107 | }, |
54 | 108 | "shortName": "ListVoices" |
55 | | - } |
| 109 | + }, |
| 110 | + "parameters": [ |
| 111 | + { |
| 112 | + "name": "request", |
| 113 | + "type": "google.cloud.texttospeech_v1.types.ListVoicesRequest" |
| 114 | + }, |
| 115 | + { |
| 116 | + "name": "language_code", |
| 117 | + "type": "str" |
| 118 | + }, |
| 119 | + { |
| 120 | + "name": "retry", |
| 121 | + "type": "google.api_core.retry.Retry" |
| 122 | + }, |
| 123 | + { |
| 124 | + "name": "timeout", |
| 125 | + "type": "float" |
| 126 | + }, |
| 127 | + { |
| 128 | + "name": "metadata", |
| 129 | + "type": "Sequence[Tuple[str, str]" |
| 130 | + } |
| 131 | + ], |
| 132 | + "resultType": "google.cloud.texttospeech_v1.types.ListVoicesResponse", |
| 133 | + "shortName": "list_voices" |
56 | 134 | }, |
| 135 | + "description": "Sample for ListVoices", |
57 | 136 | "file": "texttospeech_v1_generated_text_to_speech_list_voices_sync.py", |
| 137 | + "language": "PYTHON", |
| 138 | + "origin": "API_DEFINITION", |
58 | 139 | "regionTag": "texttospeech_v1_generated_TextToSpeech_ListVoices_sync", |
59 | 140 | "segments": [ |
60 | 141 | { |
|
87 | 168 | "start": 41, |
88 | 169 | "type": "RESPONSE_HANDLING" |
89 | 170 | } |
90 | | - ] |
| 171 | + ], |
| 172 | + "title": "texttospeech_v1_generated_text_to_speech_list_voices_sync.py" |
91 | 173 | }, |
92 | 174 | { |
| 175 | + "canonical": true, |
93 | 176 | "clientMethod": { |
94 | 177 | "async": true, |
| 178 | + "client": { |
| 179 | + "fullName": "google.cloud.texttospeech_v1.TextToSpeechAsyncClient", |
| 180 | + "shortName": "TextToSpeechAsyncClient" |
| 181 | + }, |
| 182 | + "fullName": "google.cloud.texttospeech_v1.TextToSpeechAsyncClient.synthesize_speech", |
95 | 183 | "method": { |
| 184 | + "fullName": "google.cloud.texttospeech.v1.TextToSpeech.SynthesizeSpeech", |
96 | 185 | "service": { |
| 186 | + "fullName": "google.cloud.texttospeech.v1.TextToSpeech", |
97 | 187 | "shortName": "TextToSpeech" |
98 | 188 | }, |
99 | 189 | "shortName": "SynthesizeSpeech" |
100 | | - } |
| 190 | + }, |
| 191 | + "parameters": [ |
| 192 | + { |
| 193 | + "name": "request", |
| 194 | + "type": "google.cloud.texttospeech_v1.types.SynthesizeSpeechRequest" |
| 195 | + }, |
| 196 | + { |
| 197 | + "name": "input", |
| 198 | + "type": "google.cloud.texttospeech_v1.types.SynthesisInput" |
| 199 | + }, |
| 200 | + { |
| 201 | + "name": "voice", |
| 202 | + "type": "google.cloud.texttospeech_v1.types.VoiceSelectionParams" |
| 203 | + }, |
| 204 | + { |
| 205 | + "name": "audio_config", |
| 206 | + "type": "google.cloud.texttospeech_v1.types.AudioConfig" |
| 207 | + }, |
| 208 | + { |
| 209 | + "name": "retry", |
| 210 | + "type": "google.api_core.retry.Retry" |
| 211 | + }, |
| 212 | + { |
| 213 | + "name": "timeout", |
| 214 | + "type": "float" |
| 215 | + }, |
| 216 | + { |
| 217 | + "name": "metadata", |
| 218 | + "type": "Sequence[Tuple[str, str]" |
| 219 | + } |
| 220 | + ], |
| 221 | + "resultType": "google.cloud.texttospeech_v1.types.SynthesizeSpeechResponse", |
| 222 | + "shortName": "synthesize_speech" |
101 | 223 | }, |
| 224 | + "description": "Sample for SynthesizeSpeech", |
102 | 225 | "file": "texttospeech_v1_generated_text_to_speech_synthesize_speech_async.py", |
| 226 | + "language": "PYTHON", |
| 227 | + "origin": "API_DEFINITION", |
103 | 228 | "regionTag": "texttospeech_v1_generated_TextToSpeech_SynthesizeSpeech_async", |
104 | 229 | "segments": [ |
105 | 230 | { |
|
132 | 257 | "start": 53, |
133 | 258 | "type": "RESPONSE_HANDLING" |
134 | 259 | } |
135 | | - ] |
| 260 | + ], |
| 261 | + "title": "texttospeech_v1_generated_text_to_speech_synthesize_speech_async.py" |
136 | 262 | }, |
137 | 263 | { |
| 264 | + "canonical": true, |
138 | 265 | "clientMethod": { |
| 266 | + "client": { |
| 267 | + "fullName": "google.cloud.texttospeech_v1.TextToSpeechClient", |
| 268 | + "shortName": "TextToSpeechClient" |
| 269 | + }, |
| 270 | + "fullName": "google.cloud.texttospeech_v1.TextToSpeechClient.synthesize_speech", |
139 | 271 | "method": { |
| 272 | + "fullName": "google.cloud.texttospeech.v1.TextToSpeech.SynthesizeSpeech", |
140 | 273 | "service": { |
| 274 | + "fullName": "google.cloud.texttospeech.v1.TextToSpeech", |
141 | 275 | "shortName": "TextToSpeech" |
142 | 276 | }, |
143 | 277 | "shortName": "SynthesizeSpeech" |
144 | | - } |
| 278 | + }, |
| 279 | + "parameters": [ |
| 280 | + { |
| 281 | + "name": "request", |
| 282 | + "type": "google.cloud.texttospeech_v1.types.SynthesizeSpeechRequest" |
| 283 | + }, |
| 284 | + { |
| 285 | + "name": "input", |
| 286 | + "type": "google.cloud.texttospeech_v1.types.SynthesisInput" |
| 287 | + }, |
| 288 | + { |
| 289 | + "name": "voice", |
| 290 | + "type": "google.cloud.texttospeech_v1.types.VoiceSelectionParams" |
| 291 | + }, |
| 292 | + { |
| 293 | + "name": "audio_config", |
| 294 | + "type": "google.cloud.texttospeech_v1.types.AudioConfig" |
| 295 | + }, |
| 296 | + { |
| 297 | + "name": "retry", |
| 298 | + "type": "google.api_core.retry.Retry" |
| 299 | + }, |
| 300 | + { |
| 301 | + "name": "timeout", |
| 302 | + "type": "float" |
| 303 | + }, |
| 304 | + { |
| 305 | + "name": "metadata", |
| 306 | + "type": "Sequence[Tuple[str, str]" |
| 307 | + } |
| 308 | + ], |
| 309 | + "resultType": "google.cloud.texttospeech_v1.types.SynthesizeSpeechResponse", |
| 310 | + "shortName": "synthesize_speech" |
145 | 311 | }, |
| 312 | + "description": "Sample for SynthesizeSpeech", |
146 | 313 | "file": "texttospeech_v1_generated_text_to_speech_synthesize_speech_sync.py", |
| 314 | + "language": "PYTHON", |
| 315 | + "origin": "API_DEFINITION", |
147 | 316 | "regionTag": "texttospeech_v1_generated_TextToSpeech_SynthesizeSpeech_sync", |
148 | 317 | "segments": [ |
149 | 318 | { |
|
176 | 345 | "start": 53, |
177 | 346 | "type": "RESPONSE_HANDLING" |
178 | 347 | } |
179 | | - ] |
| 348 | + ], |
| 349 | + "title": "texttospeech_v1_generated_text_to_speech_synthesize_speech_sync.py" |
180 | 350 | } |
181 | 351 | ] |
182 | 352 | } |
0 commit comments