Package com.google.cloud.speech.v1
Class SpeechGrpc.SpeechBlockingV2Stub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<SpeechGrpc.SpeechBlockingV2Stub>
com.google.cloud.speech.v1.SpeechGrpc.SpeechBlockingV2Stub
- Enclosing class:
- SpeechGrpc
public static final class SpeechGrpc.SpeechBlockingV2Stub
extends io.grpc.stub.AbstractBlockingStub<SpeechGrpc.SpeechBlockingV2Stub>
A stub to allow clients to do synchronous rpc calls to service Speech.
Service that implements Google Cloud Speech API.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptionprotected SpeechGrpc.SpeechBlockingV2Stubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) Performs asynchronous speech recognition: receive results via the google.longrunning.Operations interface.recognize(RecognizeRequest request) Performs synchronous speech recognition: receive results after all audio has been sent and processed.io.grpc.stub.BlockingClientCall<StreamingRecognizeRequest,StreamingRecognizeResponse> Performs bidirectional streaming speech recognition: receive results while sending audio.Methods inherited from class io.grpc.stub.AbstractBlockingStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected SpeechGrpc.SpeechBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<SpeechGrpc.SpeechBlockingV2Stub>
-
recognize
Performs synchronous speech recognition: receive results after all audio has been sent and processed.
- Throws:
io.grpc.StatusException
-
longRunningRecognize
public Operation longRunningRecognize(LongRunningRecognizeRequest request) throws io.grpc.StatusException Performs asynchronous speech recognition: receive results via the google.longrunning.Operations interface. Returns either an `Operation.error` or an `Operation.response` which contains a `LongRunningRecognizeResponse` message. For more information on asynchronous speech recognition, see the [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
- Throws:
io.grpc.StatusException
-
streamingRecognize
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") public io.grpc.stub.BlockingClientCall<StreamingRecognizeRequest,StreamingRecognizeResponse> streamingRecognize()Performs bidirectional streaming speech recognition: receive results while sending audio. This method is only available via the gRPC API (not REST).
-