Repository navigation
Description
Proposal, not a PR — raising this as an issue first because it defines new protocol surface, and I'd rather agree the shape before writing against it.
What I'm proposing
A way for a server to play a short clip (an announcement, TTS, alarm) over a player's running audio, with the music continuing at reduced volume rather than stopping.
Why this seems to be anticipated already
The spec already sanctions the concept in two places, without defining a role for it:
messaging.mdL267 — server-to-client stream roles areplayer,artwork,visualizer, "or an application-specific role with such a stream".messaging.mdL271 — on removal of a stream role, the client releases "temporary output effects applied by that role, such as ducking."
So ducking is named as a legitimate output effect, and application-specific stream roles are explicitly allowed. What's missing is a defined role that uses them. The player role itself has no effect hook — it covers volume, mute, timing and format only.
The problem this solves
I run Music Assistant against a SendSpin player (moOde, sendspin client). Announcements today are stop-and-resume: playback leaves playing, the clip plays, playback returns. Measured on the HA side, the entity transitions playing → idle → playing across each clip — there is no mixing and no ducking.
The reason is that MA has no protocol-level announcement path at all. Its SendSpin provider relays announcements through Home Assistant instead, and that relay is restricted to one manufacturer:
esphome_players = [p for p in players if p.device_info.manufacturer == "ESPHome"]
"ESPHome devices support announcements natively, but that capability is only reachable through the HA API. Players are correlated by MAC address (the Sendspin client id)."
So on any non-ESPHome SendSpin client the PLAY_ANNOUNCEMENT capability is never advertised, and no announcement is possible at all — not even stop-and-resume.
Relevant prior art in this org
sendspin-python-cli #248 (closed) is the closest existing work — a user ran MA play_announcement against a plain Pi sendspin daemon client and reported the startup gap. Its closing comment concluded:
"the multi-zone sync issue … is architectural in upstream Music Assistant (MA dispatches play_announcement per-member rather than leveraging Sendspin's native group pts sync)"
That's a separate defect, but it confirms announcements are a real SendSpin use case and that the missing piece is protocol-level.
Sketch of a shape (very open to alternatives)
- A versioned role, e.g.
announcement@v1, advertised by clients that can mix. - The server sends the clip as its own stream with a duck instruction (target gain or percentage) rather than a stop.
- The player applies gain reduction to the
playerstream, mixes the clip, and restores onstream/end/stream/clear. - Removal of the role releases the duck, consistent with L271.
The open design question is whether this is a new role or an effect attached to the player role — the spec's own wording ("temporary output effects applied by that role") could support either, and that's the part I'd most like guidance on.
Second, smaller point — identity correlation
MA correlates a SendSpin client to a Home Assistant device by MAC address (the Sendspin client_id). Any client whose client_id is not a MAC can therefore never be correlated, and never gets announcements. A protocol-level announcement role would remove that dependency entirely, which is the main reason I'm folding it in here rather than filing it separately.
If it's more useful as its own issue, happy to split it.
Scope if this were pursued
A role definition here, a connector in the clients (sendspin-python-cli and the libraries for parity), and provider support in Music Assistant. I'm not proposing to write all of that now — I'd like to know whether the direction is wanted, and if so which of the two shapes above the maintainers prefer, before anyone writes code.
If the answer is "not now", that's completely fine — a one-line no is genuinely useful, and I'll stop there.
Activity
Hedda commentedon Oct 9, 2026
@kiwipaulrob FYI, your proposal more or less matches this existing pull request to add an optional announcement role to the Sendspin spec:
Note! Your issue above does however look to raise two additional side points which does not seem to be mentioned that linked pull request:
ESPHome-only relay. Music Assistant currently relays announcements through Home Assistant only for ESPHome devices, so other clients get none.
MAC-based correlation. Music Assistant matches a Sendspin client to a Home Assistant device by MAC address, which fails when the
client_idisn’t a MAC.Both are consequences of having no protocol-level announcement path, and the role in #126 would remove them without the second-server follow-up.
PS: @kiwipaulrob Also be sure that you (and not just your AI) both read AND follow the Open Home Foundation AI policy (which among other things state that only humans may discuss with other humans and not to let autonomous agents to communicate for you):
The reasons why are further fleshed out in this blog post:
Hedda commentedon Nov 4, 2026
Originally posted by @kiwipaulrob in #126 (comment)
@kiwipaulrob suggest you reformulate your suggestions/arguments without AI and re-post them as a new reply in #126 if they still stand.