cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
542
Views
0
Helpful
3
Replies

webex codec pro: need to select noise cancellation automatically

jaheshkhan
Level 4
Level 4

client called today that when they are making call in webex codec pro and webex codec plus , they need to manually select noise cancellation for every call they make. 

They need noise cancellation to be selected automatically for every call they initiate instead of manual intervention.

 

How can this be achieved?

3 Replies 3

jaheshkhan
Level 4
Level 4

any help in this regard.

jaheshkhan
Level 4
Level 4

Is there option to always ON noise cancellation?

There is no native option for this, however you can have a macro running on the unit that automagically turns on noise cancellation anytime it is in a call.

 

// Checks for Noise Removal Mode and sets as Manual mode if not already. 
// It activates the feature once call is successful and deactivate once disconnected. 

import xapi from 'xapi';

async function ActivateNoiseRemoval(){
const NoiseRemovalValue = await xapi.Config.Audio.Microphones.NoiseRemoval.Mode.get()

if (NoiseRemovalValue == 'Enabled'){
	console.log("Noise Removal mode is Enabled, setting to Manual");
		await xapi.Config.Audio.Microphones.NoiseRemoval.Mode.set("Manual");
		await xapi.Command.Audio.Microphones.NoiseRemoval.Activate();
		}
else if (NoiseRemovalValue == 'Manual'){
	await xapi.Command.Audio.Microphones.NoiseRemoval.Activate();
	}
else if (NoiseRemovalValue == 'Disabled'){
	console.log("Noise Removal mode is Disabled, setting to Manual");
		await xapi.Config.Audio.Microphones.NoiseRemoval.Mode.set("Manual");
		await xapi.Command.Audio.Microphones.NoiseRemoval.Activate();
		}
else{
	console.log("Unable to identify Noise Removal Mode.");
	xapi.close();
	}
}

async function DeactivateNoiseRemoval(){
const NoiseRemovalValue = await xapi.Config.Audio.Microphones.NoiseRemoval.Mode.get()

if (NoiseRemovalValue == 'Enabled'){
	console.log("Noise Removal mode is Enabled, setting to Manual");
		await xapi.Config.Audio.Microphones.NoiseRemoval.Mode.set("Manual");
		await xapi.Command.Audio.Microphones.NoiseRemoval.Deactivate();
		}
else if (NoiseRemovalValue == 'Manual'){
	await xapi.Command.Audio.Microphones.NoiseRemoval.Deactivate();
	}
else if (NoiseRemovalValue == 'Disabled'){
	console.log("Noise Removal mode is Disabled, setting to Manual");
		await xapi.Config.Audio.Microphones.NoiseRemoval.Mode.set("Manual");
		await xapi.Command.Audio.Microphones.NoiseRemoval.Deactivate();
		}
else{
	console.log("Unable to identify Noise Removal Mode.");
	xapi.close();
	}
}

xapi.event.on('CallSuccessful', ActivateNoiseRemoval); 
xapi.event.on('CallDisconnect', DeactivateNoiseRemoval);

 



Response Signature


Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: