# vx_req_aux_set_vad_properties

> Reference the Vivox Core SDK API.

**Module:** **[Audio Devices](./group__devices.md)**

Set the connector VAD (Voice Activity Detector) properties.  [More...](#detailed-description)

`#include <VxcRequests.h>`

## Public Attributes

|                                                        | Name                                                                                                                                                                                                                                          |
| ------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [vx\_req\_base\_t](./_vxc_8h.md#typedef-vx_req_base_t) | **[base](./structvx__req__aux__set__vad__properties.md#variable-base)** The common properties for all requests.                                                                                                                               |
| int                                                    | **[vad\_hangover](./structvx__req__aux__set__vad__properties.md#variable-vad_hangover)** The time in milliseconds that it takes for the VAD to switch back to silence from speech mode after the last speech frame has been detected.         |
| int                                                    | **[vad\_sensitivity](./structvx__req__aux__set__vad__properties.md#variable-vad_sensitivity)** A dimensionless value between 0 and 100 that indicates the sensitivity of the VAD.                                                             |
| int                                                    | **[vad\_noise\_floor](./structvx__req__aux__set__vad__properties.md#variable-vad_noise_floor)** A dimensionless value between 0 and 20000 that controls the maximum level at which the noise floor can be set to by the VAD's noise tracking. |
| int                                                    | **[vad\_auto](./structvx__req__aux__set__vad__properties.md#variable-vad_auto)** VAD automatic parameter selection.                                                                                                                           |
| [VX\_HANDLE](./_vxc_8h.md#typedef-vx_handle)           | **[account\_handle](./structvx__req__aux__set__vad__properties.md#variable-account_handle)** An optional parameter that specifies the account handle of the user whose connector VAD properties will be set.                                  |

## Detailed Description

```cpp
struct vx_req_aux_set_vad_properties;
```

Set the connector VAD (Voice Activity Detector) properties.

The following properties update when capture audio is active:

* vad\_hangover
* vad\_sensitivity
* vad\_auto The vad\_noise\_floor property requires capture audio restart to update (for example, the update occurs after rejoining a voice channel). [vx\_req\_aux\_set\_vad\_properties](./structvx__req__aux__set__vad__properties.md)

## Public Attributes Documentation

### variable base

```cpp
vx_req_base_t base;
```

The common properties for all requests.

### variable vad\_hangover

```cpp
int vad_hangover;
```

The time in milliseconds that it takes for the VAD to switch back to silence from speech mode after the last speech frame has been detected.

### variable vad\_sensitivity

```cpp
int vad_sensitivity;
```

A dimensionless value between 0 and 100 that indicates the sensitivity of the VAD.

Increasing this value corresponds to decreasing the sensitivity of the VAD. 0 is the most sensitive, and 100 is the least sensitive.

### variable vad\_noise\_floor

```cpp
int vad_noise_floor;
```

A dimensionless value between 0 and 20000 that controls the maximum level at which the noise floor can be set to by the VAD's noise tracking.

The default value is 576. Too low of a value can make noise tracking ineffective. A value of 0 disables noise tracking, at which point the VAD must rely only on the sensitivity property. Too high of a value can make long speech classifiable as noise.

### variable vad\_auto

```cpp
int vad_auto;
```

VAD automatic parameter selection.

If this mode is 1 (enabled), then vad\_hangover, vad\_sensitivity, and vad\_noise\_floor are ignored, and the VAD automatically optimizes parameters.

### variable account\_handle

```cpp
VX_HANDLE account_handle;
```

An optional parameter that specifies the account handle of the user whose connector VAD properties will be set.

This must either be unset or the account\_handle that was passed in to a [vx\_req\_account\_anonymous\_login](./structvx__req__account__anonymous__login.md) request that previously succeeded. If unset, the default account\_handle is used.
