RelayActionsStreamAction
stop
Stop audio streaming.
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.stream(url="wss://example.com/audio-stream",track="inbound",)# Stop the stream when doneawait action.stop()client.run()