stop
Stop the collect operation.
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.collect(speech={"end_silence_timeout": 2.0},initial_timeout=10.0,start_input_timers=False,)# Stop the collect operationawait action.stop()client.run()