Package com.google.cloud.speech.v1beta1
Class SpeechGrpc.SpeechFutureStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<SpeechGrpc.SpeechFutureStub>
-
- com.google.cloud.speech.v1beta1.SpeechGrpc.SpeechFutureStub
-
- Enclosing class:
- SpeechGrpc
public static final class SpeechGrpc.SpeechFutureStub extends io.grpc.stub.AbstractStub<SpeechGrpc.SpeechFutureStub>
Service that implements Google Cloud Speech API.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation>
asyncRecognize(AsyncRecognizeRequest request)
Performs asynchronous speech recognition: receive results via the [google.longrunning.Operations] (/speech/reference/rest/v1beta1/operations#Operation) interface.protected SpeechGrpc.SpeechFutureStub
build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
com.google.common.util.concurrent.ListenableFuture<SyncRecognizeResponse>
syncRecognize(SyncRecognizeRequest request)
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.SpeechFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
build
in classio.grpc.stub.AbstractStub<SpeechGrpc.SpeechFutureStub>
-
syncRecognize
public com.google.common.util.concurrent.ListenableFuture<SyncRecognizeResponse> syncRecognize(SyncRecognizeRequest request)
Performs synchronous speech recognition: receive results after all audio has been sent and processed.
-
asyncRecognize
public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> asyncRecognize(AsyncRecognizeRequest request)
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.
-
-