> ## Documentation Index
> Fetch the complete documentation index at: https://assemblyai.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Output volume

> Set how loud a voice agent's speech plays back.

Control how loud the agent's speech plays with `output.volume`. Set it when you [create](https://assemblyai.com/docs/voice-agents/voice-agent-api/create-agent.md) or [update](https://assemblyai.com/docs/voice-agents/voice-agent-api/manage-agents.md) the agent, or inline over the WebSocket via [`session.update`](https://assemblyai.com/docs/voice-agents/voice-agent-api/session-configuration).

Accepts a number from `0` (silent) to `100` (loudest). If omitted, the voice plays at its native level.

```bash cURL {3} theme={null}
curl -X PUT https://agents.assemblyai.com/v1/agents/$AGENT_ID \
  -H "Authorization: $ASSEMBLYAI_API_KEY" -H "Content-Type: application/json" \
  -d '{ "output": { "volume": 60 } }'
```

```python Python {8} theme={null}
# pip install requests
import os
import requests

resp = requests.put(
    f"https://agents.assemblyai.com/v1/agents/{os.environ['AGENT_ID']}",
    headers={"Authorization": os.environ["ASSEMBLYAI_API_KEY"]},
    json={"output": {"volume": 60}},
)
resp.raise_for_status()
print(resp.json())
```

```javascript Node.js {10} theme={null}
// Node 18+ has fetch built in
const res = await fetch(
  `https://agents.assemblyai.com/v1/agents/${process.env.AGENT_ID}`,
  {
    method: "PUT",
    headers: {
      Authorization: process.env.ASSEMBLYAI_API_KEY,
      "Content-Type": "application/json",
    },
    body: JSON.stringify({ output: { volume: 60 } }),
  },
);
const data = await res.json();
console.log(data);
```

| Field | Type | Required | Notes |
| - | - | - | - |
| `output.volume` | number \| null | No | `0` (silent) to `100` (loudest). `null` plays at native level. |

> [!NOTE]
>
> Unlike `output.voice` and `output.format`, which are **immutable** after `session.ready`, `output.volume` can be changed mid-session via [`session.update`](https://assemblyai.com/docs/voice-agents/voice-agent-api/session-configuration#mutability-after-session-ready). The new value applies to subsequent `reply.audio` chunks.
