public static final class SpeechGrpc.SpeechBlockingStub extends AbstractBlockingStub<SpeechGrpc.SpeechBlockingStub>
Enables speech transcription and resource management.
Inheritance
java.lang.Object >
io.grpc.stub.AbstractStub >
io.grpc.stub.AbstractBlockingStub >
SpeechGrpc.SpeechBlockingStub
Inherited Members
io.grpc.stub.AbstractBlockingStub.<T>newStub(io.grpc.stub.AbstractStub.StubFactory<T>,io.grpc.Channel)
io.grpc.stub.AbstractBlockingStub.<T>newStub(io.grpc.stub.AbstractStub.StubFactory<T>,io.grpc.Channel,io.grpc.CallOptions)
io.grpc.stub.AbstractStub.<T>withOption(io.grpc.CallOptions.Key<T>,T)
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)
io.grpc.stub.AbstractStub.getCallOptions()
io.grpc.stub.AbstractStub.getChannel()
io.grpc.stub.AbstractStub.withCallCredentials(io.grpc.CallCredentials)
io.grpc.stub.AbstractStub.withChannel(io.grpc.Channel)
io.grpc.stub.AbstractStub.withCompression(java.lang.String)
io.grpc.stub.AbstractStub.withDeadline(io.grpc.Deadline)
io.grpc.stub.AbstractStub.withDeadlineAfter(long,java.util.concurrent.TimeUnit)
io.grpc.stub.AbstractStub.withExecutor(java.util.concurrent.Executor)
io.grpc.stub.AbstractStub.withInterceptors(io.grpc.ClientInterceptor...)
io.grpc.stub.AbstractStub.withMaxInboundMessageSize(int)
io.grpc.stub.AbstractStub.withMaxOutboundMessageSize(int)
io.grpc.stub.AbstractStub.withWaitForReady()
Methods
batchRecognize(BatchRecognizeRequest request)
public Operation batchRecognize(BatchRecognizeRequest request)
Performs batch asynchronous speech recognition: send a request with N
audio files and receive a long running operation that can be polled to see
when the transcriptions are finished.
Parameter
Returns
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
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)
createCustomClass(CreateCustomClassRequest request)
public Operation createCustomClass(CreateCustomClassRequest request)
Parameter
Returns
createPhraseSet(CreatePhraseSetRequest request)
public Operation createPhraseSet(CreatePhraseSetRequest request)
Parameter
Returns
createRecognizer(CreateRecognizerRequest request)
public Operation createRecognizer(CreateRecognizerRequest request)
Parameter
Returns
deleteCustomClass(DeleteCustomClassRequest request)
public Operation deleteCustomClass(DeleteCustomClassRequest request)
Parameter
Returns
deletePhraseSet(DeletePhraseSetRequest request)
public Operation deletePhraseSet(DeletePhraseSetRequest request)
Parameter
Returns
deleteRecognizer(DeleteRecognizerRequest request)
public Operation deleteRecognizer(DeleteRecognizerRequest request)
Parameter
Returns
getConfig(GetConfigRequest request)
public Config getConfig(GetConfigRequest request)
Returns the requested Config.
Parameter
Returns
getCustomClass(GetCustomClassRequest request)
public CustomClass getCustomClass(GetCustomClassRequest request)
Returns the requested
CustomClass.
Parameter
Returns
getPhraseSet(GetPhraseSetRequest request)
public PhraseSet getPhraseSet(GetPhraseSetRequest request)
Returns the requested
PhraseSet.
Parameter
Returns
getRecognizer(GetRecognizerRequest request)
public Recognizer getRecognizer(GetRecognizerRequest request)
Returns the requested
Recognizer. Fails with
NOT_FOUND if the requested recognizer doesn't
exist.
Parameter
Returns
listCustomClasses(ListCustomClassesRequest request)
public ListCustomClassesResponse listCustomClasses(ListCustomClassesRequest request)
Parameter
Returns
listPhraseSets(ListPhraseSetsRequest request)
public ListPhraseSetsResponse listPhraseSets(ListPhraseSetsRequest request)
Parameter
Returns
listRecognizers(ListRecognizersRequest request)
public ListRecognizersResponse listRecognizers(ListRecognizersRequest request)
Parameter
Returns
recognize(RecognizeRequest request)
public RecognizeResponse recognize(RecognizeRequest request)
Performs synchronous Speech recognition: receive results after all audio
has been sent and processed.
Parameter
Returns
undeleteCustomClass(UndeleteCustomClassRequest request)
public Operation undeleteCustomClass(UndeleteCustomClassRequest request)
Undeletes the CustomClass.
Parameter
Returns
undeletePhraseSet(UndeletePhraseSetRequest request)
public Operation undeletePhraseSet(UndeletePhraseSetRequest request)
Parameter
Returns
undeleteRecognizer(UndeleteRecognizerRequest request)
public Operation undeleteRecognizer(UndeleteRecognizerRequest request)
Undeletes the Recognizer.
Parameter
Returns
updateConfig(UpdateConfigRequest request)
public Config updateConfig(UpdateConfigRequest request)
Parameter
Returns
updateCustomClass(UpdateCustomClassRequest request)
public Operation updateCustomClass(UpdateCustomClassRequest request)
Parameter
Returns
updatePhraseSet(UpdatePhraseSetRequest request)
public Operation updatePhraseSet(UpdatePhraseSetRequest request)
Parameter
Returns
updateRecognizer(UpdateRecognizerRequest request)
public Operation updateRecognizer(UpdateRecognizerRequest request)
Parameter
Returns