AudioPlayParams
Variable Description
Audio playback parameters.
Restrictions
The bitrate parameter is valid only in OPUS format, and the sampleInterval parameter is valid in both OPUS and PCM formats.
Property Field Name |
Description |
Value Range |
Default Value |
|---|---|---|---|
sampleInterval |
Audio output sampling interval. |
|
10 |
bitrate |
Audio OPUS encoding bit rate (bit/s). |
13,200 to 512,000 |
192000 |
Variable Data Definition
1 2 3 4 | struct AudioPlayParams { uint32_t sampleInterval = 10; // ms uint32_t bitrate = 192000; // The unit is bit/s. This parameter is valid only in OPUS format. } __attribute__((packed)); |
Parent topic: Configuration Parameters