This topic describes how to control volume using the Device-side C SDK.
1. Prerequisites
1.1. Before you begin
- This topic builds on Implement chat features with the Device-side C SDK. Before you continue, prepare the environment as described in that topic.
- This guide assumes you have integrated the SDK and the interactive voice response flow runs correctly.
1.2. Configure volume control
- Create an application in the Model Studio console.
-
Click
Skills/Instructionsand enableVolume Settings.

2. Develop client-side features
2.1. SDK directory and file structure
After you decompress the SDK package, the relevant files and directories are structured as follows.
For more information, see Device-side C SDK.
2.2. Sample code
The SDK abstracts the volume control feature into the following five events.
In a multi-modal link,
c_mm_volume_param_t.type specifies the volume type. You can typically ignore this parameter. The enumerations are as follows:The
c_mm_volume_param_t.value parameter ranges from 0 to 100. The application layer determines how this value maps to the actual device volume.If c_mm_volume_param_t.value is C_MMI_CMD_VALUE_UNDEFINED, the volume is adjusted by a default amount. The application layer determines this default amount.