| 1 |
{ |
| 2 |
"clientLibrary": { |
| 3 |
"name": "cloud.google.com/go/mediatranslation/apiv1beta1", |
| 4 |
"version": "0.9.6", |
| 5 |
"language": "GO", |
| 6 |
"apis": [ |
| 7 |
{ |
| 8 |
"id": "google.cloud.mediatranslation.v1beta1", |
| 9 |
"version": "v1beta1" |
| 10 |
} |
| 11 |
] |
| 12 |
}, |
| 13 |
"snippets": [ |
| 14 |
{ |
| 15 |
"regionTag": "mediatranslation_v1beta1_generated_SpeechTranslationService_StreamingTranslateSpeech_sync", |
| 16 |
"title": "mediatranslation StreamingTranslateSpeech Sample", |
| 17 |
"description": "StreamingTranslateSpeech performs bidirectional streaming speech translation: receive results while\nsending audio. This method is only available via the gRPC API (not REST).", |
| 18 |
"file": "SpeechTranslationClient/StreamingTranslateSpeech/main.go", |
| 19 |
"language": "GO", |
| 20 |
"clientMethod": { |
| 21 |
"shortName": "StreamingTranslateSpeech", |
| 22 |
"fullName": "google.cloud.mediatranslation.v1beta1.SpeechTranslationClient.StreamingTranslateSpeech", |
| 23 |
"parameters": [ |
| 24 |
{ |
| 25 |
"type": "context.Context", |
| 26 |
"name": "ctx" |
| 27 |
}, |
| 28 |
{ |
| 29 |
"type": "...gax.CallOption", |
| 30 |
"name": "opts" |
| 31 |
} |
| 32 |
], |
| 33 |
"resultType": "mediatranslationpb.SpeechTranslationService_StreamingTranslateSpeechClient", |
| 34 |
"client": { |
| 35 |
"shortName": "SpeechTranslationClient", |
| 36 |
"fullName": "google.cloud.mediatranslation.v1beta1.SpeechTranslationClient" |
| 37 |
}, |
| 38 |
"method": { |
| 39 |
"shortName": "StreamingTranslateSpeech", |
| 40 |
"fullName": "google.cloud.mediatranslation.v1beta1.SpeechTranslationService.StreamingTranslateSpeech", |
| 41 |
"service": { |
| 42 |
"shortName": "SpeechTranslationService", |
| 43 |
"fullName": "google.cloud.mediatranslation.v1beta1.SpeechTranslationService" |
| 44 |
} |
| 45 |
} |
| 46 |
}, |
| 47 |
"origin": "API_DEFINITION", |
| 48 |
"segments": [ |
| 49 |
{ |
| 50 |
"start": 18, |
| 51 |
"end": 69, |
| 52 |
"type": "FULL" |
| 53 |
} |
| 54 |
] |
| 55 |
} |
| 56 |
] |
| 57 |
} |