Send feedback
Class DenoiserConfig.Builder (4.62.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version latestkeyboard_arrow_down
public static final class DenoiserConfig . Builder extends GeneratedMessageV3 . Builder<DenoiserConfig . Builder > implements DenoiserConfigOrBuilder
Denoiser config. May not be supported for all models and may
have no effect.
Protobuf type google.cloud.speech.v2.DenoiserConfig
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DenoiserConfig . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public DenoiserConfig build ()
buildPartial()
public DenoiserConfig buildPartial ()
clear()
public DenoiserConfig . Builder clear ()
Overrides
clearDenoiseAudio()
public DenoiserConfig . Builder clearDenoiseAudio ()
Denoise audio before sending to the transcription model.
bool denoise_audio = 1;
clearField(Descriptors.FieldDescriptor field)
public DenoiserConfig . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public DenoiserConfig . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clearSnrThreshold()
public DenoiserConfig . Builder clearSnrThreshold ()
Signal-to-Noise Ratio (SNR) threshold for the denoiser. Here SNR means the
loudness of the speech signal. Audio with an SNR below this threshold,
meaning the speech is too quiet, will be prevented from being sent to the
transcription model.
If snr_threshold=0, no filtering will be applied.
float snr_threshold = 2;
clone()
public DenoiserConfig . Builder clone ()
Overrides
getDefaultInstanceForType()
public DenoiserConfig getDefaultInstanceForType ()
getDenoiseAudio()
public boolean getDenoiseAudio ()
Denoise audio before sending to the transcription model.
bool denoise_audio = 1;
Returns
Type
Description
boolean
The denoiseAudio.
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
getSnrThreshold()
public float getSnrThreshold ()
Signal-to-Noise Ratio (SNR) threshold for the denoiser. Here SNR means the
loudness of the speech signal. Audio with an SNR below this threshold,
meaning the speech is too quiet, will be prevented from being sent to the
transcription model.
If snr_threshold=0, no filtering will be applied.
float snr_threshold = 2;
Returns
Type
Description
float
The snrThreshold.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(DenoiserConfig other)
public DenoiserConfig . Builder mergeFrom ( DenoiserConfig other )
public DenoiserConfig . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public DenoiserConfig . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DenoiserConfig . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setDenoiseAudio(boolean value)
public DenoiserConfig . Builder setDenoiseAudio ( boolean value )
Denoise audio before sending to the transcription model.
bool denoise_audio = 1;
Parameter
Name
Description
value
boolean
The denoiseAudio to set.
setField(Descriptors.FieldDescriptor field, Object value)
public DenoiserConfig . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DenoiserConfig . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setSnrThreshold(float value)
public DenoiserConfig . Builder setSnrThreshold ( float value )
Signal-to-Noise Ratio (SNR) threshold for the denoiser. Here SNR means the
loudness of the speech signal. Audio with an SNR below this threshold,
meaning the speech is too quiet, will be prevented from being sent to the
transcription model.
If snr_threshold=0, no filtering will be applied.
float snr_threshold = 2;
Parameter
Name
Description
value
float
The snrThreshold to set.
setUnknownFields(UnknownFieldSet unknownFields)
public final DenoiserConfig . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-02 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-02 UTC."],[],[]]