@Generated("by gapic-generator-java")
Package com.google.cloud.speech.v1p1beta1
A client to Cloud Speech-to-Text API
The interfaces provided are listed below, along with usage samples.
======================= SpeechClient =======================
Service Description: Service that implements Google Cloud Speech API.
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()) {
RecognitionConfig config = RecognitionConfig.newBuilder().build();
RecognitionAudio audio = RecognitionAudio.newBuilder().build();
RecognizeResponse response = speechClient.recognize(config, audio);
}
======================= AdaptationClient =======================
Service Description: Service that implements Google Cloud Speech Adaptation API.
Sample for AdaptationClient:
// 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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
PhraseSet phraseSet = PhraseSet.newBuilder().build();
String phraseSetId = "phraseSetId959902180";
PhraseSet response = adaptationClient.createPhraseSet(parent, phraseSet, phraseSetId);
}
-
Class Summary Class Description AdaptationClient Service Description: Service that implements Google Cloud Speech Adaptation API.AdaptationClient.ListCustomClassesFixedSizeCollection AdaptationClient.ListCustomClassesPage AdaptationClient.ListCustomClassesPagedResponse AdaptationClient.ListPhraseSetFixedSizeCollection AdaptationClient.ListPhraseSetPage AdaptationClient.ListPhraseSetPagedResponse AdaptationGrpc Service that implements Google Cloud Speech Adaptation API.AdaptationGrpc.AdaptationBlockingStub A stub to allow clients to do synchronous rpc calls to service Adaptation.AdaptationGrpc.AdaptationFutureStub A stub to allow clients to do ListenableFuture-style rpc calls to service Adaptation.AdaptationGrpc.AdaptationImplBase Base class for the server implementation of the service Adaptation.AdaptationGrpc.AdaptationStub A stub to allow clients to do asynchronous rpc calls to service Adaptation.AdaptationSettings Settings class to configure an instance ofAdaptationClient
.AdaptationSettings.Builder Builder for AdaptationSettings.CreateCustomClassRequest Message sent by the client for the `CreateCustomClass` method.CreateCustomClassRequest.Builder Message sent by the client for the `CreateCustomClass` method.CreatePhraseSetRequest Message sent by the client for the `CreatePhraseSet` method.CreatePhraseSetRequest.Builder Message sent by the client for the `CreatePhraseSet` method.CustomClass A set of words or phrases that represents a common concept likely to appear in your audio, for example a list of passenger ship names.CustomClass.Builder A set of words or phrases that represents a common concept likely to appear in your audio, for example a list of passenger ship names.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 Message sent by the client for the `DeleteCustomClass` method.DeleteCustomClassRequest.Builder Message sent by the client for the `DeleteCustomClass` method.DeletePhraseSetRequest Message sent by the client for the `DeletePhraseSet` method.DeletePhraseSetRequest.Builder Message sent by the client for the `DeletePhraseSet` method.GetCustomClassRequest Message sent by the client for the `GetCustomClass` method.GetCustomClassRequest.Builder Message sent by the client for the `GetCustomClass` method.GetPhraseSetRequest Message sent by the client for the `GetPhraseSet` method.GetPhraseSetRequest.Builder Message sent by the client for the `GetPhraseSet` method.ListCustomClassesRequest Message sent by the client for the `ListCustomClasses` method.ListCustomClassesRequest.Builder Message sent by the client for the `ListCustomClasses` method.ListCustomClassesResponse Message returned to the client by the `ListCustomClasses` method.ListCustomClassesResponse.Builder Message returned to the client by the `ListCustomClasses` method.ListPhraseSetRequest Message sent by the client for the `ListPhraseSet` method.ListPhraseSetRequest.Builder Message sent by the client for the `ListPhraseSet` method.ListPhraseSetResponse Message returned to the client by the `ListPhraseSet` method.ListPhraseSetResponse.Builder Message returned to the client by the `ListPhraseSet` method.LocationName LocationName.Builder Builder for projects/{project}/locations/{location}.LongRunningRecognizeMetadata Describes the progress of a long-running `LongRunningRecognize` call.LongRunningRecognizeMetadata.Builder Describes the progress of a long-running `LongRunningRecognize` call.LongRunningRecognizeRequest The top-level message sent by the client for the `LongRunningRecognize` method.LongRunningRecognizeRequest.Builder The top-level message sent by the client for the `LongRunningRecognize` method.LongRunningRecognizeResponse The only message returned to the client by the `LongRunningRecognize` method.LongRunningRecognizeResponse.Builder The only message returned to the client by the `LongRunningRecognize` method.PhraseSet Provides "hints" to the speech recognizer to favor specific words and phrases in the results.PhraseSet.Builder Provides "hints" to the speech recognizer to favor specific words and phrases in the results.PhraseSet.Phrase A phrases containing words and phrase "hints" so that the speech recognition is more likely to recognize them.PhraseSet.Phrase.Builder A phrases containing 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}.RecognitionAudio Contains audio data in the encoding specified in the `RecognitionConfig`.RecognitionAudio.Builder Contains audio data in the encoding specified in the `RecognitionConfig`.RecognitionConfig Provides information to the recognizer that specifies how to process the request.RecognitionConfig.Builder Provides information to the recognizer that specifies how to process the request.RecognitionMetadata Deprecated. RecognitionMetadata.Builder Description of audio data to be recognized.RecognizeRequest The top-level message sent by the client for the `Recognize` method.RecognizeRequest.Builder The top-level message sent by the client for the `Recognize` method.RecognizeResponse The only message returned to the client by the `Recognize` method.RecognizeResponse.Builder The only message returned to the client by the `Recognize` method.SpeakerDiarizationConfig Config to enable speaker diarization.SpeakerDiarizationConfig.Builder Config to enable speaker diarization.SpeechAdaptation Speech adaptation configuration.SpeechAdaptation.ABNFGrammar Protobuf typegoogle.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar
SpeechAdaptation.ABNFGrammar.Builder Protobuf typegoogle.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar
SpeechAdaptation.Builder Speech adaptation configuration.SpeechAdaptationInfo Information on speech adaptation use in resultsSpeechAdaptationInfo.Builder Information on speech adaptation use in resultsSpeechAdaptationProto SpeechClient Service Description: Service that implements Google Cloud Speech API.SpeechContext Provides "hints" to the speech recognizer to favor specific words and phrases in the results.SpeechContext.Builder Provides "hints" to the speech recognizer to favor specific words and phrases in the results.SpeechGrpc Service that implements Google Cloud Speech API.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.SpeechProto 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.SpeechResourceProto SpeechSettings Settings class to configure an instance ofSpeechClient
.SpeechSettings.Builder Builder for SpeechSettings.StreamingRecognitionConfig Provides information to the recognizer that specifies how to process the request.StreamingRecognitionConfig.Builder Provides information to the recognizer that specifies how to process the request.StreamingRecognitionConfig.VoiceActivityTimeout Events that a timeout can be set on for voice activity.StreamingRecognitionConfig.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 The top-level message sent by the client for the `StreamingRecognize` method.StreamingRecognizeRequest.Builder The top-level message sent by the client for the `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`.TranscriptNormalization Transcription normalization configuration.TranscriptNormalization.Builder Transcription normalization configuration.TranscriptNormalization.Entry A single replacement configuration.TranscriptNormalization.Entry.Builder A single replacement configuration.TranscriptOutputConfig Specifies an optional destination for the recognition results.TranscriptOutputConfig.Builder Specifies an optional destination for the recognition results.UpdateCustomClassRequest Message sent by the client for the `UpdateCustomClass` method.UpdateCustomClassRequest.Builder Message sent by the client for the `UpdateCustomClass` method.UpdatePhraseSetRequest Message sent by the client for the `UpdatePhraseSet` method.UpdatePhraseSetRequest.Builder Message sent by the client for the `UpdatePhraseSet` method.WordInfo Word-specific information for recognized words.WordInfo.Builder Word-specific information for recognized words. -
Enum Summary Enum Description RecognitionAudio.AudioSourceCase RecognitionConfig.AudioEncoding The encoding of the audio data sent in the request.RecognitionMetadata.InteractionType Use case categories that the audio recognition request can be described by.RecognitionMetadata.MicrophoneDistance Enumerates the types of capture settings describing an audio file.RecognitionMetadata.OriginalMediaType The original media the speech was recorded on.RecognitionMetadata.RecordingDeviceType The type of device the speech was recorded with.StreamingRecognizeRequest.StreamingRequestCase StreamingRecognizeResponse.SpeechEventType Indicates the type of speech event.TranscriptOutputConfig.OutputTypeCase