public sealed class DenoiserConfig : IMessage<DenoiserConfig>, IEquatable<DenoiserConfig>, IDeepCloneable<DenoiserConfig>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Speech-to-Text v2 API class DenoiserConfig.
Denoiser config. May not be supported for all models and may have no effect.
Implements
IMessageDenoiserConfig, IEquatableDenoiserConfig, IDeepCloneableDenoiserConfig, IBufferMessage, IMessageNamespace
Google.Cloud.Speech.V2Assembly
Google.Cloud.Speech.V2.dll
Constructors
DenoiserConfig()
public DenoiserConfig()
DenoiserConfig(DenoiserConfig)
public DenoiserConfig(DenoiserConfig other)
Parameter | |
---|---|
Name | Description |
other |
DenoiserConfig |
Properties
DenoiseAudio
public bool DenoiseAudio { get; set; }
Denoise audio before sending to the transcription model.
Property Value | |
---|---|
Type | Description |
bool |
SnrThreshold
public float SnrThreshold { get; set; }
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.
Property Value | |
---|---|
Type | Description |
float |