This command is used to control the playback of sound files. The size of a sound file cannot exceed 500 KB, and the duration cannot exceed 10 seconds.
Parameter | Type | Mandatory | Description |
|---|---|---|---|
sound | String | Yes | Sound file path. |
volume | Number | Yes | Sound volume. The value is a floating point number ranging from 0 to 1. A larger value indicates a higher volume. |
loop | String | No | Indicates whether to enable loop playback. The options are true (yes) and false (no). The default value is false. |
keepCur | String | No | Indicates whether to retain the current sound when a sound file is played. The options are true (yes) and false (no). The default value is false. The sound file with a lower priority is paused only when the number of sound files played at the same time is greater than the maximum. |