skill-musicassistant
An OVOS/Neon skill to control media through Music Assistant.
OCP must be disabled for this skill to work. On OVOS 3.x that means removing the
ovos-ocp-pipeline-plugin-high and ovos-ocp-pipeline-plugin-medium entries from
intents.pipeline in mycroft.conf; on Neon Hub, OCP is already off.
Features
- Play artists, tracks, albums, playlists, and radio stations on any Music Assistant player
- Just say "play X": when no other skill claims a request that starts with a play verb, the skill asks Music Assistant to resolve the name across artists, albums, tracks, playlists and radio
- Tells you what it actually matched: "I couldn't find that by Leonard Cohen, so here it is by Jeff Buckley"
- "What's playing?" and "like this song"
- Playback controls: pause/resume, next track, previous track, stop
- Volume control: set a level, turn it up/down, mute/unmute
- Target any player by name in the command ("...on the kitchen speaker")
- Fuzzy player name matching — minor mispronunciations and speech-to-text noise still resolve to the right player
- Set your default player by voice, per device when running under HiveMind/Neon Nodes
- Localized in English and French
Upgrading to 1.0
Release 1.0 bundles two rounds of work. The first (below, "The 1.0 groundwork") moved to the published client and added the generic play fallback; the second replaces the typed play intents ("play the album X", "play the artist Y", and so on) with one play intent and a parser. Every phrasing that worked before still works, and the same words now also work without the type word; what changes is how a request is understood and which failures are spoken.
- One
play.intentcatches anything that starts with a play verb. A deterministic parser turns the words into a typed request (track, album, artist, playlist, genre, radio, radio category, random) using the locale word lists underlocale/<lang>/*.list, so adding a language means adding lists, not code. - The catalog policy (by-name lookup before free-text search, the different-artist fallback, genre with album fallback, radio name variants) lives in one module and is tested against recorded Music Assistant responses.
- A request the server cannot satisfy is reported by kind ("I couldn't find the album X"), and a request for a podcast or audiobook by name is no longer played as music.
- Failures are spoken as what they are. A server that does not answer is reported as such, never as "I couldn't find X", "nothing is playing" or "you have no playlists". A player name that matches nothing is reported, never replaced by a default. Commands without a player go to the one you last used in the session (see Default Player). Any error a handler did not expect is logged with its traceback and spoken as a failed request.
- Radio by language works: the radio-browser provider only serves language folders under a lowercase path.
- The Padatious training set is roughly half its 1.x size, which matters on small devices.
- fr-fr: the control intents are translated; the parser word lists are first drafts that need review by a French speaker.
The 1.0 groundwork
1.0 changes how requests are resolved. Upgrade at your own risk and review your settings afterwards.
- The skill depends on the ma-http-client package (0.2.0 or later) instead of a vendored copy of the client.
- A generic "play X" fallback handler is on by default. It runs after every registered intent and before the
LLM fallback skills. Turn it off with the
generic_play_fallbacksetting if another skill should own bare "play" requests. - Track and album requests are resolved by name on the server first, and the skill says so when the artist it found differs from the one you asked for, or when several albums share a name.
- "Stop" stops the player you last used, then your default player, and only when it is playing or paused. It used to send a play/pause toggle to the first player the server listed, which could start an idle speaker.
- "Pause" pauses and "resume" resumes; neither toggles any more.
- Setting the default player by voice writes the settings file atomically and merges with what is on disk, after a plain settings store was seen emptying the file (and the server token with it) on a Neon Hub.
- New intents: "what's playing" and "like this song".
Usage
All playback commands accept an optional player location, e.g. "play the artist Caravan Palace on the office speaker". Without a location, the skill uses the player you last used in this session, then your default player (see below).
Play Music
- "Play the artist Caravan Palace"
- "Play music by Caravan Palace" / "Shuffle songs by Caravan Palace"
- "Play the track Digital Love by Daft Punk"
- "Play the album Random Access Memories by Daft Punk"
- "Play the playlist Focus"
- "Play the radio station KEXP" / "Tune into KEXP"
- "Play radio from Spain" / "Play jazz radio stations" / "Play a radio station in French" (queues the ten most popular radio-browser stations for that country, language, or tag; "next station" moves on)
- "Play Discovery" / "Listen to Daft Punk on the office speaker" (no type word needed; the server decides)
Genres, Random, Shuffle and Repeat
- "Play some jazz music" / "Play the genre jazz" (a shuffled sample of that library genre)
- "Play some music" / "Play anything" / "Shuffle my library"
- "Shuffle on" / "Stop shuffling"
- "Repeat this song" / "Repeat all" / "Repeat off"
Artist, genre and random requests start shuffled; a single track or album plays in order.
Playlists
- "Create a playlist called Workout"
- "Add this song to my Workout playlist" (creates the playlist on first use)
- "Remove this from my Workout playlist"
- "Save this queue as Tonight"
- "What playlists do I have?" / "What's on my Workout playlist?"
Always say "playlist" in these commands; "add this to Workout" alone is left to list and to-do skills.
Now Playing and Favorites
- "What's playing?" / "What song is this?" / "Who is this?"
- "Like this song" / "Add this song to my favorites"
Playback Controls
- "Pause the music" / "Resume the music"
- "Next track" / "Skip"
- "Previous track" / "Go back"
Volume
- "Set the music volume to 50"
- "Set volume to 30 percent in the kitchen"
- "Mute" / "Unmute"
Default Player
- "Make the living room speaker my default player"
- "Change my default player to the office speaker"
When you don't name a player in a command, the skill resolves one in this order:
- The player named in the utterance (fuzzy matched)
- The player this session used most recently, so "skip" after "play Discovery on the office speaker" skips the office speaker
- This session's default player, if one was set by voice
- The
default_playerskill setting
On the local device, setting a default player by voice persists it to the default_player setting. Under HiveMind or Neon Nodes, each client session gets its own default — for example, a HiveMind client on your work computer can use the office speaker by default while the kitchen satellite keeps its own. Per-session defaults are held in memory and reset when the skill restarts; the default_player setting remains the fallback.
Configuration
The skill requires the following configuration:
music_assistant_url: The URL of the Music Assistant server.music_assistant_token: The token for the Music Assistant server. Required for version 2.7.2 and later.
The skill also accepts the following configuration:
default_player: The default player to use when a command doesn't name one. Can also be set by voice ("make ... my default player"), which updates this setting on the local device.
These can be set in the skill settings or in the skill configuration file.
Example Configuration
{
"music_assistant_url": "http://localhost:8095",
"music_assistant_token": "MUSIC_ASSISTANT_TOKEN",
"default_player": "Living Room Speaker"
}
Metadata
Release files for skill-musicassistant 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| skill_musicassistant-1.0.1.tar.gz | 51.1 kB | Without provenance | Details for skill_musicassistant-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| skill_musicassistant-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for skill_musicassistant-1.0.1-py3-none-any.whl |
Total release size: 149.7 kB
Release files / skill_musicassistant-1.0.1.tar.gz
| Download URL | skill_musicassistant-1.0.1.tar.gz |
|---|---|
| Size | 51.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9a0d3e83491cc8eb1f7e01ecff458beec770fe4ca5e5eafc57714fbf3c3d697d
|
|
BLAKE2b-256 checksum How to use checksums |
36300a35ae25c4b90a7ce6789861fbca20e3ab9be732e50bab7391b0267372f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / skill_musicassistant-1.0.1-py3-none-any.whl
| Download URL | skill_musicassistant-1.0.1-py3-none-any.whl |
|---|---|
| Size | 98.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
df6422684bf63d1d694b9770de61958e7587df1d77f0d0d09cde492f985d0ea9
|
|
BLAKE2b-256 checksum How to use checksums |
fe793d9a27d6ad6bd27937d2aaff4289bae5c7c75283a427ac0e21545f497ed6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Security for skill-musicassistant 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.