# ed music volume

> Sets the active player's volume as a fraction from 0 to 1.

- Canonical URL: https://getedith.pro/docs/cli/music/volume
- Updated: 2026-12-02

Sets the active player's volume as a fraction from 0 to 1.

```
ed music volume <level> [--json] [--player <name>]
```

| Name | Type / values | Default | What it does |
| --- | --- | --- | --- |
| `level` | number from 0 to 1 | required | The volume to set, as a fraction. |
| `--json` | flag | off | Emit JSON on stdout. |
| `--player` | `builtin`, `spotify`, `apple` | whichever is active | Force one player. |

```json
{
  "action": "volume set",
  "name": "Spotify",
  "player": "spotify"
}
```

```
ed music volume 0.4
ed music volume 1 --player spotify
ed music volume 0.25 --json
```

The level is checked before anything is sent: outside 0 to 1 exits 2 with
`volume must be between 0 and 1`, and a value that is not a number exits 2 as a
parse failure. Spotify and Apple Music take a percentage, so the fraction is
multiplied by 100 and rounded on the way out and divided by 100 on the way back
in `status`. The JSON reports only what was done and to whom; read the level
back with `ed music status --json`.

## Where to go next

- [`ed music`](https://getedith.pro/docs/cli/music), the rest of this group
- [All `ed` commands](https://getedith.pro/docs/cli)

## Get Edith

Edith is a native Mac app for macOS 14 or later on Apple silicon with 100+ extensions, the `ed` command line and an MCP server. $35 once for one Mac, plus $7 for each additional Mac, with no subscription and a 30-day refund.

- [Buy Edith](https://getedith.pro/pricing): $35 once for one Mac, plus $7 for each additional Mac
- [Download Edith](https://getedith.pro/download): the installer, or Homebrew
