> ## Documentation Index
> Fetch the complete documentation index at: https://dragonwingdocs.qualcomm.com/llms.txt
> Use this file to discover all available pages before exploring further.

# VAD API

> This file contains CAPI VAD module APIs.

**Header:** `spf/api/modules/vad_api.h`

## Structures

### `param_id_vad_static_cfg_t`

**Members**

**num\_channel\_processing** `int32_t`

**conf\_change** `int32_t`

**mic\_gain** `int16_t`

**reserved** `int16_t`

### `param_id_vad_context_ml_model_config_t`

**Members**

**model\_align** `uint32_t`

**model\_offset** `uint32_t`

**model\_size** `uint32_t`

**model** `uint8_t`

### `capi_vad_context_threshold_struct_t`

**Members**

**context\_id** `uint32_t`

Context\_id is indepedent of mode\_bit and usecase designer has to tune this based on model which is being set from application}

**threshold** `uint32_t`

### `param_id_vad_context_threshold_t`

**Members**

**num\_contexts** `uint32_t`

### `param_id_vad_speech_dynamic_config_t`

**Members**

**len\_hangover\_speech** `uint32_t`

**max\_conf\_frames\_speech** `uint32_t`

**min\_conf\_frames\_speech** `uint32_t`

### `param_id_vad_enable_speech_reset_t`

**Members**

**enable\_reset** `int32_t`

### `param_id_vad_speech_reset_period_t`

**Members**

**speech\_reset\_period\_in\_ms** `int32_t`

### `param_id_vad_pre_roll_duration_t`

**Members**

**pre\_roll\_history\_buffer\_size\_in\_ms** `uint32_t`

## Type Definitions

### `param_id_vad_static_cfg_t`

```cpp theme={null}
typedef struct param_id_vad_static_cfg_t param_id_vad_static_cfg_t
```

### `param_id_vad_context_ml_model_config_t`

```cpp theme={null}
typedef struct param_id_vad_context_ml_model_config_t param_id_vad_context_ml_model_config_t
```

### `capi_vad_context_threshold_struct_t`

```cpp theme={null}
typedef struct capi_vad_context_threshold_struct_t capi_vad_context_threshold_struct_t
```

### `param_id_vad_context_threshold_t`

```cpp theme={null}
typedef struct param_id_vad_context_threshold_t param_id_vad_context_threshold_t
```

### `param_id_vad_speech_dynamic_config_t`

```cpp theme={null}
typedef struct param_id_vad_speech_dynamic_config_t param_id_vad_speech_dynamic_config_t
```

### `param_id_vad_enable_speech_reset_t`

```cpp theme={null}
typedef struct param_id_vad_enable_speech_reset_t param_id_vad_enable_speech_reset_t
```

### `param_id_vad_speech_reset_period_t`

```cpp theme={null}
typedef struct param_id_vad_speech_reset_period_t param_id_vad_speech_reset_period_t
```

### `param_id_vad_pre_roll_duration_t`

```cpp theme={null}
typedef struct param_id_vad_pre_roll_duration_t param_id_vad_pre_roll_duration_t
```

## Macros

### `PARAM_ID_VAD_STATIC_CFG`

```c theme={null}
#define PARAM_ID_VAD_STATIC_CFG 0x08001BE2
```

### `PARAM_ID_VAD_CONTEXT_ML_MODEL_CONFIG`

```c theme={null}
#define PARAM_ID_VAD_CONTEXT_ML_MODEL_CONFIG 0x08001BEA
```

### `PARAM_ID_VAD_CONTEXT_THRESHOLD`

```c theme={null}
#define PARAM_ID_VAD_CONTEXT_THRESHOLD 0x08001BE3
```

### `PARAM_ID_VAD_SPEECH_DYNAMIC_CONFIG`

```c theme={null}
#define PARAM_ID_VAD_SPEECH_DYNAMIC_CONFIG 0x08001BE4
```

### `PARAM_ID_VAD_ENABLE_SPEECH_RESET`

```c theme={null}
#define PARAM_ID_VAD_ENABLE_SPEECH_RESET 0x08001BE5
```

### `PARAM_ID_VAD_SPEECH_RESET_PERIOD`

```c theme={null}
#define PARAM_ID_VAD_SPEECH_RESET_PERIOD 0x08001BE6
```

### `PARAM_ID_VAD_PRE_ROLL_DURATION`

```c theme={null}
#define PARAM_ID_VAD_PRE_ROLL_DURATION 0x08001BE7
```

### `VAD_RELEASE_VERSION_MSB`

```c theme={null}
#define VAD_RELEASE_VERSION_MSB AR_NON_GUID(0x01000100)
```

### `VAD_RELEASE_VERSION_LSB`

```c theme={null}
#define VAD_RELEASE_VERSION_LSB AR_NON_GUID(0x00000000)
```

### `CAPI_VAD_MAX_INPUT_PORTS`

```c theme={null}
#define CAPI_VAD_MAX_INPUT_PORTS 1
```

### `CAPI_VAD_MAX_OUTPUT_PORTS`

```c theme={null}
#define CAPI_VAD_MAX_OUTPUT_PORTS 0
```

### `CAPI_VAD_STACK_SIZE_REQUIREMENT`

```c theme={null}
#define CAPI_VAD_STACK_SIZE_REQUIREMENT 8192
```

### `MODULE_ID_VAD`

```c theme={null}
#define MODULE_ID_VAD 0x07001188
```
