Class SpeechTranslationServiceGrpc.SpeechTranslationServiceStub (0.47.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
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns
TypeDescription
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
NameDescription
responseObserverio.grpc.stub.StreamObserver<StreamingTranslateSpeechResponse>
Returns
TypeDescription
io.grpc.stub.StreamObserver<StreamingTranslateSpeechRequest>