RELAYCall

denoise

View as MarkdownOpen in Claude

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

Use denoise_stop() to disable noise reduction.

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

Parameters

None.

Returns

dict — Server response confirming noise reduction has started.

Example

1from signalwire.relay import RelayClient
2
3client = RelayClient(
4 project="your-project-id",
5 token="your-api-token",
6 host="your-space.signalwire.com",
7 contexts=["default"],
8)
9
10@client.on_call
11async def handle_call(call):
12 await call.answer()
13
14 result = await call.denoise()
15 print(f"Noise reduction started: {result}")
16
17 action = await call.play([{"type": "tts", "text": "Noise reduction is now active."}])
18 await action.wait()
19
20client.run()