public static final class SpeechGrpc.SpeechStub extends AbstractAsyncStub<SpeechGrpc.SpeechStub>
Enables speech transcription and resource management.
Inheritance
java.lang.Object >
io.grpc.stub.AbstractStub >
io.grpc.stub.AbstractAsyncStub >
SpeechGrpc.SpeechStub
Inherited Members
io.grpc.stub.AbstractAsyncStub.<T>newStub(io.grpc.stub.AbstractStub.StubFactory<T>,io.grpc.Channel)
io.grpc.stub.AbstractAsyncStub.<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, StreamObserver<Operation> responseObserver)
public void batchRecognize(BatchRecognizeRequest request, StreamObserver<Operation> responseObserver)
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.
Parameters
build(Channel channel, CallOptions callOptions)
protected SpeechGrpc.SpeechStub 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, StreamObserver<Operation> responseObserver)
public void createCustomClass(CreateCustomClassRequest request, StreamObserver<Operation> responseObserver)
Parameters
createPhraseSet(CreatePhraseSetRequest request, StreamObserver<Operation> responseObserver)
public void createPhraseSet(CreatePhraseSetRequest request, StreamObserver<Operation> responseObserver)
Parameters
createRecognizer(CreateRecognizerRequest request, StreamObserver<Operation> responseObserver)
public void createRecognizer(CreateRecognizerRequest request, StreamObserver<Operation> responseObserver)
Parameters
deleteCustomClass(DeleteCustomClassRequest request, StreamObserver<Operation> responseObserver)
public void deleteCustomClass(DeleteCustomClassRequest request, StreamObserver<Operation> responseObserver)
Parameters
deletePhraseSet(DeletePhraseSetRequest request, StreamObserver<Operation> responseObserver)
public void deletePhraseSet(DeletePhraseSetRequest request, StreamObserver<Operation> responseObserver)
Parameters
deleteRecognizer(DeleteRecognizerRequest request, StreamObserver<Operation> responseObserver)
public void deleteRecognizer(DeleteRecognizerRequest request, StreamObserver<Operation> responseObserver)
Parameters
getConfig(GetConfigRequest request, StreamObserver<Config> responseObserver)
public void getConfig(GetConfigRequest request, StreamObserver<Config> responseObserver)
Returns the requested Config.
Parameters
getCustomClass(GetCustomClassRequest request, StreamObserver<CustomClass> responseObserver)
public void getCustomClass(GetCustomClassRequest request, StreamObserver<CustomClass> responseObserver)
Returns the requested
CustomClass.
Parameters
getPhraseSet(GetPhraseSetRequest request, StreamObserver<PhraseSet> responseObserver)
public void getPhraseSet(GetPhraseSetRequest request, StreamObserver<PhraseSet> responseObserver)
Returns the requested
PhraseSet.
Parameters
getRecognizer(GetRecognizerRequest request, StreamObserver<Recognizer> responseObserver)
public void getRecognizer(GetRecognizerRequest request, StreamObserver<Recognizer> responseObserver)
Returns the requested
Recognizer. Fails with
NOT_FOUND if the requested recognizer doesn't
exist.
Parameters
listCustomClasses(ListCustomClassesRequest request, StreamObserver<ListCustomClassesResponse> responseObserver)
public void listCustomClasses(ListCustomClassesRequest request, StreamObserver<ListCustomClassesResponse> responseObserver)
Parameters
listPhraseSets(ListPhraseSetsRequest request, StreamObserver<ListPhraseSetsResponse> responseObserver)
public void listPhraseSets(ListPhraseSetsRequest request, StreamObserver<ListPhraseSetsResponse> responseObserver)
Parameters
listRecognizers(ListRecognizersRequest request, StreamObserver<ListRecognizersResponse> responseObserver)
public void listRecognizers(ListRecognizersRequest request, StreamObserver<ListRecognizersResponse> responseObserver)
Parameters
recognize(RecognizeRequest request, StreamObserver<RecognizeResponse> responseObserver)
public void recognize(RecognizeRequest request, StreamObserver<RecognizeResponse> responseObserver)
Performs synchronous Speech recognition: receive results after all audio
has been sent and processed.
Parameters
streamingRecognize(StreamObserver<StreamingRecognizeResponse> responseObserver)
public StreamObserver<StreamingRecognizeRequest> streamingRecognize(StreamObserver<StreamingRecognizeResponse> responseObserver)
Performs bidirectional streaming speech recognition: receive results while
sending audio. This method is only available via the gRPC API (not REST).
Parameter
Returns
undeleteCustomClass(UndeleteCustomClassRequest request, StreamObserver<Operation> responseObserver)
public void undeleteCustomClass(UndeleteCustomClassRequest request, StreamObserver<Operation> responseObserver)
Undeletes the CustomClass.
Parameters
undeletePhraseSet(UndeletePhraseSetRequest request, StreamObserver<Operation> responseObserver)
public void undeletePhraseSet(UndeletePhraseSetRequest request, StreamObserver<Operation> responseObserver)
Parameters
undeleteRecognizer(UndeleteRecognizerRequest request, StreamObserver<Operation> responseObserver)
public void undeleteRecognizer(UndeleteRecognizerRequest request, StreamObserver<Operation> responseObserver)
Undeletes the Recognizer.
Parameters
updateConfig(UpdateConfigRequest request, StreamObserver<Config> responseObserver)
public void updateConfig(UpdateConfigRequest request, StreamObserver<Config> responseObserver)
Parameters
updateCustomClass(UpdateCustomClassRequest request, StreamObserver<Operation> responseObserver)
public void updateCustomClass(UpdateCustomClassRequest request, StreamObserver<Operation> responseObserver)
Parameters
updatePhraseSet(UpdatePhraseSetRequest request, StreamObserver<Operation> responseObserver)
public void updatePhraseSet(UpdatePhraseSetRequest request, StreamObserver<Operation> responseObserver)
Parameters
updateRecognizer(UpdateRecognizerRequest request, StreamObserver<Operation> responseObserver)
public void updateRecognizer(UpdateRecognizerRequest request, StreamObserver<Operation> responseObserver)
Parameters