I tried to get the audio level using the Vivox library which provides voice chat functionality, but I was unable to get any values.
In the sample code of Vivox, I added the following code in VivoxVoiceManager.cs to constantly monitor the value, but it did not change:
private void Update()
{
VivoxLogError($"Voice Level: {AudioInputDevices.DeviceEnergy}");
}
How can I make this variable functional?
Here is the English translation for the additional code snippet:
ChannelSession.Participants.AfterValueUpdated += OnParticipantValueUpdated;
This allows me to get the audio level, but the interval for getting the value seems long. I want to get the value at as short an interval as possible.