AudioVolumeInfo
User volume information.
export class AudioVolumeInfo {
uid?: number;
volume?: number;
vad?: number;
voicePitch?: number;
}
Properties
- uid
- User ID.
- In the local user callback,
uidis 0. - In the remote user callback,
uidis the ID of the remote user (up to 3) with the highest instantaneous volume.
- In the local user callback,
- volume
- User volume, range [0,255]. If the user mutes themselves (sets muteLocalAudioStream to true) but enables audio capture, the
volumevalue indicates the volume of the locally captured signal. - vad
-
Note:Local user's voice activity status.
vadcannot report the voice status of remote users. 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's voice pitch (Hz). Value range: [0.0,4000.0].
Note:
voicePitchcannot report the pitch of remote users. For remote users, the value ofvoicePitchis always 0.0.