@Generated("by gapic-generator-java")
Package com.google.cloud.speech.v2
A client to Cloud Speech-to-Text API
The interfaces provided are listed below, along with usage samples.
======================= SpeechClient =======================
Service Description: Enables speech transcription and resource management.
Sample for SpeechClient:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (SpeechClient speechClient = SpeechClient.create()) {
RecognizerName name = RecognizerName.of("[PROJECT]", "[LOCATION]", "[RECOGNIZER]");
Recognizer response = speechClient.getRecognizer(name);
}
-
Class Summary Class Description AutoDetectDecodingConfig Automatically detected decoding parameters.AutoDetectDecodingConfig.Builder Automatically detected decoding parameters.BatchRecognizeFileMetadata Metadata about a single file in a batch for BatchRecognize.BatchRecognizeFileMetadata.Builder Metadata about a single file in a batch for BatchRecognize.BatchRecognizeFileResult Final results for a single file.BatchRecognizeFileResult.Builder Final results for a single file.BatchRecognizeMetadata Operation metadata for [BatchRecognize][google.cloud.speech.v2.Speech.BatchRecognize].BatchRecognizeMetadata.Builder Operation metadata for [BatchRecognize][google.cloud.speech.v2.Speech.BatchRecognize].BatchRecognizeRequest Request message for the [BatchRecognize][google.cloud.speech.v2.Speech.BatchRecognize] method.BatchRecognizeRequest.Builder Request message for the [BatchRecognize][google.cloud.speech.v2.Speech.BatchRecognize] method.BatchRecognizeResponse Response message for [BatchRecognize][google.cloud.speech.v2.Speech.BatchRecognize] that is packaged into a longrunning [Operation][google.longrunning.Operation].BatchRecognizeResponse.Builder Response message for [BatchRecognize][google.cloud.speech.v2.Speech.BatchRecognize] that is packaged into a longrunning [Operation][google.longrunning.Operation].BatchRecognizeResults Output type for Cloud Storage of BatchRecognize transcripts.BatchRecognizeResults.Builder Output type for Cloud Storage of BatchRecognize transcripts.BatchRecognizeTranscriptionMetadata Metadata about transcription for a single file (for example, progress percent).BatchRecognizeTranscriptionMetadata.Builder Metadata about transcription for a single file (for example, progress percent).CloudSpeechProto Config Message representing the config for the Speech-to-Text API.Config.Builder Message representing the config for the Speech-to-Text API.ConfigName ConfigName.Builder Builder for projects/{project}/locations/{location}/config.CreateCustomClassRequest Request message for the [CreateCustomClass][google.cloud.speech.v2.Speech.CreateCustomClass] method.CreateCustomClassRequest.Builder Request message for the [CreateCustomClass][google.cloud.speech.v2.Speech.CreateCustomClass] method.CreatePhraseSetRequest Request message for the [CreatePhraseSet][google.cloud.speech.v2.Speech.CreatePhraseSet] method.CreatePhraseSetRequest.Builder Request message for the [CreatePhraseSet][google.cloud.speech.v2.Speech.CreatePhraseSet] method.CreateRecognizerRequest Request message for the [CreateRecognizer][google.cloud.speech.v2.Speech.CreateRecognizer] method.CreateRecognizerRequest.Builder Request message for the [CreateRecognizer][google.cloud.speech.v2.Speech.CreateRecognizer] method.CustomClass CustomClass for biasing in speech recognition.CustomClass.Builder CustomClass for biasing in speech recognition.CustomClass.ClassItem An item of the class.CustomClass.ClassItem.Builder An item of the class.CustomClassName CustomClassName.Builder Builder for projects/{project}/locations/{location}/customClasses/{custom_class}.DeleteCustomClassRequest Request message for the [DeleteCustomClass][google.cloud.speech.v2.Speech.DeleteCustomClass] method.DeleteCustomClassRequest.Builder Request message for the [DeleteCustomClass][google.cloud.speech.v2.Speech.DeleteCustomClass] method.DeletePhraseSetRequest Request message for the [DeletePhraseSet][google.cloud.speech.v2.Speech.DeletePhraseSet] method.DeletePhraseSetRequest.Builder Request message for the [DeletePhraseSet][google.cloud.speech.v2.Speech.DeletePhraseSet] method.DeleteRecognizerRequest Request message for the [DeleteRecognizer][google.cloud.speech.v2.Speech.DeleteRecognizer] method.DeleteRecognizerRequest.Builder Request message for the [DeleteRecognizer][google.cloud.speech.v2.Speech.DeleteRecognizer] method.ExplicitDecodingConfig Explicitly specified decoding parameters.ExplicitDecodingConfig.Builder Explicitly specified decoding parameters.GcsOutputConfig Output configurations for Cloud Storage.GcsOutputConfig.Builder Output configurations for Cloud Storage.GetConfigRequest Request message for the [GetConfig][google.cloud.speech.v2.Speech.GetConfig] method.GetConfigRequest.Builder Request message for the [GetConfig][google.cloud.speech.v2.Speech.GetConfig] method.GetCustomClassRequest Request message for the [GetCustomClass][google.cloud.speech.v2.Speech.GetCustomClass] method.GetCustomClassRequest.Builder Request message for the [GetCustomClass][google.cloud.speech.v2.Speech.GetCustomClass] method.GetPhraseSetRequest Request message for the [GetPhraseSet][google.cloud.speech.v2.Speech.GetPhraseSet] method.GetPhraseSetRequest.Builder Request message for the [GetPhraseSet][google.cloud.speech.v2.Speech.GetPhraseSet] method.GetRecognizerRequest Request message for the [GetRecognizer][google.cloud.speech.v2.Speech.GetRecognizer] method.GetRecognizerRequest.Builder Request message for the [GetRecognizer][google.cloud.speech.v2.Speech.GetRecognizer] method.InlineOutputConfig Output configurations for inline response.InlineOutputConfig.Builder Output configurations for inline response.ListCustomClassesRequest Request message for the [ListCustomClasses][google.cloud.speech.v2.Speech.ListCustomClasses] method.ListCustomClassesRequest.Builder Request message for the [ListCustomClasses][google.cloud.speech.v2.Speech.ListCustomClasses] method.ListCustomClassesResponse Response message for the [ListCustomClasses][google.cloud.speech.v2.Speech.ListCustomClasses] method.ListCustomClassesResponse.Builder Response message for the [ListCustomClasses][google.cloud.speech.v2.Speech.ListCustomClasses] method.ListPhraseSetsRequest Request message for the [ListPhraseSets][google.cloud.speech.v2.Speech.ListPhraseSets] method.ListPhraseSetsRequest.Builder Request message for the [ListPhraseSets][google.cloud.speech.v2.Speech.ListPhraseSets] method.ListPhraseSetsResponse Response message for the [ListPhraseSets][google.cloud.speech.v2.Speech.ListPhraseSets] method.ListPhraseSetsResponse.Builder Response message for the [ListPhraseSets][google.cloud.speech.v2.Speech.ListPhraseSets] method.ListRecognizersRequest Request message for the [ListRecognizers][google.cloud.speech.v2.Speech.ListRecognizers] method.ListRecognizersRequest.Builder Request message for the [ListRecognizers][google.cloud.speech.v2.Speech.ListRecognizers] method.ListRecognizersResponse Response message for the [ListRecognizers][google.cloud.speech.v2.Speech.ListRecognizers] method.ListRecognizersResponse.Builder Response message for the [ListRecognizers][google.cloud.speech.v2.Speech.ListRecognizers] method.LocationName LocationName.Builder Builder for projects/{project}/locations/{location}.OperationMetadata Represents the metadata of a long-running operation.OperationMetadata.Builder Represents the metadata of a long-running operation.PhraseSet PhraseSet for biasing in speech recognition.PhraseSet.Builder PhraseSet for biasing in speech recognition.PhraseSet.Phrase A Phrase contains words and phrase "hints" so that the speech recognition is more likely to recognize them.PhraseSet.Phrase.Builder A Phrase contains words and phrase "hints" so that the speech recognition is more likely to recognize them.PhraseSetName PhraseSetName.Builder Builder for projects/{project}/locations/{location}/phraseSets/{phrase_set}.RecognitionConfig Provides information to the Recognizer that specifies how to process the recognition request.RecognitionConfig.Builder Provides information to the Recognizer that specifies how to process the recognition request.RecognitionFeatures Available recognition features.RecognitionFeatures.Builder Available recognition features.RecognitionOutputConfig Configuration options for the output(s) of recognition.RecognitionOutputConfig.Builder Configuration options for the output(s) of recognition.RecognitionResponseMetadata Metadata about the recognition request and response.RecognitionResponseMetadata.Builder Metadata about the recognition request and response.Recognizer A Recognizer message.Recognizer.Builder A Recognizer message.RecognizeRequest Request message for the [Recognize][google.cloud.speech.v2.Speech.Recognize] method.RecognizeRequest.Builder Request message for the [Recognize][google.cloud.speech.v2.Speech.Recognize] method.RecognizeResponse Response message for the [Recognize][google.cloud.speech.v2.Speech.Recognize] method.RecognizeResponse.Builder Response message for the [Recognize][google.cloud.speech.v2.Speech.Recognize] method.RecognizerName RecognizerName.Builder Builder for projects/{project}/locations/{location}/recognizers/{recognizer}.SpeakerDiarizationConfig Configuration to enable speaker diarization.SpeakerDiarizationConfig.Builder Configuration to enable speaker diarization.SpeechAdaptation Provides "hints" to the speech recognizer to favor specific words and phrases in the results.SpeechAdaptation.AdaptationPhraseSet A biasing PhraseSet, which can be either a string referencing the name of an existing PhraseSets resource, or an inline definition of a PhraseSet.SpeechAdaptation.AdaptationPhraseSet.Builder A biasing PhraseSet, which can be either a string referencing the name of an existing PhraseSets resource, or an inline definition of a PhraseSet.SpeechAdaptation.Builder Provides "hints" to the speech recognizer to favor specific words and phrases in the results.SpeechClient Service Description: Enables speech transcription and resource management.SpeechClient.ListCustomClassesFixedSizeCollection SpeechClient.ListCustomClassesPage SpeechClient.ListCustomClassesPagedResponse SpeechClient.ListLocationsFixedSizeCollection SpeechClient.ListLocationsPage SpeechClient.ListLocationsPagedResponse SpeechClient.ListPhraseSetsFixedSizeCollection SpeechClient.ListPhraseSetsPage SpeechClient.ListPhraseSetsPagedResponse SpeechClient.ListRecognizersFixedSizeCollection SpeechClient.ListRecognizersPage SpeechClient.ListRecognizersPagedResponse SpeechGrpc Enables speech transcription and resource management.SpeechGrpc.SpeechBlockingStub A stub to allow clients to do synchronous rpc calls to service Speech.SpeechGrpc.SpeechFutureStub A stub to allow clients to do ListenableFuture-style rpc calls to service Speech.SpeechGrpc.SpeechImplBase Base class for the server implementation of the service Speech.SpeechGrpc.SpeechStub A stub to allow clients to do asynchronous rpc calls to service Speech.SpeechRecognitionAlternative Alternative hypotheses (a.k.a.SpeechRecognitionAlternative.Builder Alternative hypotheses (a.k.a.SpeechRecognitionResult A speech recognition result corresponding to a portion of the audio.SpeechRecognitionResult.Builder A speech recognition result corresponding to a portion of the audio.SpeechSettings Settings class to configure an instance ofSpeechClient
.SpeechSettings.Builder Builder for SpeechSettings.StreamingRecognitionConfig Provides configuration information for the StreamingRecognize request.StreamingRecognitionConfig.Builder Provides configuration information for the StreamingRecognize request.StreamingRecognitionFeatures Available recognition features specific to streaming recognition requests.StreamingRecognitionFeatures.Builder Available recognition features specific to streaming recognition requests.StreamingRecognitionFeatures.VoiceActivityTimeout Events that a timeout can be set on for voice activity.StreamingRecognitionFeatures.VoiceActivityTimeout.Builder Events that a timeout can be set on for voice activity.StreamingRecognitionResult A streaming speech recognition result corresponding to a portion of the audio that is currently being processed.StreamingRecognitionResult.Builder A streaming speech recognition result corresponding to a portion of the audio that is currently being processed.StreamingRecognizeRequest Request message for the [StreamingRecognize][google.cloud.speech.v2.Speech.StreamingRecognize] method.StreamingRecognizeRequest.Builder Request message for the [StreamingRecognize][google.cloud.speech.v2.Speech.StreamingRecognize] method.StreamingRecognizeResponse `StreamingRecognizeResponse` is the only message returned to the client by `StreamingRecognize`.StreamingRecognizeResponse.Builder `StreamingRecognizeResponse` is the only message returned to the client by `StreamingRecognize`.UndeleteCustomClassRequest Request message for the [UndeleteCustomClass][google.cloud.speech.v2.Speech.UndeleteCustomClass] method.UndeleteCustomClassRequest.Builder Request message for the [UndeleteCustomClass][google.cloud.speech.v2.Speech.UndeleteCustomClass] method.UndeletePhraseSetRequest Request message for the [UndeletePhraseSet][google.cloud.speech.v2.Speech.UndeletePhraseSet] method.UndeletePhraseSetRequest.Builder Request message for the [UndeletePhraseSet][google.cloud.speech.v2.Speech.UndeletePhraseSet] method.UndeleteRecognizerRequest Request message for the [UndeleteRecognizer][google.cloud.speech.v2.Speech.UndeleteRecognizer] method.UndeleteRecognizerRequest.Builder Request message for the [UndeleteRecognizer][google.cloud.speech.v2.Speech.UndeleteRecognizer] method.UpdateConfigRequest Request message for the [UpdateConfig][google.cloud.speech.v2.Speech.UpdateConfig] method.UpdateConfigRequest.Builder Request message for the [UpdateConfig][google.cloud.speech.v2.Speech.UpdateConfig] method.UpdateCustomClassRequest Request message for the [UpdateCustomClass][google.cloud.speech.v2.Speech.UpdateCustomClass] method.UpdateCustomClassRequest.Builder Request message for the [UpdateCustomClass][google.cloud.speech.v2.Speech.UpdateCustomClass] method.UpdatePhraseSetRequest Request message for the [UpdatePhraseSet][google.cloud.speech.v2.Speech.UpdatePhraseSet] method.UpdatePhraseSetRequest.Builder Request message for the [UpdatePhraseSet][google.cloud.speech.v2.Speech.UpdatePhraseSet] method.UpdateRecognizerRequest Request message for the [UpdateRecognizer][google.cloud.speech.v2.Speech.UpdateRecognizer] method.UpdateRecognizerRequest.Builder Request message for the [UpdateRecognizer][google.cloud.speech.v2.Speech.UpdateRecognizer] method.WordInfo Word-specific information for recognized words.WordInfo.Builder Word-specific information for recognized words. -
Enum Summary Enum Description BatchRecognizeFileMetadata.AudioSourceCase BatchRecognizeRequest.ProcessingStrategy Possible processing strategies for batch requests.CustomClass.State Set of states that define the lifecycle of a CustomClass.ExplicitDecodingConfig.AudioEncoding Supported audio data encodings.OperationMetadata.MetadataCase OperationMetadata.RequestCase PhraseSet.State Set of states that define the lifecycle of a PhraseSet.RecognitionConfig.DecodingConfigCase RecognitionFeatures.MultiChannelMode Options for how to recognize multi-channel audio.RecognitionOutputConfig.OutputCase Recognizer.State Set of states that define the lifecycle of a Recognizer.RecognizeRequest.AudioSourceCase SpeechAdaptation.AdaptationPhraseSet.ValueCase StreamingRecognizeRequest.StreamingRequestCase StreamingRecognizeResponse.SpeechEventType Indicates the type of speech event.