Server SDKs
Build AI agents, control calls, send messages, and more
Stop noise reduction on the call, restoring the original unfiltered audio.
None.
Promise<Record<string, unknown>> — Server response confirming noise reduction has stopped.
Promise<Record<string, unknown>>
1import { RelayClient } from '@signalwire/sdk';23const client = new RelayClient({4 project: process.env.SIGNALWIRE_PROJECT_ID!,5 token: process.env.SIGNALWIRE_API_TOKEN!,6 contexts: ['default']7});89client.onCall(async (call) => {10 await call.answer();1112 // Enable noise reduction13 await call.denoise();1415 const action = await call.play([{ type: 'tts', text: 'Noise reduction is now active.' }]);16 await action.wait();1718 const result = await call.denoiseStop();19 console.log(`Noise reduction stopped: ${JSON.stringify(result)}`);20});2122await client.run();