Skip to content

Commit

Permalink
Add enable_volume_normalisation option
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkMatterMatt committed Apr 6, 2024
1 parent a1f0d43 commit 3e012bb
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spotify/DOCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ name: HomeAssistant
bitrate: 320
username: [email protected]
password: MySpotifyPassword
enable_volume_normalisation: false
```
**Note**: _This is just an example, don't copy and paste it! Create your own!_
Expand Down Expand Up @@ -88,6 +89,10 @@ to disallow guests on your network to use the add-on.

The password you use to login to your Spotify Premium account.

### Option: `enable_volume_normalisation`

Whether to enable volume normalisation. For more info see the [librespot documentation][librespot-volume-normalisation].

## Known issues and limitations

- This add-on requires a Spotify Premium account.
Expand Down Expand Up @@ -159,6 +164,7 @@ SOFTWARE.
[forum]: https://community.home-assistant.io/t/home-assistant-community-add-on-spotify-connect/61210?u=frenck
[frenck]: https://github.com/frenck
[issue]: https://github.com/hassio-addons/addon-spotify-connect/issues
[librespot-volume-normalisation]: https://github.com/librespot-org/librespot/wiki/Options#volume-normalisation
[reddit]: https://reddit.com/r/homeassistant
[releases]: https://github.com/hassio-addons/addon-spotify-connect/releases
[semver]: http://semver.org/spec/v2.0.0.htm
1 change: 1 addition & 0 deletions spotify/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ schema:
bitrate: list(96|160|320)
username: str?
password: password?
enable_volume_normalisation: bool?
5 changes: 5 additions & 0 deletions spotify/rootfs/etc/services.d/spotifyd/run
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ if bashio::config.has_value 'username'; then
options+=(--password "${password}")
fi

# Volume Normalisation
if bashio::config.true 'enable_volume_normalisation'; then
options+=(--enable-volume-normalisation)
fi

# Save writes
options+=(--disable-audio-cache)

Expand Down
4 changes: 4 additions & 0 deletions spotify/translations/en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,7 @@ configuration:
name: Spotify password
description: >-
The password to log into your Spotify Premium account with.
enable_volume_normalisation:
name: Enable volume normalisation
description: >-
Whether to enable volume normalisation.

0 comments on commit 3e012bb

Please sign in to comment.