Package com.google.cloud.speech.v1beta1
Class SpeechGrpc.SpeechStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<SpeechGrpc.SpeechStub>
-
- com.google.cloud.speech.v1beta1.SpeechGrpc.SpeechStub
-
- Enclosing class:
- SpeechGrpc
public static final class SpeechGrpc.SpeechStub extends io.grpc.stub.AbstractStub<SpeechGrpc.SpeechStub>
Service that implements Google Cloud Speech API.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
asyncRecognize(AsyncRecognizeRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Performs asynchronous speech recognition: receive results via the [google.longrunning.Operations] (/speech/reference/rest/v1beta1/operations#Operation) interface.protected SpeechGrpc.SpeechStub
build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
io.grpc.stub.StreamObserver<StreamingRecognizeRequest>
streamingRecognize(io.grpc.stub.StreamObserver<StreamingRecognizeResponse> responseObserver)
Performs bidirectional streaming speech recognition: receive results while sending audio.void
syncRecognize(SyncRecognizeRequest request, io.grpc.stub.StreamObserver<SyncRecognizeResponse> responseObserver)
Performs synchronous speech recognition: receive results after all audio has been sent and processed.-
Methods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, newStub, newStub, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOption, withWaitForReady
-
-
-
-
Method Detail
-
build
protected SpeechGrpc.SpeechStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
build
in classio.grpc.stub.AbstractStub<SpeechGrpc.SpeechStub>
-
syncRecognize
public void syncRecognize(SyncRecognizeRequest request, io.grpc.stub.StreamObserver<SyncRecognizeResponse> responseObserver)
Performs synchronous speech recognition: receive results after all audio has been sent and processed.
-
asyncRecognize
public void asyncRecognize(AsyncRecognizeRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Performs asynchronous speech recognition: receive results via the [google.longrunning.Operations] (/speech/reference/rest/v1beta1/operations#Operation) interface. Returns either an `Operation.error` or an `Operation.response` which contains an `AsyncRecognizeResponse` message.
-
streamingRecognize
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).
-
-