resume

View as MarkdownOpen in Claude

Resume a paused recording.

Returns

dict — Server acknowledgment.

Example

1from signalwire.relay import RelayClient
2
3client = RelayClient(
4 project="your-project-id",
5 token="your-api-token",
6 host="your-space.signalwire.com",
7 contexts=["default"],
8)
9
10@client.on_call
11async def handle_call(call):
12 await call.answer()
13 action = await call.record(audio={"direction": "both", "format": "wav"})
14
15 await action.pause()
16 # ... sensitive exchange ...
17 await action.resume()
18
19 event = await action.wait()
20 print(f"Recording URL: {event.params.get('record', {}).get('url')}")
21
22client.run()