Package com.google.cloud.speech.v1 (4.47.0)

GitHub Repository RPC Documentation REST Documentation

This package is not the recommended entry point to using this client library!

For this library, we recommend using com.google.cloud.speech.v2 for new applications.

Client Classes

Client classes are the main entry point to using a package. They contain several variations of Java methods for each of the API's methods.

Client Description
com.google.cloud.speech.v1.AdaptationClient Service Description: Service that implements Google Cloud Speech Adaptation API.

This class provides the ability to make remote calls to the backing service through method calls that map to API methods. Sample code to get started:

com.google.cloud.speech.v1.SpeechClient Service Description: Service that implements Google Cloud Speech API.

This class provides the ability to make remote calls to the backing service through method calls that map to API methods. Sample code to get started:

Settings Classes

Settings classes can be used to configure credentials, endpoints, and retry settings for a Client.

Settings Description
com.google.cloud.speech.v1.AdaptationSettings Settings class to configure an instance of AdaptationClient.

The default instance has everything set to sensible defaults:

com.google.cloud.speech.v1.SpeechSettings Settings class to configure an instance of SpeechClient.

The default instance has everything set to sensible defaults:

Classes

Class Description
com.google.cloud.speech.v1.AdaptationClient.ListCustomClassesFixedSizeCollection
com.google.cloud.speech.v1.AdaptationClient.ListCustomClassesPage
com.google.cloud.speech.v1.AdaptationClient.ListCustomClassesPagedResponse
com.google.cloud.speech.v1.AdaptationClient.ListPhraseSetFixedSizeCollection
com.google.cloud.speech.v1.AdaptationClient.ListPhraseSetPage
com.google.cloud.speech.v1.AdaptationClient.ListPhraseSetPagedResponse
com.google.cloud.speech.v1.AdaptationGrpc Service that implements Google Cloud Speech Adaptation API.
com.google.cloud.speech.v1.AdaptationGrpc.AdaptationImplBase Base class for the server implementation of the service Adaptation. Service that implements Google Cloud Speech Adaptation API.
com.google.cloud.speech.v1.AdaptationSettings.Builder Builder for AdaptationSettings.
com.google.cloud.speech.v1.CreateCustomClassRequest Message sent by the client for the CreateCustomClass method.
com.google.cloud.speech.v1.CreateCustomClassRequest.Builder Message sent by the client for the CreateCustomClass method.
com.google.cloud.speech.v1.CreatePhraseSetRequest Message sent by the client for the CreatePhraseSet method.
com.google.cloud.speech.v1.CreatePhraseSetRequest.Builder Message sent by the client for the CreatePhraseSet method.
com.google.cloud.speech.v1.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 items can be substituted into placeholders that you set in PhraseSet phrases.
com.google.cloud.speech.v1.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 items can be substituted into placeholders that you set in PhraseSet phrases.
com.google.cloud.speech.v1.CustomClass.ClassItem An item of the class.
com.google.cloud.speech.v1.CustomClass.ClassItem.Builder An item of the class.
com.google.cloud.speech.v1.CustomClassName
com.google.cloud.speech.v1.CustomClassName.Builder Builder for projects/{project}/locations/{location}/customClasses/{custom_class}.
com.google.cloud.speech.v1.DeleteCustomClassRequest Message sent by the client for the DeleteCustomClass method.
com.google.cloud.speech.v1.DeleteCustomClassRequest.Builder Message sent by the client for the DeleteCustomClass method.
com.google.cloud.speech.v1.DeletePhraseSetRequest Message sent by the client for the DeletePhraseSet method.
com.google.cloud.speech.v1.DeletePhraseSetRequest.Builder Message sent by the client for the DeletePhraseSet method.
com.google.cloud.speech.v1.GetCustomClassRequest Message sent by the client for the GetCustomClass method.
com.google.cloud.speech.v1.GetCustomClassRequest.Builder Message sent by the client for the GetCustomClass method.
com.google.cloud.speech.v1.GetPhraseSetRequest Message sent by the client for the GetPhraseSet method.
com.google.cloud.speech.v1.GetPhraseSetRequest.Builder Message sent by the client for the GetPhraseSet method.
com.google.cloud.speech.v1.ListCustomClassesRequest Message sent by the client for the ListCustomClasses method.
com.google.cloud.speech.v1.ListCustomClassesRequest.Builder Message sent by the client for the ListCustomClasses method.
com.google.cloud.speech.v1.ListCustomClassesResponse Message returned to the client by the ListCustomClasses method.
com.google.cloud.speech.v1.ListCustomClassesResponse.Builder Message returned to the client by the ListCustomClasses method.
com.google.cloud.speech.v1.ListPhraseSetRequest Message sent by the client for the ListPhraseSet method.
com.google.cloud.speech.v1.ListPhraseSetRequest.Builder Message sent by the client for the ListPhraseSet method.
com.google.cloud.speech.v1.ListPhraseSetResponse Message returned to the client by the ListPhraseSet method.
com.google.cloud.speech.v1.ListPhraseSetResponse.Builder Message returned to the client by the ListPhraseSet method.
com.google.cloud.speech.v1.LocationName
com.google.cloud.speech.v1.LocationName.Builder Builder for projects/{project}/locations/{location}.
com.google.cloud.speech.v1.LongRunningRecognizeMetadata Describes the progress of a long-running LongRunningRecognize call. It is included in the metadata field of the Operation returned by the GetOperation call of the google::longrunning::Operations service.
com.google.cloud.speech.v1.LongRunningRecognizeMetadata.Builder Describes the progress of a long-running LongRunningRecognize call. It is included in the metadata field of the Operation returned by the GetOperation call of the google::longrunning::Operations service.
com.google.cloud.speech.v1.LongRunningRecognizeRequest The top-level message sent by the client for the LongRunningRecognize method.
com.google.cloud.speech.v1.LongRunningRecognizeRequest.Builder The top-level message sent by the client for the LongRunningRecognize method.
com.google.cloud.speech.v1.LongRunningRecognizeResponse The only message returned to the client by the LongRunningRecognize method. It contains the result as zero or more sequential SpeechRecognitionResult messages. It is included in the result.response field of the Operation
com.google.cloud.speech.v1.LongRunningRecognizeResponse.Builder The only message returned to the client by the LongRunningRecognize method. It contains the result as zero or more sequential SpeechRecognitionResult messages. It is included in the result.response field of the Operation
com.google.cloud.speech.v1.PhraseSet Provides "hints" to the speech recognizer to favor specific words and phrases in the results.
com.google.cloud.speech.v1.PhraseSet.Builder Provides "hints" to the speech recognizer to favor specific words and phrases in the results.
com.google.cloud.speech.v1.PhraseSet.Phrase A phrases containing words and phrase "hints" so that the speech recognition is more likely to recognize them. This can be used to improve the accuracy for specific words and phrases, for example, if
com.google.cloud.speech.v1.PhraseSet.Phrase.Builder A phrases containing words and phrase "hints" so that the speech recognition is more likely to recognize them. This can be used to improve the accuracy for specific words and phrases, for example, if
com.google.cloud.speech.v1.PhraseSetName
com.google.cloud.speech.v1.PhraseSetName.Builder Builder for projects/{project}/locations/{location}/phraseSets/{phrase_set}.
com.google.cloud.speech.v1.RecognitionAudio Contains audio data in the encoding specified in the RecognitionConfig. Either content or uri must be supplied. Supplying both or neither returns google.rpc.Code.INVALID_ARGUMENT.
com.google.cloud.speech.v1.RecognitionAudio.Builder Contains audio data in the encoding specified in the RecognitionConfig. Either content or uri must be supplied. Supplying both or neither returns google.rpc.Code.INVALID_ARGUMENT.
com.google.cloud.speech.v1.RecognitionConfig Provides information to the recognizer that specifies how to process the request.
com.google.cloud.speech.v1.RecognitionConfig.Builder Provides information to the recognizer that specifies how to process the request.
com.google.cloud.speech.v1.RecognitionMetadata Description of audio data to be recognized.
com.google.cloud.speech.v1.RecognitionMetadata.Builder Description of audio data to be recognized.
com.google.cloud.speech.v1.RecognizeRequest The top-level message sent by the client for the Recognize method.
com.google.cloud.speech.v1.RecognizeRequest.Builder The top-level message sent by the client for the Recognize method.
com.google.cloud.speech.v1.RecognizeResponse The only message returned to the client by the Recognize method. It contains the result as zero or more sequential SpeechRecognitionResult messages.
com.google.cloud.speech.v1.RecognizeResponse.Builder The only message returned to the client by the Recognize method. It contains the result as zero or more sequential SpeechRecognitionResult messages.
com.google.cloud.speech.v1.SpeakerDiarizationConfig Config to enable speaker diarization.
com.google.cloud.speech.v1.SpeakerDiarizationConfig.Builder Config to enable speaker diarization.
com.google.cloud.speech.v1.SpeechAdaptation Speech adaptation configuration.
com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar Protobuf type google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar
com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.Builder Protobuf type google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar
com.google.cloud.speech.v1.SpeechAdaptation.Builder Speech adaptation configuration.
com.google.cloud.speech.v1.SpeechAdaptationInfo Information on speech adaptation use in results
com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder Information on speech adaptation use in results
com.google.cloud.speech.v1.SpeechAdaptationProto
com.google.cloud.speech.v1.SpeechContext Provides "hints" to the speech recognizer to favor specific words and phrases in the results.
com.google.cloud.speech.v1.SpeechContext.Builder Provides "hints" to the speech recognizer to favor specific words and phrases in the results.
com.google.cloud.speech.v1.SpeechGrpc Service that implements Google Cloud Speech API.
com.google.cloud.speech.v1.SpeechGrpc.SpeechImplBase Base class for the server implementation of the service Speech. Service that implements Google Cloud Speech API.
com.google.cloud.speech.v1.SpeechProto
com.google.cloud.speech.v1.SpeechRecognitionAlternative Alternative hypotheses (a.k.a. n-best list).
com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder Alternative hypotheses (a.k.a. n-best list).
com.google.cloud.speech.v1.SpeechRecognitionResult A speech recognition result corresponding to a portion of the audio.
com.google.cloud.speech.v1.SpeechRecognitionResult.Builder A speech recognition result corresponding to a portion of the audio.
com.google.cloud.speech.v1.SpeechResourceProto
com.google.cloud.speech.v1.SpeechSettings.Builder Builder for SpeechSettings.
com.google.cloud.speech.v1.StreamingRecognitionConfig Provides information to the recognizer that specifies how to process the request.
com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder Provides information to the recognizer that specifies how to process the request.
com.google.cloud.speech.v1.StreamingRecognitionConfig.VoiceActivityTimeout Events that a timeout can be set on for voice activity.
com.google.cloud.speech.v1.StreamingRecognitionConfig.VoiceActivityTimeout.Builder Events that a timeout can be set on for voice activity.
com.google.cloud.speech.v1.StreamingRecognitionResult A streaming speech recognition result corresponding to a portion of the audio that is currently being processed.
com.google.cloud.speech.v1.StreamingRecognitionResult.Builder A streaming speech recognition result corresponding to a portion of the audio that is currently being processed.
com.google.cloud.speech.v1.StreamingRecognizeRequest The top-level message sent by the client for the StreamingRecognize method. Multiple StreamingRecognizeRequest messages are sent. The first message must contain a streaming_config message and must not contain
com.google.cloud.speech.v1.StreamingRecognizeRequest.Builder The top-level message sent by the client for the StreamingRecognize method. Multiple StreamingRecognizeRequest messages are sent. The first message must contain a streaming_config message and must not contain
com.google.cloud.speech.v1.StreamingRecognizeResponse StreamingRecognizeResponse is the only message returned to the client by StreamingRecognize. A series of zero or more StreamingRecognizeResponse messages are streamed back to the client. If there is no recognizable
com.google.cloud.speech.v1.StreamingRecognizeResponse.Builder StreamingRecognizeResponse is the only message returned to the client by StreamingRecognize. A series of zero or more StreamingRecognizeResponse messages are streamed back to the client. If there is no recognizable
com.google.cloud.speech.v1.TranscriptNormalization Transcription normalization configuration. Use transcription normalization to automatically replace parts of the transcript with phrases of your choosing. For StreamingRecognize, this normalization only applies to stable
com.google.cloud.speech.v1.TranscriptNormalization.Builder Transcription normalization configuration. Use transcription normalization to automatically replace parts of the transcript with phrases of your choosing. For StreamingRecognize, this normalization only applies to stable
com.google.cloud.speech.v1.TranscriptNormalization.Entry A single replacement configuration.
com.google.cloud.speech.v1.TranscriptNormalization.Entry.Builder A single replacement configuration.
com.google.cloud.speech.v1.TranscriptOutputConfig Specifies an optional destination for the recognition results.
com.google.cloud.speech.v1.TranscriptOutputConfig.Builder Specifies an optional destination for the recognition results.
com.google.cloud.speech.v1.UpdateCustomClassRequest Message sent by the client for the UpdateCustomClass method.
com.google.cloud.speech.v1.UpdateCustomClassRequest.Builder Message sent by the client for the UpdateCustomClass method.
com.google.cloud.speech.v1.UpdatePhraseSetRequest Message sent by the client for the UpdatePhraseSet method.
com.google.cloud.speech.v1.UpdatePhraseSetRequest.Builder Message sent by the client for the UpdatePhraseSet method.
com.google.cloud.speech.v1.WordInfo Word-specific information for recognized words.
com.google.cloud.speech.v1.WordInfo.Builder Word-specific information for recognized words.

