AudioVolumeInfo
User volume information.
export class AudioVolumeInfo {
uid?: number;
volume?: number;
vad?: number;
voicePitch?: number;
}
Properties
- uid
- User ID.
- In local user callbacks,
uidis 0. - In remote user callbacks,
uidis the ID of the remote user with the highest instantaneous volume (up to 3 users).
- In local user callbacks,
- volume
- User volume, ranging from [0, 255]. If the user mutes themselves (muteLocalAudioStream is set to true) but audio capture is enabled,
volumerepresents the volume of the local captured signal. - vad
-
Note:Local user voice activity status.
vaddoes not report remote user voice activity. For remote users, the value ofvadis always 1.- To use this parameter, set
reportVadto true when calling enableAudioVolumeIndication.
- 0: No voice detected locally.
- 1: Voice detected locally.
- voicePitch
- Local user voice pitch (Hz). Value range: [0.0, 4000.0].
Note:
voicePitchdoes not report remote user pitch. For remote users, the value ofvoicePitchis always 0.0.