stop

View as MarkdownOpen in Claude

Stop media interception.

Returns

dict — Server acknowledgment.

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()
action = await call.tap(
tap={"type": "audio", "params": {"direction": "both"}},
device={"type": "ws", "params": {"uri": "wss://example.com/tap"}},
)
# Stop the tap when done
await action.stop()
client.run()