denoiseStop

View as MarkdownOpen in Claude

Stop noise reduction on the call, restoring the original unfiltered audio.

Parameters

None.

Returns

Promise<Record<string, unknown>> — Server response confirming noise reduction has stopped.

Example

import { RelayClient } from '@signalwire/sdk';
const client = new RelayClient({
project: process.env.SIGNALWIRE_PROJECT_ID!,
token: process.env.SIGNALWIRE_API_TOKEN!,
contexts: ['default']
});
client.onCall(async (call) => {
await call.answer();
// Enable noise reduction
await call.denoise();
const action = await call.play([{ type: 'tts', text: 'Noise reduction is now active.' }]);
await action.wait();
const result = await call.denoiseStop();
console.log(`Noise reduction stopped: ${JSON.stringify(result)}`);
});
await client.run();