public static final class SpeechGrpc.SpeechBlockingStub extends io.grpc.stub.AbstractStub<SpeechGrpc.SpeechBlockingStub>
Service that implements Google Cloud Speech API.
Modifier and Type | Method and Description |
---|---|
Operation |
asyncRecognize(AsyncRecognizeRequest request)
Performs asynchronous speech recognition: receive results via the
[google.longrunning.Operations]
(/speech/reference/rest/v1beta1/operations#Operation)
interface.
|
protected SpeechGrpc.SpeechBlockingStub |
build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) |
SyncRecognizeResponse |
syncRecognize(SyncRecognizeRequest request)
Performs synchronous speech recognition: receive results after all audio
has been sent and processed.
|
protected SpeechGrpc.SpeechBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
build
in class io.grpc.stub.AbstractStub<SpeechGrpc.SpeechBlockingStub>
public SyncRecognizeResponse syncRecognize(SyncRecognizeRequest request)
Performs synchronous speech recognition: receive results after all audio has been sent and processed.
public 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.