Class SpeechGrpc.SpeechBlockingStub (4.37.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
Name Description
request BatchRecognizeRequest
Returns
Type Description
Operation

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
Type Description
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
Name Description
request CreateCustomClassRequest
Returns
Type Description
Operation

createPhraseSet(CreatePhraseSetRequest request)

public Operation createPhraseSet(CreatePhraseSetRequest request)

Creates a PhraseSet.

Parameter
Name Description
request CreatePhraseSetRequest
Returns
Type Description
Operation

createRecognizer(CreateRecognizerRequest request)

public Operation createRecognizer(CreateRecognizerRequest request)

Creates a Recognizer.

Parameter
Name Description
request CreateRecognizerRequest
Returns
Type Description
Operation

deleteCustomClass(DeleteCustomClassRequest request)

public Operation deleteCustomClass(DeleteCustomClassRequest request)

Deletes the CustomClass.

Parameter
Name Description
request DeleteCustomClassRequest
Returns
Type Description
Operation

deletePhraseSet(DeletePhraseSetRequest request)

public Operation deletePhraseSet(DeletePhraseSetRequest request)

Deletes the PhraseSet.

Parameter
Name Description
request DeletePhraseSetRequest
Returns
Type Description
Operation

deleteRecognizer(DeleteRecognizerRequest request)

public Operation deleteRecognizer(DeleteRecognizerRequest request)

Deletes the Recognizer.

Parameter
Name Description
request DeleteRecognizerRequest
Returns
Type Description
Operation

getConfig(GetConfigRequest request)

public Config getConfig(GetConfigRequest request)

Returns the requested Config.

Parameter
Name Description
request GetConfigRequest
Returns
Type Description
Config

getCustomClass(GetCustomClassRequest request)

public CustomClass getCustomClass(GetCustomClassRequest request)

Returns the requested CustomClass.

Parameter
Name Description
request GetCustomClassRequest
Returns
Type Description
CustomClass

getPhraseSet(GetPhraseSetRequest request)

public PhraseSet getPhraseSet(GetPhraseSetRequest request)

Returns the requested PhraseSet.

Parameter
Name Description
request GetPhraseSetRequest
Returns
Type Description
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
Name Description
request GetRecognizerRequest
Returns
Type Description
Recognizer

listCustomClasses(ListCustomClassesRequest request)

public ListCustomClassesResponse listCustomClasses(ListCustomClassesRequest request)

Lists CustomClasses.

Parameter
Name Description
request ListCustomClassesRequest
Returns
Type Description
ListCustomClassesResponse

listPhraseSets(ListPhraseSetsRequest request)

public ListPhraseSetsResponse listPhraseSets(ListPhraseSetsRequest request)

Lists PhraseSets.

Parameter
Name Description
request ListPhraseSetsRequest
Returns
Type Description
ListPhraseSetsResponse

listRecognizers(ListRecognizersRequest request)

public ListRecognizersResponse listRecognizers(ListRecognizersRequest request)

Lists Recognizers.

Parameter
Name Description
request ListRecognizersRequest
Returns
Type Description
ListRecognizersResponse

recognize(RecognizeRequest request)

public RecognizeResponse recognize(RecognizeRequest request)

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

Parameter
Name Description
request RecognizeRequest
Returns
Type Description
RecognizeResponse

undeleteCustomClass(UndeleteCustomClassRequest request)

public Operation undeleteCustomClass(UndeleteCustomClassRequest request)

Undeletes the CustomClass.

Parameter
Name Description
request UndeleteCustomClassRequest
Returns
Type Description
Operation

undeletePhraseSet(UndeletePhraseSetRequest request)

public Operation undeletePhraseSet(UndeletePhraseSetRequest request)

Undeletes the PhraseSet.

Parameter
Name Description
request UndeletePhraseSetRequest
Returns
Type Description
Operation

undeleteRecognizer(UndeleteRecognizerRequest request)

public Operation undeleteRecognizer(UndeleteRecognizerRequest request)

Undeletes the Recognizer.

Parameter
Name Description
request UndeleteRecognizerRequest
Returns
Type Description
Operation

updateConfig(UpdateConfigRequest request)

public Config updateConfig(UpdateConfigRequest request)

Updates the Config.

Parameter
Name Description
request UpdateConfigRequest
Returns
Type Description
Config

updateCustomClass(UpdateCustomClassRequest request)

public Operation updateCustomClass(UpdateCustomClassRequest request)

Updates the CustomClass.

Parameter
Name Description
request UpdateCustomClassRequest
Returns
Type Description
Operation

updatePhraseSet(UpdatePhraseSetRequest request)

public Operation updatePhraseSet(UpdatePhraseSetRequest request)

Updates the PhraseSet.

Parameter
Name Description
request UpdatePhraseSetRequest
Returns
Type Description
Operation

updateRecognizer(UpdateRecognizerRequest request)

public Operation updateRecognizer(UpdateRecognizerRequest request)

Updates the Recognizer.

Parameter
Name Description
request UpdateRecognizerRequest
Returns
Type Description
Operation