AudioVolumeInfo
User volume information.
public class AudioVolumeInfo
{
public AudioVolumeInfo()
{
uid = 0;
volume = 0;
vad = 0;
voicePitch = 0.0;
}
public AudioVolumeInfo(uint uid, uint volume, uint vad, double voicePitch)
{
this.uid = uid;
this.volume = volume;
this.vad = vad;
this.voicePitch = voicePitch;
}
public uint uid { set; get; }
public uint volume { set; get; }
public uint vad { set; get; }
public double voicePitch { set; get; }
}
Properties
- uid
- User ID.
- In the callback for the local user,
uidis 0. - In the callback for remote users,
uidis the ID of the remote user with the highest instantaneous volume (up to 3 users).
- In the callback for the local user,
- volume
- User's volume, ranging from [0,255]. If the user mutes themselves (sets MuteLocalAudioStream to true) but audio capture is still enabled, the
volumevalue indicates the volume of the locally captured signal. - vad
-
Note:Voice activity status of the local user.
vadcannot report the voice activity 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
- Voice pitch of the local user (Hz). Value range: [0.0, 4000.0].
Note:
voicePitchcannot report the voice pitch of remote users. For remote users, the value ofvoicePitchis always 0.0.