|
1 | 1 | {
|
| 2 | + "clientLibrary": { |
| 3 | + "apis": [ |
| 4 | + { |
| 5 | + "id": "google.cloud.speech.v1", |
| 6 | + "version": "v1" |
| 7 | + } |
| 8 | + ], |
| 9 | + "language": "PYTHON", |
| 10 | + "name": "google-cloud-speech" |
| 11 | + }, |
2 | 12 | "snippets": [
|
3 | 13 | {
|
| 14 | + "canonical": true, |
4 | 15 | "clientMethod": {
|
5 | 16 | "async": true,
|
| 17 | + "client": { |
| 18 | + "fullName": "google.cloud.speech_v1.SpeechAsyncClient", |
| 19 | + "shortName": "SpeechAsyncClient" |
| 20 | + }, |
| 21 | + "fullName": "google.cloud.speech_v1.SpeechAsyncClient.long_running_recognize", |
6 | 22 | "method": {
|
| 23 | + "fullName": "google.cloud.speech.v1.Speech.LongRunningRecognize", |
7 | 24 | "service": {
|
| 25 | + "fullName": "google.cloud.speech.v1.Speech", |
8 | 26 | "shortName": "Speech"
|
9 | 27 | },
|
10 | 28 | "shortName": "LongRunningRecognize"
|
11 |
| - } |
| 29 | + }, |
| 30 | + "parameters": [ |
| 31 | + { |
| 32 | + "name": "request", |
| 33 | + "type": "google.cloud.speech_v1.types.LongRunningRecognizeRequest" |
| 34 | + }, |
| 35 | + { |
| 36 | + "name": "config", |
| 37 | + "type": "google.cloud.speech_v1.types.RecognitionConfig" |
| 38 | + }, |
| 39 | + { |
| 40 | + "name": "audio", |
| 41 | + "type": "google.cloud.speech_v1.types.RecognitionAudio" |
| 42 | + }, |
| 43 | + { |
| 44 | + "name": "retry", |
| 45 | + "type": "google.api_core.retry.Retry" |
| 46 | + }, |
| 47 | + { |
| 48 | + "name": "timeout", |
| 49 | + "type": "float" |
| 50 | + }, |
| 51 | + { |
| 52 | + "name": "metadata", |
| 53 | + "type": "Sequence[Tuple[str, str]" |
| 54 | + } |
| 55 | + ], |
| 56 | + "resultType": "google.api_core.operation_async.AsyncOperation", |
| 57 | + "shortName": "long_running_recognize" |
12 | 58 | },
|
| 59 | + "description": "Sample for LongRunningRecognize", |
13 | 60 | "file": "speech_v1_generated_speech_long_running_recognize_async.py",
|
| 61 | + "language": "PYTHON", |
| 62 | + "origin": "API_DEFINITION", |
14 | 63 | "regionTag": "speech_v1_generated_Speech_LongRunningRecognize_async",
|
15 | 64 | "segments": [
|
16 | 65 | {
|
|
43 | 92 | "start": 53,
|
44 | 93 | "type": "RESPONSE_HANDLING"
|
45 | 94 | }
|
46 |
| - ] |
| 95 | + ], |
| 96 | + "title": "speech_v1_generated_speech_long_running_recognize_async.py" |
47 | 97 | },
|
48 | 98 | {
|
| 99 | + "canonical": true, |
49 | 100 | "clientMethod": {
|
| 101 | + "client": { |
| 102 | + "fullName": "google.cloud.speech_v1.SpeechClient", |
| 103 | + "shortName": "SpeechClient" |
| 104 | + }, |
| 105 | + "fullName": "google.cloud.speech_v1.SpeechClient.long_running_recognize", |
50 | 106 | "method": {
|
| 107 | + "fullName": "google.cloud.speech.v1.Speech.LongRunningRecognize", |
51 | 108 | "service": {
|
| 109 | + "fullName": "google.cloud.speech.v1.Speech", |
52 | 110 | "shortName": "Speech"
|
53 | 111 | },
|
54 | 112 | "shortName": "LongRunningRecognize"
|
55 |
| - } |
| 113 | + }, |
| 114 | + "parameters": [ |
| 115 | + { |
| 116 | + "name": "request", |
| 117 | + "type": "google.cloud.speech_v1.types.LongRunningRecognizeRequest" |
| 118 | + }, |
| 119 | + { |
| 120 | + "name": "config", |
| 121 | + "type": "google.cloud.speech_v1.types.RecognitionConfig" |
| 122 | + }, |
| 123 | + { |
| 124 | + "name": "audio", |
| 125 | + "type": "google.cloud.speech_v1.types.RecognitionAudio" |
| 126 | + }, |
| 127 | + { |
| 128 | + "name": "retry", |
| 129 | + "type": "google.api_core.retry.Retry" |
| 130 | + }, |
| 131 | + { |
| 132 | + "name": "timeout", |
| 133 | + "type": "float" |
| 134 | + }, |
| 135 | + { |
| 136 | + "name": "metadata", |
| 137 | + "type": "Sequence[Tuple[str, str]" |
| 138 | + } |
| 139 | + ], |
| 140 | + "resultType": "google.api_core.operation.Operation", |
| 141 | + "shortName": "long_running_recognize" |
56 | 142 | },
|
| 143 | + "description": "Sample for LongRunningRecognize", |
57 | 144 | "file": "speech_v1_generated_speech_long_running_recognize_sync.py",
|
| 145 | + "language": "PYTHON", |
| 146 | + "origin": "API_DEFINITION", |
58 | 147 | "regionTag": "speech_v1_generated_Speech_LongRunningRecognize_sync",
|
59 | 148 | "segments": [
|
60 | 149 | {
|
|
87 | 176 | "start": 53,
|
88 | 177 | "type": "RESPONSE_HANDLING"
|
89 | 178 | }
|
90 |
| - ] |
| 179 | + ], |
| 180 | + "title": "speech_v1_generated_speech_long_running_recognize_sync.py" |
91 | 181 | },
|
92 | 182 | {
|
| 183 | + "canonical": true, |
93 | 184 | "clientMethod": {
|
94 | 185 | "async": true,
|
| 186 | + "client": { |
| 187 | + "fullName": "google.cloud.speech_v1.SpeechAsyncClient", |
| 188 | + "shortName": "SpeechAsyncClient" |
| 189 | + }, |
| 190 | + "fullName": "google.cloud.speech_v1.SpeechAsyncClient.recognize", |
95 | 191 | "method": {
|
| 192 | + "fullName": "google.cloud.speech.v1.Speech.Recognize", |
96 | 193 | "service": {
|
| 194 | + "fullName": "google.cloud.speech.v1.Speech", |
97 | 195 | "shortName": "Speech"
|
98 | 196 | },
|
99 | 197 | "shortName": "Recognize"
|
100 |
| - } |
| 198 | + }, |
| 199 | + "parameters": [ |
| 200 | + { |
| 201 | + "name": "request", |
| 202 | + "type": "google.cloud.speech_v1.types.RecognizeRequest" |
| 203 | + }, |
| 204 | + { |
| 205 | + "name": "config", |
| 206 | + "type": "google.cloud.speech_v1.types.RecognitionConfig" |
| 207 | + }, |
| 208 | + { |
| 209 | + "name": "audio", |
| 210 | + "type": "google.cloud.speech_v1.types.RecognitionAudio" |
| 211 | + }, |
| 212 | + { |
| 213 | + "name": "retry", |
| 214 | + "type": "google.api_core.retry.Retry" |
| 215 | + }, |
| 216 | + { |
| 217 | + "name": "timeout", |
| 218 | + "type": "float" |
| 219 | + }, |
| 220 | + { |
| 221 | + "name": "metadata", |
| 222 | + "type": "Sequence[Tuple[str, str]" |
| 223 | + } |
| 224 | + ], |
| 225 | + "resultType": "google.cloud.speech_v1.types.RecognizeResponse", |
| 226 | + "shortName": "recognize" |
101 | 227 | },
|
| 228 | + "description": "Sample for Recognize", |
102 | 229 | "file": "speech_v1_generated_speech_recognize_async.py",
|
| 230 | + "language": "PYTHON", |
| 231 | + "origin": "API_DEFINITION", |
103 | 232 | "regionTag": "speech_v1_generated_Speech_Recognize_async",
|
104 | 233 | "segments": [
|
105 | 234 | {
|
|
132 | 261 | "start": 49,
|
133 | 262 | "type": "RESPONSE_HANDLING"
|
134 | 263 | }
|
135 |
| - ] |
| 264 | + ], |
| 265 | + "title": "speech_v1_generated_speech_recognize_async.py" |
136 | 266 | },
|
137 | 267 | {
|
| 268 | + "canonical": true, |
138 | 269 | "clientMethod": {
|
| 270 | + "client": { |
| 271 | + "fullName": "google.cloud.speech_v1.SpeechClient", |
| 272 | + "shortName": "SpeechClient" |
| 273 | + }, |
| 274 | + "fullName": "google.cloud.speech_v1.SpeechClient.recognize", |
139 | 275 | "method": {
|
| 276 | + "fullName": "google.cloud.speech.v1.Speech.Recognize", |
140 | 277 | "service": {
|
| 278 | + "fullName": "google.cloud.speech.v1.Speech", |
141 | 279 | "shortName": "Speech"
|
142 | 280 | },
|
143 | 281 | "shortName": "Recognize"
|
144 |
| - } |
| 282 | + }, |
| 283 | + "parameters": [ |
| 284 | + { |
| 285 | + "name": "request", |
| 286 | + "type": "google.cloud.speech_v1.types.RecognizeRequest" |
| 287 | + }, |
| 288 | + { |
| 289 | + "name": "config", |
| 290 | + "type": "google.cloud.speech_v1.types.RecognitionConfig" |
| 291 | + }, |
| 292 | + { |
| 293 | + "name": "audio", |
| 294 | + "type": "google.cloud.speech_v1.types.RecognitionAudio" |
| 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.speech_v1.types.RecognizeResponse", |
| 310 | + "shortName": "recognize" |
145 | 311 | },
|
| 312 | + "description": "Sample for Recognize", |
146 | 313 | "file": "speech_v1_generated_speech_recognize_sync.py",
|
| 314 | + "language": "PYTHON", |
| 315 | + "origin": "API_DEFINITION", |
147 | 316 | "regionTag": "speech_v1_generated_Speech_Recognize_sync",
|
148 | 317 | "segments": [
|
149 | 318 | {
|
|
176 | 345 | "start": 49,
|
177 | 346 | "type": "RESPONSE_HANDLING"
|
178 | 347 | }
|
179 |
| - ] |
| 348 | + ], |
| 349 | + "title": "speech_v1_generated_speech_recognize_sync.py" |
180 | 350 | },
|
181 | 351 | {
|
| 352 | + "canonical": true, |
182 | 353 | "clientMethod": {
|
183 | 354 | "async": true,
|
| 355 | + "client": { |
| 356 | + "fullName": "google.cloud.speech_v1.SpeechAsyncClient", |
| 357 | + "shortName": "SpeechAsyncClient" |
| 358 | + }, |
| 359 | + "fullName": "google.cloud.speech_v1.SpeechAsyncClient.streaming_recognize", |
184 | 360 | "method": {
|
| 361 | + "fullName": "google.cloud.speech.v1.Speech.StreamingRecognize", |
185 | 362 | "service": {
|
| 363 | + "fullName": "google.cloud.speech.v1.Speech", |
186 | 364 | "shortName": "Speech"
|
187 | 365 | },
|
188 | 366 | "shortName": "StreamingRecognize"
|
189 |
| - } |
| 367 | + }, |
| 368 | + "parameters": [ |
| 369 | + { |
| 370 | + "name": "requests", |
| 371 | + "type": "Iterator[google.cloud.speech_v1.types.StreamingRecognizeRequest]" |
| 372 | + }, |
| 373 | + { |
| 374 | + "name": "retry", |
| 375 | + "type": "google.api_core.retry.Retry" |
| 376 | + }, |
| 377 | + { |
| 378 | + "name": "timeout", |
| 379 | + "type": "float" |
| 380 | + }, |
| 381 | + { |
| 382 | + "name": "metadata", |
| 383 | + "type": "Sequence[Tuple[str, str]" |
| 384 | + } |
| 385 | + ], |
| 386 | + "resultType": "Iterable[google.cloud.speech_v1.types.StreamingRecognizeResponse]", |
| 387 | + "shortName": "streaming_recognize" |
190 | 388 | },
|
| 389 | + "description": "Sample for StreamingRecognize", |
191 | 390 | "file": "speech_v1_generated_speech_streaming_recognize_async.py",
|
| 391 | + "language": "PYTHON", |
| 392 | + "origin": "API_DEFINITION", |
192 | 393 | "regionTag": "speech_v1_generated_Speech_StreamingRecognize_async",
|
193 | 394 | "segments": [
|
194 | 395 | {
|
|
221 | 422 | "start": 55,
|
222 | 423 | "type": "RESPONSE_HANDLING"
|
223 | 424 | }
|
224 |
| - ] |
| 425 | + ], |
| 426 | + "title": "speech_v1_generated_speech_streaming_recognize_async.py" |
225 | 427 | },
|
226 | 428 | {
|
| 429 | + "canonical": true, |
227 | 430 | "clientMethod": {
|
| 431 | + "client": { |
| 432 | + "fullName": "google.cloud.speech_v1.SpeechClient", |
| 433 | + "shortName": "SpeechClient" |
| 434 | + }, |
| 435 | + "fullName": "google.cloud.speech_v1.SpeechClient.streaming_recognize", |
228 | 436 | "method": {
|
| 437 | + "fullName": "google.cloud.speech.v1.Speech.StreamingRecognize", |
229 | 438 | "service": {
|
| 439 | + "fullName": "google.cloud.speech.v1.Speech", |
230 | 440 | "shortName": "Speech"
|
231 | 441 | },
|
232 | 442 | "shortName": "StreamingRecognize"
|
233 |
| - } |
| 443 | + }, |
| 444 | + "parameters": [ |
| 445 | + { |
| 446 | + "name": "requests", |
| 447 | + "type": "Iterator[google.cloud.speech_v1.types.StreamingRecognizeRequest]" |
| 448 | + }, |
| 449 | + { |
| 450 | + "name": "retry", |
| 451 | + "type": "google.api_core.retry.Retry" |
| 452 | + }, |
| 453 | + { |
| 454 | + "name": "timeout", |
| 455 | + "type": "float" |
| 456 | + }, |
| 457 | + { |
| 458 | + "name": "metadata", |
| 459 | + "type": "Sequence[Tuple[str, str]" |
| 460 | + } |
| 461 | + ], |
| 462 | + "resultType": "Iterable[google.cloud.speech_v1.types.StreamingRecognizeResponse]", |
| 463 | + "shortName": "streaming_recognize" |
234 | 464 | },
|
| 465 | + "description": "Sample for StreamingRecognize", |
235 | 466 | "file": "speech_v1_generated_speech_streaming_recognize_sync.py",
|
| 467 | + "language": "PYTHON", |
| 468 | + "origin": "API_DEFINITION", |
236 | 469 | "regionTag": "speech_v1_generated_Speech_StreamingRecognize_sync",
|
237 | 470 | "segments": [
|
238 | 471 | {
|
|
265 | 498 | "start": 55,
|
266 | 499 | "type": "RESPONSE_HANDLING"
|
267 | 500 | }
|
268 |
| - ] |
| 501 | + ], |
| 502 | + "title": "speech_v1_generated_speech_streaming_recognize_sync.py" |
269 | 503 | }
|
270 | 504 | ]
|
271 | 505 | }
|
0 commit comments