Class SpeechGrpc.SpeechFutureStub (4.14.0)

public static final class SpeechGrpc.SpeechFutureStub extends AbstractStub<SpeechGrpc.SpeechFutureStub>

Service that implements Google Cloud Speech API.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > SpeechGrpc.SpeechFutureStub

Methods

asyncRecognize(AsyncRecognizeRequest request)

public ListenableFuture<Operation> asyncRecognize(AsyncRecognizeRequest request)

Performs 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.

Parameter
NameDescription
requestAsyncRecognizeRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Operation>

build(Channel channel, CallOptions callOptions)

protected SpeechGrpc.SpeechFutureStub build(Channel channel, CallOptions callOptions)
Parameters
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns
TypeDescription
SpeechGrpc.SpeechFutureStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

syncRecognize(SyncRecognizeRequest request)

public ListenableFuture<SyncRecognizeResponse> syncRecognize(SyncRecognizeRequest request)

Performs synchronous speech recognition: receive results after all audio has been sent and processed.

Parameter
NameDescription
requestSyncRecognizeRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<SyncRecognizeResponse>