Package com.google.cloud.speech.v2
Interface DenoiserConfigOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
DenoiserConfig,DenoiserConfig.Builder
@Generated
public interface DenoiserConfigOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleanDenoise audio before sending to the transcription model.floatSignal-to-Noise Ratio (SNR) threshold for the denoiser.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDenoiseAudio
boolean getDenoiseAudio()Denoise audio before sending to the transcription model.
bool denoise_audio = 1;- Returns:
- The denoiseAudio.
-
getSnrThreshold
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:
- The snrThreshold.
-