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

1import { RelayClient } from '@signalwire/sdk';
2
3const client = new RelayClient({
4 project: process.env.SIGNALWIRE_PROJECT_ID!,
5 token: process.env.SIGNALWIRE_TOKEN!,
6 contexts: ['default']
7});
8
9client.onCall(async (call) => {
10 await call.answer();
11
12 // Enable noise reduction
13 await call.denoise();
14
15 const action = await call.play([{ type: 'tts', text: 'Noise reduction is now active.' }]);
16 await action.wait();
17
18 const result = await call.denoiseStop();
19 console.log(`Noise reduction stopped: ${JSON.stringify(result)}`);
20});
21
22await client.run();