stop
Stop detection immediately.
Returns
dict — Server acknowledgment.
Stop detection immediately.
dict — Server acknowledgment.
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.detect({"type": "machine", "params": {"initial_timeout": 5.0}})# Stop detection earlyawait action.stop()client.run()