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

# TTS Module Calibration API

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

## Structures

### `tts_version_t`

**Members**

<ParamField path="lib_version_low" type="uint32_t" />

<ParamField path="lib_version_high" type="uint32_t" />

### `param_id_tts_config_t`

**Members**

<ParamField path="language_code" type="uint32_t" />

<ParamField path="speech_format" type="uint32_t">
  }
</ParamField>

<ParamField path="reserved" type="uint32_t">
  }
</ParamField>

### `param_id_tts_speech_config_t`

**Members**

<ParamField path="speaker_rate_q4" type="uint32_t" />

<ParamField path="pitch" type="int32_t">
  }
</ParamField>

<ParamField path="reserved" type="uint32_t" />

### `param_id_tts_force_stop_t`

**Members**

<ParamField path="force_stop" type="uint32_t" />

### `param_id_tts_gain_config_t`

**Members**

<ParamField path="gain" type="int32_t" />

<ParamField path="reserved" type="uint32_t" />

### `tts_model_param_t`

**Members**

<ParamField path="model_align" type="uint32_t" />

<ParamField path="model_offset" type="uint32_t" />

<ParamField path="model_size" type="uint32_t" />

<ParamField path="model" type="uint8_t" />

## Type Definitions

### `tts_version_t`

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

### `TTS_SPEECH_FORMAT_t`

```cpp theme={null}
typedef enum TTS_SPEECH_FORMAT_t TTS_SPEECH_FORMAT_t
```

### `param_id_tts_config_t`

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

### `param_id_tts_speech_config_t`

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

### `param_id_tts_force_stop_t`

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

### `param_id_tts_gain_config_t`

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

### `tts_model_param_t`

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

### `TTS_LANGUAGE_CODE_t`

```cpp theme={null}
typedef enum TTS::TTS_LANGUAGE_CODE_t TTS_LANGUAGE_CODE_t
```

## Enumerations

### `TTS_SPEECH_FORMAT_t`

#### Values

| Name                | Value | Description |
| ------------------- | ----- | ----------- |
| `SPEECH_FORMAT_PCM` | =0    |             |
| `SPEECH_FORMAT_END` |       |             |

### `TTS_LANGUAGE_CODE_t`

#### Values

| Name                  | Value | Description |
| --------------------- | ----- | ----------- |
| `en_US`               | =0    |             |
| `zh_CN`               |       |             |
| `hi_IN`               |       |             |
| `es_US`               |       |             |
| `ko_KR`               |       |             |
| `ja_JP`               |       |             |
| `language_code_end_1` |       |             |

## Macros

### `TTS_RELEASE_VERSION_MAJOR`

```c theme={null}
#define TTS_RELEASE_VERSION_MAJOR 0x00000001
```

### `TTS_RELEASE_VERSION_MINOR`

```c theme={null}
#define TTS_RELEASE_VERSION_MINOR 0x00000000
```

### `PARAM_ID_TTS_VERSION`

```c theme={null}
#define PARAM_ID_TTS_VERSION 0x08001B28
```

### `PARAM_ID_TTS_CONFIG`

```c theme={null}
#define PARAM_ID_TTS_CONFIG 0x08001B25
```

### `PARAM_ID_TTS_SPEECH_CONFIG`

```c theme={null}
#define PARAM_ID_TTS_SPEECH_CONFIG 0x08001B26
```

### `PARAM_ID_TTS_FORCE_STOP`

```c theme={null}
#define PARAM_ID_TTS_FORCE_STOP 0x08001B2A
```

### `PARAM_ID_TTS_GAIN_CONFIG`

```c theme={null}
#define PARAM_ID_TTS_GAIN_CONFIG 0x08001B27
```

### `PARAM_ID_TTS_MODEL`

```c theme={null}
#define PARAM_ID_TTS_MODEL 0x08001B29
```

### `MODULE_ID_TTS`

```c theme={null}
#define MODULE_ID_TTS 0x0702C001
```
