google-cloud-mediatranslation overview (0.26.0)

A client to Media Translation API

The interfaces provided are listed below, along with usage samples.


Service Description: Provides translation from/to media types.

Sample for SpeechTranslationServiceClient:

 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 try (SpeechTranslationServiceClient speechTranslationServiceClient =
     SpeechTranslationServiceClient.create()) {
   BidiStream<StreamingTranslateSpeechRequest, StreamingTranslateSpeechResponse> bidiStream =
   StreamingTranslateSpeechRequest request =
   for (StreamingTranslateSpeechResponse response : bidiStream) {
     // Do something when a response is received.