RELAYActionsRecordActionstopCopy page|View as Markdown|Open in Claude|More actionsStop recording immediately. The recording file becomes available. Returns dict — Server acknowledgment. Example 1from signalwire.relay import RelayClient23client = RelayClient(4 project="your-project-id",5 token="your-api-token",6 host="your-space.signalwire.com",7 contexts=["default"],8)910@client.on_call11async def handle_call(call):12 await call.answer()13 action = await call.record(audio={"direction": "both", "format": "wav"})1415 # Stop recording early16 await action.stop()1718client.run()