Uses of Class
com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder
-
Uses of RecognitionConfig.Builder in com.google.cloud.speech.v1p1beta1
Methods in com.google.cloud.speech.v1p1beta1 that return RecognitionConfig.BuilderModifier and TypeMethodDescriptionRecognitionConfig.Builder.addAllAlternativeLanguageCodes(Iterable<String> values) A list of up to 3 additional [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags, listing possible alternative languages of the supplied audio.RecognitionConfig.Builder.addAllSpeechContexts(Iterable<? extends SpeechContext> values) Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].RecognitionConfig.Builder.addAlternativeLanguageCodes(String value) A list of up to 3 additional [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags, listing possible alternative languages of the supplied audio.RecognitionConfig.Builder.addAlternativeLanguageCodesBytes(com.google.protobuf.ByteString value) A list of up to 3 additional [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags, listing possible alternative languages of the supplied audio.RecognitionConfig.Builder.addSpeechContexts(int index, SpeechContext value) Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].RecognitionConfig.Builder.addSpeechContexts(int index, SpeechContext.Builder builderForValue) Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].RecognitionConfig.Builder.addSpeechContexts(SpeechContext value) Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].RecognitionConfig.Builder.addSpeechContexts(SpeechContext.Builder builderForValue) Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].RecognitionConfig.Builder.clear()RecognitionConfig.Builder.clearAdaptation()Speech adaptation configuration improves the accuracy of speech recognition.RecognitionConfig.Builder.clearAlternativeLanguageCodes()A list of up to 3 additional [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags, listing possible alternative languages of the supplied audio.RecognitionConfig.Builder.clearAudioChannelCount()The number of channels in the input audio data.RecognitionConfig.Builder.clearDiarizationConfig()Config to enable speaker diarization and set additional parameters to make diarization better suited for your application.RecognitionConfig.Builder.clearDiarizationSpeakerCount()Deprecated.google.cloud.speech.v1p1beta1.RecognitionConfig.diarization_speaker_count is deprecated.RecognitionConfig.Builder.clearEnableAutomaticPunctuation()If 'true', adds punctuation to recognition result hypotheses.RecognitionConfig.Builder.clearEnableSeparateRecognitionPerChannel()This needs to be set to `true` explicitly and `audio_channel_count` > 1 to get each channel recognized separately.RecognitionConfig.Builder.clearEnableSpeakerDiarization()Deprecated.google.cloud.speech.v1p1beta1.RecognitionConfig.enable_speaker_diarization is deprecated.RecognitionConfig.Builder.clearEnableSpokenEmojis()The spoken emoji behavior for the call If not set, uses default behavior based on model of choice If 'true', adds spoken emoji formatting for the request.RecognitionConfig.Builder.clearEnableSpokenPunctuation()The spoken punctuation behavior for the call If not set, uses default behavior based on model of choice e.g. command_and_search will enable spoken punctuation by default If 'true', replaces spoken punctuation with the corresponding symbols in the request.RecognitionConfig.Builder.clearEnableWordConfidence()If `true`, the top result includes a list of words and the confidence for those words.RecognitionConfig.Builder.clearEnableWordTimeOffsets()If `true`, the top result includes a list of words and the start and end time offsets (timestamps) for those words.RecognitionConfig.Builder.clearEncoding()Encoding of audio data sent in all `RecognitionAudio` messages.RecognitionConfig.Builder.clearLanguageCode()Required.RecognitionConfig.Builder.clearMaxAlternatives()Maximum number of recognition hypotheses to be returned.RecognitionConfig.Builder.clearMetadata()Metadata regarding this request.RecognitionConfig.Builder.clearModel()Which model to select for the given request.RecognitionConfig.Builder.clearProfanityFilter()If set to `true`, the server will attempt to filter out profanities, replacing all but the initial character in each filtered word with asterisks, e.g.RecognitionConfig.Builder.clearSampleRateHertz()Sample rate in Hertz of the audio data sent in all `RecognitionAudio` messages.RecognitionConfig.Builder.clearSpeechContexts()Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].RecognitionConfig.Builder.clearTranscriptNormalization()Optional.RecognitionConfig.Builder.clearUseEnhanced()Set to true to use an enhanced model for speech recognition.LongRunningRecognizeRequest.Builder.getConfigBuilder()Required.RecognizeRequest.Builder.getConfigBuilder()Required.StreamingRecognitionConfig.Builder.getConfigBuilder()Required.RecognitionConfig.Builder.mergeAdaptation(SpeechAdaptation value) Speech adaptation configuration improves the accuracy of speech recognition.RecognitionConfig.Builder.mergeDiarizationConfig(SpeakerDiarizationConfig value) Config to enable speaker diarization and set additional parameters to make diarization better suited for your application.RecognitionConfig.Builder.mergeEnableSpokenEmojis(com.google.protobuf.BoolValue value) The spoken emoji behavior for the call If not set, uses default behavior based on model of choice If 'true', adds spoken emoji formatting for the request.RecognitionConfig.Builder.mergeEnableSpokenPunctuation(com.google.protobuf.BoolValue value) The spoken punctuation behavior for the call If not set, uses default behavior based on model of choice e.g. command_and_search will enable spoken punctuation by default If 'true', replaces spoken punctuation with the corresponding symbols in the request.RecognitionConfig.Builder.mergeFrom(RecognitionConfig other) RecognitionConfig.Builder.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) RecognitionConfig.Builder.mergeFrom(com.google.protobuf.Message other) RecognitionConfig.Builder.mergeMetadata(RecognitionMetadata value) Metadata regarding this request.RecognitionConfig.Builder.mergeTranscriptNormalization(TranscriptNormalization value) Optional.static RecognitionConfig.BuilderRecognitionConfig.newBuilder()static RecognitionConfig.BuilderRecognitionConfig.newBuilder(RecognitionConfig prototype) RecognitionConfig.newBuilderForType()protected RecognitionConfig.BuilderRecognitionConfig.newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) RecognitionConfig.Builder.removeSpeechContexts(int index) Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].RecognitionConfig.Builder.setAdaptation(SpeechAdaptation value) Speech adaptation configuration improves the accuracy of speech recognition.RecognitionConfig.Builder.setAdaptation(SpeechAdaptation.Builder builderForValue) Speech adaptation configuration improves the accuracy of speech recognition.RecognitionConfig.Builder.setAlternativeLanguageCodes(int index, String value) A list of up to 3 additional [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags, listing possible alternative languages of the supplied audio.RecognitionConfig.Builder.setAudioChannelCount(int value) The number of channels in the input audio data.RecognitionConfig.Builder.setDiarizationConfig(SpeakerDiarizationConfig value) Config to enable speaker diarization and set additional parameters to make diarization better suited for your application.RecognitionConfig.Builder.setDiarizationConfig(SpeakerDiarizationConfig.Builder builderForValue) Config to enable speaker diarization and set additional parameters to make diarization better suited for your application.RecognitionConfig.Builder.setDiarizationSpeakerCount(int value) Deprecated.google.cloud.speech.v1p1beta1.RecognitionConfig.diarization_speaker_count is deprecated.RecognitionConfig.Builder.setEnableAutomaticPunctuation(boolean value) If 'true', adds punctuation to recognition result hypotheses.RecognitionConfig.Builder.setEnableSeparateRecognitionPerChannel(boolean value) This needs to be set to `true` explicitly and `audio_channel_count` > 1 to get each channel recognized separately.RecognitionConfig.Builder.setEnableSpeakerDiarization(boolean value) Deprecated.google.cloud.speech.v1p1beta1.RecognitionConfig.enable_speaker_diarization is deprecated.RecognitionConfig.Builder.setEnableSpokenEmojis(com.google.protobuf.BoolValue value) The spoken emoji behavior for the call If not set, uses default behavior based on model of choice If 'true', adds spoken emoji formatting for the request.RecognitionConfig.Builder.setEnableSpokenEmojis(com.google.protobuf.BoolValue.Builder builderForValue) The spoken emoji behavior for the call If not set, uses default behavior based on model of choice If 'true', adds spoken emoji formatting for the request.RecognitionConfig.Builder.setEnableSpokenPunctuation(com.google.protobuf.BoolValue value) The spoken punctuation behavior for the call If not set, uses default behavior based on model of choice e.g. command_and_search will enable spoken punctuation by default If 'true', replaces spoken punctuation with the corresponding symbols in the request.RecognitionConfig.Builder.setEnableSpokenPunctuation(com.google.protobuf.BoolValue.Builder builderForValue) The spoken punctuation behavior for the call If not set, uses default behavior based on model of choice e.g. command_and_search will enable spoken punctuation by default If 'true', replaces spoken punctuation with the corresponding symbols in the request.RecognitionConfig.Builder.setEnableWordConfidence(boolean value) If `true`, the top result includes a list of words and the confidence for those words.RecognitionConfig.Builder.setEnableWordTimeOffsets(boolean value) If `true`, the top result includes a list of words and the start and end time offsets (timestamps) for those words.RecognitionConfig.Builder.setEncoding(RecognitionConfig.AudioEncoding value) Encoding of audio data sent in all `RecognitionAudio` messages.RecognitionConfig.Builder.setEncodingValue(int value) Encoding of audio data sent in all `RecognitionAudio` messages.RecognitionConfig.Builder.setLanguageCode(String value) Required.RecognitionConfig.Builder.setLanguageCodeBytes(com.google.protobuf.ByteString value) Required.RecognitionConfig.Builder.setMaxAlternatives(int value) Maximum number of recognition hypotheses to be returned.RecognitionConfig.Builder.setMetadata(RecognitionMetadata value) Metadata regarding this request.RecognitionConfig.Builder.setMetadata(RecognitionMetadata.Builder builderForValue) Metadata regarding this request.Which model to select for the given request.RecognitionConfig.Builder.setModelBytes(com.google.protobuf.ByteString value) Which model to select for the given request.RecognitionConfig.Builder.setProfanityFilter(boolean value) If set to `true`, the server will attempt to filter out profanities, replacing all but the initial character in each filtered word with asterisks, e.g.RecognitionConfig.Builder.setSampleRateHertz(int value) Sample rate in Hertz of the audio data sent in all `RecognitionAudio` messages.RecognitionConfig.Builder.setSpeechContexts(int index, SpeechContext value) Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].RecognitionConfig.Builder.setSpeechContexts(int index, SpeechContext.Builder builderForValue) Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].RecognitionConfig.Builder.setTranscriptNormalization(TranscriptNormalization value) Optional.RecognitionConfig.Builder.setTranscriptNormalization(TranscriptNormalization.Builder builderForValue) Optional.RecognitionConfig.Builder.setUseEnhanced(boolean value) Set to true to use an enhanced model for speech recognition.RecognitionConfig.toBuilder()Methods in com.google.cloud.speech.v1p1beta1 with parameters of type RecognitionConfig.BuilderModifier and TypeMethodDescriptionLongRunningRecognizeRequest.Builder.setConfig(RecognitionConfig.Builder builderForValue) Required.RecognizeRequest.Builder.setConfig(RecognitionConfig.Builder builderForValue) Required.StreamingRecognitionConfig.Builder.setConfig(RecognitionConfig.Builder builderForValue) Required.