RelayCall

denoise_stop

View as MarkdownOpen in Claude

Stop noise reduction on the call, restoring the original unfiltered audio.

Parameters

None.

Returns

dict — Server response confirming noise reduction has stopped.

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()
# Enable noise reduction
await call.denoise()
action = await call.play([{"type": "tts", "params": {"text": "Noise reduction is now active."}}])
await action.wait()
result = await call.denoise_stop()
print(f"Noise reduction stopped: {result}")
client.run()