start_input_timers

View as MarkdownOpen in Claude

Manually start the initial_timeout timer on the active collect operation. Useful when start_input_timers was set to False during the initial call.

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.collect(
14 speech={"end_silence_timeout": 2.0},
15 initial_timeout=10.0,
16 start_input_timers=False,
17 )
18
19 # Start timers when ready
20 await action.start_input_timers()
21
22 event = await action.wait()
23
24client.run()