Class SpeechGrpc.SpeechBlockingStub (4.39.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
Name Description
request AsyncRecognizeRequest
Returns
Type Description
Operation

build(Channel channel, CallOptions callOptions)

protected SpeechGrpc.SpeechBlockingStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
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
Name Description
request SyncRecognizeRequest
Returns
Type Description
SyncRecognizeResponse