Class SpeechTranslationServiceGrpc.SpeechTranslationServiceStub (0.58.0)

public static final class SpeechTranslationServiceGrpc.SpeechTranslationServiceStub extends AbstractAsyncStub<SpeechTranslationServiceGrpc.SpeechTranslationServiceStub>

A stub to allow clients to do asynchronous rpc calls to service SpeechTranslationService.

Provides translation from/to media types.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > SpeechTranslationServiceGrpc.SpeechTranslationServiceStub

Methods

build(Channel channel, CallOptions callOptions)

protected SpeechTranslationServiceGrpc.SpeechTranslationServiceStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
SpeechTranslationServiceGrpc.SpeechTranslationServiceStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

streamingTranslateSpeech(StreamObserver<StreamingTranslateSpeechResponse> responseObserver)

public StreamObserver<StreamingTranslateSpeechRequest> streamingTranslateSpeech(StreamObserver<StreamingTranslateSpeechResponse> responseObserver)

Performs bidirectional streaming speech translation: receive results while sending audio. This method is only available via the gRPC API (not REST).

Parameter
Name Description
responseObserver io.grpc.stub.StreamObserver<StreamingTranslateSpeechResponse>
Returns
Type Description
io.grpc.stub.StreamObserver<StreamingTranslateSpeechRequest>