# Cloud Speech V2 Client - Class DenoiserConfig (2.5.1)

2.5.1 (latest) 2.5.0 2.4.0 2.3.0 2.2.1 2.1.1 2.0.1 1.20.1 1.19.2 1.18.3 1.16.0 1.15.0 1.14.3 1.13.1 1.12.0 1.11.2 1.10.0 1.9.1 1.8.0 1.7.0 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 \\ V2

## Methods

### __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` |   |