denoise

View as MarkdownOpen in Claude

Start noise reduction on the call. Filters background noise from the audio to improve clarity.

Use denoiseStop() to disable noise reduction.

This method emits calling.call.denoise events. See Call Events for payload details.

Parameters

None.

Returns

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

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 const result = await call.denoise();
13 console.log(`Noise reduction started: ${JSON.stringify(result)}`);
14
15 const action = await call.play([{ type: 'tts', text: 'Noise reduction is now active.' }]);
16 await action.wait();
17});
18
19await client.run();