Class SpeechGrpc.SpeechBlockingStub (4.29.0)

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

Service that implements Google Cloud Speech API.

Inheritance

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

Methods

asyncRecognize(AsyncRecognizeRequest request)

public 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
Operation

build(Channel channel, CallOptions callOptions)

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

syncRecognize(SyncRecognizeRequest request)

public SyncRecognizeResponse syncRecognize(SyncRecognizeRequest request)

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

Parameter
NameDescription
requestSyncRecognizeRequest
Returns
TypeDescription
SyncRecognizeResponse