Reference documentation and code samples for the Cloud Speech V2 Client class DenoiserConfig.
Denoiser config. May not be supported for all models and may have no effect.
Generated from protobuf message google.cloud.speech.v2.DenoiserConfig
Namespace
Google \ Cloud \ Speech \ V2Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ denoise_audio
bool
Denoise audio before sending to the transcription model.
↳ snr_threshold
float
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.
getDenoiseAudio
Denoise audio before sending to the transcription model.
bool
setDenoiseAudio
Denoise audio before sending to the transcription model.
var
bool
$this
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
setSnrThreshold
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.
var
float
$this