spotifyd-docker/README.md

35 lines
1.4 KiB
Markdown
Raw Normal View History

2022-02-05 23:52:44 +00:00
# Spotifyd docker
2022-02-06 22:35:47 +00:00
[Repo](https://git.kapelle.org/niklas/spotifyd-docker)
[Docker Hub](https://hub.docker.com/r/djeeberjr/spotifyd)
2022-02-05 23:52:44 +00:00
Run [spotifyd](https://github.com/Spotifyd/spotifyd) inside docker. Inspired by [GnaphronG/docker-spotifyd](https://github.com/GnaphronG/docker-spotifyd).
# Setup
2022-02-06 22:35:47 +00:00
You need to add the `/dev/snd` to the container.
If the container starts successfully and you still hear no audio then the audio output may be disabled in alsa. In that case you can open bash inside your container and run `alsamixer`. There you can unmute the master. When it comes to alsa i recommend reading the [ArchWiki](https://wiki.archlinux.org/title/Advanced_Linux_Sound_Architecture) on this topic.
2022-02-05 23:52:44 +00:00
Check out the `docker-compose.yml` for an example.
# Configuration
2022-02-06 22:35:47 +00:00
Following variables are available. See the [spotifyd doc](https://spotifyd.github.io/spotifyd/config/File.html) for more information.
`USERNAME` Required. Spotify username.
`PASSWORD` Required. Spotify password.
`DEVICE` Name of the device. Default: "Spotifyd"
`VOLUME_NORMALISATION` If set to true, enables volume normalisation between songs.
2022-02-05 23:52:44 +00:00
2022-02-06 22:35:47 +00:00
`NORMALISATION_PREGAIN` The normalisation pregain that is applied for each song.
2022-02-05 23:52:44 +00:00
2022-02-06 22:35:47 +00:00
`BITRATE` The audio bitrate. 96, 160 or 320 kbit/s.
2022-02-05 23:52:44 +00:00
2022-02-06 22:35:47 +00:00
`DEVICE_TYPE`# The displayed device type in Spotify clients. Can be `computer`, `tablet`, `smartphone`, `speaker`, `tv`, `avr`, `stb`, `audiodongle`.
2022-02-05 23:52:44 +00:00
2022-02-06 22:35:47 +00:00
`INITIAL_VOLUME` Volume on startup between 0 and 100.