resume

View as MarkdownOpen in Claude

Resume a paused recording.

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.record(audio={"direction": "both", "format": "wav"})
await action.pause()
# ... sensitive exchange ...
await action.resume()
event = await action.wait()
print(f"Recording URL: {event.params.get('record', {}).get('url')}")
client.run()