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.
Parameters | |
---|---|
Name | Description |
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.
Returns | |
---|---|
Type | Description |
bool |
setDenoiseAudio
Denoise audio before sending to the transcription model.
Parameter | |
---|---|
Name | Description |
var |
bool
|
Returns | |
---|---|
Type | Description |
$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.
Returns | |
---|---|
Type | Description |
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.
Parameter | |
---|---|
Name | Description |
var |
float
|
Returns | |
---|---|
Type | Description |
$this |