Class SpeechGrpc.SpeechBlockingStub (4.28.0)

public static final class SpeechGrpc.SpeechBlockingStub extends AbstractBlockingStub<SpeechGrpc.SpeechBlockingStub>

A stub to allow clients to do synchronous rpc calls to service Speech.

Enables speech transcription and resource management.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractBlockingStub > SpeechGrpc.SpeechBlockingStub

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
NameDescription
requestBatchRecognizeRequest
Returns
TypeDescription
Operation

build(Channel channel, CallOptions callOptions)

protected SpeechGrpc.SpeechBlockingStub build(Channel channel, CallOptions callOptions)
Parameters
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns
TypeDescription
SpeechGrpc.SpeechBlockingStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createCustomClass(CreateCustomClassRequest request)

public Operation createCustomClass(CreateCustomClassRequest request)

Creates a CustomClass.

Parameter
NameDescription
requestCreateCustomClassRequest
Returns
TypeDescription
Operation

createPhraseSet(CreatePhraseSetRequest request)

public Operation createPhraseSet(CreatePhraseSetRequest request)

Creates a PhraseSet.

Parameter
NameDescription
requestCreatePhraseSetRequest
Returns
TypeDescription
Operation

createRecognizer(CreateRecognizerRequest request)

public Operation createRecognizer(CreateRecognizerRequest request)

Creates a Recognizer.

Parameter
NameDescription
requestCreateRecognizerRequest
Returns
TypeDescription
Operation

deleteCustomClass(DeleteCustomClassRequest request)

public Operation deleteCustomClass(DeleteCustomClassRequest request)

Deletes the CustomClass.

Parameter
NameDescription
requestDeleteCustomClassRequest
Returns
TypeDescription
Operation

deletePhraseSet(DeletePhraseSetRequest request)

public Operation deletePhraseSet(DeletePhraseSetRequest request)

Deletes the PhraseSet.

Parameter
NameDescription
requestDeletePhraseSetRequest
Returns
TypeDescription
Operation

deleteRecognizer(DeleteRecognizerRequest request)

public Operation deleteRecognizer(DeleteRecognizerRequest request)

Deletes the Recognizer.

Parameter
NameDescription
requestDeleteRecognizerRequest
Returns
TypeDescription
Operation

getConfig(GetConfigRequest request)

public Config getConfig(GetConfigRequest request)

Returns the requested Config.

Parameter
NameDescription
requestGetConfigRequest
Returns
TypeDescription
Config

getCustomClass(GetCustomClassRequest request)

public CustomClass getCustomClass(GetCustomClassRequest request)

Returns the requested CustomClass.

Parameter
NameDescription
requestGetCustomClassRequest
Returns
TypeDescription
CustomClass

getPhraseSet(GetPhraseSetRequest request)

public PhraseSet getPhraseSet(GetPhraseSetRequest request)

Returns the requested PhraseSet.

Parameter
NameDescription
requestGetPhraseSetRequest
Returns
TypeDescription
PhraseSet

getRecognizer(GetRecognizerRequest request)

public Recognizer getRecognizer(GetRecognizerRequest request)

Returns the requested Recognizer. Fails with NOT_FOUND if the requested Recognizer doesn't exist.

Parameter
NameDescription
requestGetRecognizerRequest
Returns
TypeDescription
Recognizer

listCustomClasses(ListCustomClassesRequest request)

public ListCustomClassesResponse listCustomClasses(ListCustomClassesRequest request)

Lists CustomClasses.

Parameter
NameDescription
requestListCustomClassesRequest
Returns
TypeDescription
ListCustomClassesResponse

listPhraseSets(ListPhraseSetsRequest request)

public ListPhraseSetsResponse listPhraseSets(ListPhraseSetsRequest request)

Lists PhraseSets.

Parameter
NameDescription
requestListPhraseSetsRequest
Returns
TypeDescription
ListPhraseSetsResponse

listRecognizers(ListRecognizersRequest request)

public ListRecognizersResponse listRecognizers(ListRecognizersRequest request)

Lists Recognizers.

Parameter
NameDescription
requestListRecognizersRequest
Returns
TypeDescription
ListRecognizersResponse

recognize(RecognizeRequest request)

public RecognizeResponse recognize(RecognizeRequest request)

Performs synchronous Speech recognition: receive results after all audio has been sent and processed.

Parameter
NameDescription
requestRecognizeRequest
Returns
TypeDescription
RecognizeResponse

undeleteCustomClass(UndeleteCustomClassRequest request)

public Operation undeleteCustomClass(UndeleteCustomClassRequest request)

Undeletes the CustomClass.

Parameter
NameDescription
requestUndeleteCustomClassRequest
Returns
TypeDescription
Operation

undeletePhraseSet(UndeletePhraseSetRequest request)

public Operation undeletePhraseSet(UndeletePhraseSetRequest request)

Undeletes the PhraseSet.

Parameter
NameDescription
requestUndeletePhraseSetRequest
Returns
TypeDescription
Operation

undeleteRecognizer(UndeleteRecognizerRequest request)

public Operation undeleteRecognizer(UndeleteRecognizerRequest request)

Undeletes the Recognizer.

Parameter
NameDescription
requestUndeleteRecognizerRequest
Returns
TypeDescription
Operation

updateConfig(UpdateConfigRequest request)

public Config updateConfig(UpdateConfigRequest request)

Updates the Config.

Parameter
NameDescription
requestUpdateConfigRequest
Returns
TypeDescription
Config

updateCustomClass(UpdateCustomClassRequest request)

public Operation updateCustomClass(UpdateCustomClassRequest request)

Updates the CustomClass.

Parameter
NameDescription
requestUpdateCustomClassRequest
Returns
TypeDescription
Operation

updatePhraseSet(UpdatePhraseSetRequest request)

public Operation updatePhraseSet(UpdatePhraseSetRequest request)

Updates the PhraseSet.

Parameter
NameDescription
requestUpdatePhraseSetRequest
Returns
TypeDescription
Operation

updateRecognizer(UpdateRecognizerRequest request)

public Operation updateRecognizer(UpdateRecognizerRequest request)

Updates the Recognizer.

Parameter
NameDescription
requestUpdateRecognizerRequest
Returns
TypeDescription
Operation