public static final class SpeechGrpc.SpeechStub extends io.grpc.stub.AbstractStub<SpeechGrpc.SpeechStub>
Service that implements Google Cloud Speech API.
Modifier and Type | Method and Description |
---|---|
protected SpeechGrpc.SpeechStub |
build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) |
void |
longRunningRecognize(LongRunningRecognizeRequest request,
io.grpc.stub.StreamObserver<Operation> responseObserver)
Performs asynchronous speech recognition: receive results via the
google.longrunning.Operations interface.
|
void |
recognize(RecognizeRequest request,
io.grpc.stub.StreamObserver<RecognizeResponse> responseObserver)
Performs synchronous speech recognition: receive results after all audio
has been sent and processed.
|
io.grpc.stub.StreamObserver<StreamingRecognizeRequest> |
streamingRecognize(io.grpc.stub.StreamObserver<StreamingRecognizeResponse> responseObserver)
Performs bidirectional streaming speech recognition: receive results while
sending audio.
|
protected SpeechGrpc.SpeechStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
build
in class io.grpc.stub.AbstractStub<SpeechGrpc.SpeechStub>
public void recognize(RecognizeRequest request, io.grpc.stub.StreamObserver<RecognizeResponse> responseObserver)
Performs synchronous speech recognition: receive results after all audio has been sent and processed.
public void longRunningRecognize(LongRunningRecognizeRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
Performs asynchronous speech recognition: receive results via the google.longrunning.Operations interface. Returns either an `Operation.error` or an `Operation.response` which contains a `LongRunningRecognizeResponse` message.
public io.grpc.stub.StreamObserver<StreamingRecognizeRequest> streamingRecognize(io.grpc.stub.StreamObserver<StreamingRecognizeResponse> responseObserver)
Performs bidirectional streaming speech recognition: receive results while sending audio. This method is only available via the gRPC API (not REST).