public abstract static class SpeechGrpc.SpeechImplBase
extends java.lang.Object
implements io.grpc.BindableService
Service that implements Google Cloud Speech API.
| Constructor and Description |
|---|
SpeechImplBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
asyncRecognize(AsyncRecognizeRequest request,
io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Perform asynchronous speech-recognition: receive results via the
google.longrunning.Operations interface.
|
io.grpc.ServerServiceDefinition |
bindService() |
io.grpc.stub.StreamObserver<StreamingRecognizeRequest> |
streamingRecognize(io.grpc.stub.StreamObserver<StreamingRecognizeResponse> responseObserver)
Perform bidirectional streaming speech-recognition: receive results while
sending audio.
|
void |
syncRecognize(SyncRecognizeRequest request,
io.grpc.stub.StreamObserver<SyncRecognizeResponse> responseObserver)
Perform synchronous speech-recognition: receive results after all audio
has been sent and processed.
|
public void syncRecognize(SyncRecognizeRequest request, io.grpc.stub.StreamObserver<SyncRecognizeResponse> responseObserver)
Perform synchronous speech-recognition: receive results after all audio has been sent and processed.
public void asyncRecognize(AsyncRecognizeRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Perform asynchronous speech-recognition: receive results via the google.longrunning.Operations interface. Returns either an `Operation.error` or an `Operation.response` which contains an `AsyncRecognizeResponse` message.
public io.grpc.stub.StreamObserver<StreamingRecognizeRequest> streamingRecognize(io.grpc.stub.StreamObserver<StreamingRecognizeResponse> responseObserver)
Perform bidirectional streaming speech-recognition: receive results while sending audio. This method is only available via the gRPC API (not REST).
public io.grpc.ServerServiceDefinition bindService()
bindService in interface io.grpc.BindableService