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

from signalwire.relay import RelayClient
client = RelayClient(
project="your-project-id",
token="your-api-token",
contexts=["default"],
)
@client.on_call
async def handle_call(call):
await call.answer()
result = await call.denoise()
print(f"Noise reduction started: {result}")
action = await call.play([{"type": "tts", "params": {"text": "Noise reduction is now active."}}])
await action.wait()
client.run()