@Generated("by gapic-generator-java")
Package com.google.cloud.mediatranslation.v1beta1
A client to Media Translation API
The interfaces provided are listed below, along with usage samples.
======================= SpeechTranslationServiceClient =======================
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
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (SpeechTranslationServiceClient speechTranslationServiceClient =
SpeechTranslationServiceClient.create()) {
BidiStream<StreamingTranslateSpeechRequest, StreamingTranslateSpeechResponse> bidiStream =
speechTranslationServiceClient.streamingTranslateSpeechCallable().call();
StreamingTranslateSpeechRequest request =
StreamingTranslateSpeechRequest.newBuilder().build();
bidiStream.send(request);
for (StreamingTranslateSpeechResponse response : bidiStream) {
// Do something when a response is received.
}
}
-
Interface Summary Interface Description SpeechTranslationServiceGrpc.AsyncService Provides translation from/to media types.StreamingTranslateSpeechConfigOrBuilder StreamingTranslateSpeechRequestOrBuilder StreamingTranslateSpeechResponseOrBuilder StreamingTranslateSpeechResult.TextTranslationResultOrBuilder StreamingTranslateSpeechResultOrBuilder TranslateSpeechConfigOrBuilder -
Class Summary Class Description MediaTranslationProto SpeechTranslationServiceClient Service Description: Provides translation from/to media types.SpeechTranslationServiceGrpc Provides translation from/to media types.SpeechTranslationServiceGrpc.SpeechTranslationServiceBlockingStub A stub to allow clients to do synchronous rpc calls to service SpeechTranslationService.SpeechTranslationServiceGrpc.SpeechTranslationServiceFutureStub A stub to allow clients to do ListenableFuture-style rpc calls to service SpeechTranslationService.SpeechTranslationServiceGrpc.SpeechTranslationServiceImplBase Base class for the server implementation of the service SpeechTranslationService.SpeechTranslationServiceGrpc.SpeechTranslationServiceStub A stub to allow clients to do asynchronous rpc calls to service SpeechTranslationService.SpeechTranslationServiceSettings Settings class to configure an instance ofSpeechTranslationServiceClient
.SpeechTranslationServiceSettings.Builder Builder for SpeechTranslationServiceSettings.StreamingTranslateSpeechConfig Config used for streaming translation.StreamingTranslateSpeechConfig.Builder Config used for streaming translation.StreamingTranslateSpeechRequest The top-level message sent by the client for the `StreamingTranslateSpeech` method.StreamingTranslateSpeechRequest.Builder The top-level message sent by the client for the `StreamingTranslateSpeech` method.StreamingTranslateSpeechResponse A streaming speech translation response corresponding to a portion of the audio currently processed.StreamingTranslateSpeechResponse.Builder A streaming speech translation response corresponding to a portion of the audio currently processed.StreamingTranslateSpeechResult A streaming speech translation result corresponding to a portion of the audio that is currently being processed.StreamingTranslateSpeechResult.Builder A streaming speech translation result corresponding to a portion of the audio that is currently being processed.StreamingTranslateSpeechResult.TextTranslationResult Text translation result.StreamingTranslateSpeechResult.TextTranslationResult.Builder Text translation result.TranslateSpeechConfig Provides information to the speech translation that specifies how to process the request.TranslateSpeechConfig.Builder Provides information to the speech translation that specifies how to process the request. -
Enum Summary Enum Description StreamingTranslateSpeechRequest.StreamingRequestCase StreamingTranslateSpeechResponse.SpeechEventType Indicates the type of speech event.StreamingTranslateSpeechResult.ResultCase