05-27-2022 11:54 PM
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?
05-29-2022 07:29 AM
any help in this regard.
05-30-2022 12:03 AM
Is there option to always ON noise cancellation?
06-02-2022 04:39 AM - edited 06-02-2022 10:29 PM
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);
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: