RelayActionsRecordActionstopCopy page|View as Markdown|Open in Claude|More actionsStop recording immediately. The recording file becomes available. Returns dict — Server acknowledgment. Example from signalwire.relay import RelayClientclient = RelayClient( project="your-project-id", token="your-api-token", contexts=["default"],)@client.on_callasync def handle_call(call): await call.answer() action = await call.record(audio={"direction": "both", "format": "wav"}) # Stop recording early await action.stop()client.run()