Interfaces

Interface Description
com.google.cloud.speech.v1.AdaptationGrpc.AsyncService Service that implements Google Cloud Speech Adaptation API.
com.google.cloud.speech.v1.CreateCustomClassRequestOrBuilder
com.google.cloud.speech.v1.CreatePhraseSetRequestOrBuilder
com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder
com.google.cloud.speech.v1.CustomClassOrBuilder
com.google.cloud.speech.v1.DeleteCustomClassRequestOrBuilder
com.google.cloud.speech.v1.DeletePhraseSetRequestOrBuilder
com.google.cloud.speech.v1.GetCustomClassRequestOrBuilder
com.google.cloud.speech.v1.GetPhraseSetRequestOrBuilder
com.google.cloud.speech.v1.ListCustomClassesRequestOrBuilder
com.google.cloud.speech.v1.ListCustomClassesResponseOrBuilder
com.google.cloud.speech.v1.ListPhraseSetRequestOrBuilder
com.google.cloud.speech.v1.ListPhraseSetResponseOrBuilder
com.google.cloud.speech.v1.LongRunningRecognizeMetadataOrBuilder
com.google.cloud.speech.v1.LongRunningRecognizeRequestOrBuilder
com.google.cloud.speech.v1.LongRunningRecognizeResponseOrBuilder
com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder
com.google.cloud.speech.v1.PhraseSetOrBuilder
com.google.cloud.speech.v1.RecognitionAudioOrBuilder
com.google.cloud.speech.v1.RecognitionConfigOrBuilder
com.google.cloud.speech.v1.RecognitionMetadataOrBuilder
com.google.cloud.speech.v1.RecognizeRequestOrBuilder
com.google.cloud.speech.v1.RecognizeResponseOrBuilder
com.google.cloud.speech.v1.SpeakerDiarizationConfigOrBuilder
com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammarOrBuilder
com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder
com.google.cloud.speech.v1.SpeechAdaptationOrBuilder
com.google.cloud.speech.v1.SpeechContextOrBuilder
com.google.cloud.speech.v1.SpeechGrpc.AsyncService Service that implements Google Cloud Speech API.
com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder
com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder
com.google.cloud.speech.v1.StreamingRecognitionConfig.VoiceActivityTimeoutOrBuilder
com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder
com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder
com.google.cloud.speech.v1.StreamingRecognizeRequestOrBuilder
com.google.cloud.speech.v1.StreamingRecognizeResponseOrBuilder
com.google.cloud.speech.v1.TranscriptNormalization.EntryOrBuilder
com.google.cloud.speech.v1.TranscriptNormalizationOrBuilder
com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder
com.google.cloud.speech.v1.UpdateCustomClassRequestOrBuilder
com.google.cloud.speech.v1.UpdatePhraseSetRequestOrBuilder
com.google.cloud.speech.v1.WordInfoOrBuilder

Enums

Enum Description
com.google.cloud.speech.v1.RecognitionAudio.AudioSourceCase
com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding The encoding of the audio data sent in the request. All encodings support only 1 channel (mono) audio, unless the
com.google.cloud.speech.v1.RecognitionMetadata.InteractionType Use case categories that the audio recognition request can be described by.
com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance Enumerates the types of capture settings describing an audio file.
com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType The original media the speech was recorded on.
com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType The type of device the speech was recorded with.
com.google.cloud.speech.v1.StreamingRecognizeRequest.StreamingRequestCase
com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType Indicates the type of speech event.
com.google.cloud.speech.v1.TranscriptOutputConfig.OutputTypeCase