Microphone activity event

Microphone activity event

Measuring microphone activity can be useful in many cases. For example, in case of audio conference it lets developer highlight conference participant who is talking at the moment, or another useful scenario example - measuring call participant's speech length. Now VoxImplant developers can detect microphone activity at VoxEngine scenarios level, we've implement new method for Call class - handleMicStatus , set handle to true and then use new CallEvents.MicStatusChange event to receive the information about microphone activity. Please check the usage example below:

// Inbound call processing
VoxEngine.addEventListener(AppEvents.CallAlerting, e => {
  const call = e.call;
  // Enable mic status tracking
  call.addEventListener(CallEvents.Connected, e => {
    Logger.write("Call connected");
  // Add event listener for mic activity events
  call.addEventListener(CallEvents.MicStatusChange, e => {
    // Write mic activity info into log file
    Logger.write("Mic active: " + e.active);
B6A24216-9891-45D1-9D1D-E7359CEB8282 Created with sketchtool.


Add your comment

Please complete this field.


Sign up for a free Voximplant developer account or talk to our experts