resume

View as MarkdownOpen in Claude

Resume paused playback from where it was paused.

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.play(
[{"type": "audio", "params": {"url": "https://example.com/hold-music.mp3"}}],
loop=0,
)
await action.pause()
# ... do something ...
await action.resume()
client.run()