> This page is for SWML.

> Fetch clean Markdown by appending `.md` to any page URL under https://signalwire.com/docs or requesting it with the HTTP header `Accept: text/markdown`. The root index at https://signalwire.com/docs/llms.txt lists the available documentation indexes.

# stop_stream

> Stop an active audio stream.

Stop an audio stream started with [`stream`](/docs/swml/reference/calling/stream). By default it stops the most recently started stream; pass a `control_id` to stop a specific one.

## **Properties**

**`stop_stream`** `object` — required

An object that accepts the following properties.

---

**`stop_stream.control_id`** `string` — default: The most recently started stream is stopped

The control ID of the stream to stop, as assigned when you started it with `stream`.

---

## **Variables**

**`stream_control_id`** `string`

Read by the method. Control ID of the most recently started stream.

---

**`stop_stream_result`** `success | failed`

Set by the method. `success` means the request to stop the stream was accepted; `failed` means the request failed, or there was no stream to stop. A successful request doesn't confirm that the stream has finished.

---

## **Examples**

### Stop the last stream

#### YAML

```yaml
version: 1.0.0
sections:
  main:
    - stop_stream: {}
```

#### JSON

```json
{
  "version": "1.0.0",
  "sections": {
    "main": [
      {
        "stop_stream": {}
      }
    ]
  }
}
```

### Stop a specific stream

#### YAML

```yaml
version: 1.0.0
sections:
  main:
    - stop_stream:
        control_id: my-stream-id
```

#### JSON

```json
{
  "version": "1.0.0",
  "sections": {
    "main": [
      {
        "stop_stream": {
          "control_id": "my-stream-id"
        }
      }
    ]
  }
}
```