Linux command
spotifyd 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Start spotifyd
spotifyd
Start without daemonizing
spotifyd --no-daemon
Start with a specific configuration file
spotifyd --config-path [~/.config/spotifyd/spotifyd.conf]
Start with verbose logging
spotifyd --verbose
Show device name
spotifyd --device-name "[My Linux PC]"
说明
spotifyd is a lightweight Spotify daemon that implements the Spotify Connect protocol. It runs as a background service on Linux, macOS, and other Unix-like systems, appearing as a controllable device in the Spotify ecosystem. Unlike the full Spotify desktop client, spotifyd has no graphical interface and minimal resource usage. It can be controlled from any Spotify client (mobile app, web player, or desktop app) using Spotify Connect. For local control, it pairs well with terminal interfaces like spotify-tui (spt). Configuration is typically done via a file at ~/.config/spotifyd/spotifyd.conf containing credentials and playback settings. A Spotify Premium account is required for streaming.
参数
- --no-daemon
- Run in the foreground instead of daemonizing.
- -c, --config-path _path_
- Path to configuration file.
- --verbose
- Enable verbose logging output.
- --device-name _name_
- Name displayed in Spotify Connect device list.
- --device-type _type_
- Device type (computer, tablet, smartphone, speaker, tv, avr, stb, audiodongle).
- --bitrate _rate_
- Audio bitrate: 96, 160, or 320 kbps.
- --backend _backend_
- Audio backend: pulseaudio, alsa, rodio, portaudio.
- --device _device_
- Audio device name for playback.
- --mixer _mixer_
- Mixer to use for volume control.
- --initial-volume _percent_
- Initial volume (0-100).
- --volume-normalisation
- Enable volume normalization.
- --cache-path _path_
- Path to cache directory.
- --username _username_
- Spotify username.
- --password _password_
- Spotify password (prefer config file for security).
- -h, --help
- Display help information.
- -V, --version
- Display version information.
FAQ
What is the spotifyd command used for?
spotifyd is a lightweight Spotify daemon that implements the Spotify Connect protocol. It runs as a background service on Linux, macOS, and other Unix-like systems, appearing as a controllable device in the Spotify ecosystem. Unlike the full Spotify desktop client, spotifyd has no graphical interface and minimal resource usage. It can be controlled from any Spotify client (mobile app, web player, or desktop app) using Spotify Connect. For local control, it pairs well with terminal interfaces like spotify-tui (spt). Configuration is typically done via a file at ~/.config/spotifyd/spotifyd.conf containing credentials and playback settings. A Spotify Premium account is required for streaming.
How do I run a basic spotifyd example?
Run `spotifyd` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --no-daemon do in spotifyd?
Run in the foreground instead of daemonizing.