mirror of
https://github.com/lox-audioserver/lox-audioserver.git
synced 2026-04-26 06:45:47 +03:00
[GH-ISSUE #63] Announce a custom track #21
Labels
No labels
bug
enhancement
pull-request
released
released on @beta
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/lox-audioserver#21
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mr-manuel on GitHub (Nov 2, 2025).
Original GitHub issue: https://github.com/lox-audioserver/lox-audioserver/issues/63
Can you post a sample (only URL) how I can announce a custom track for a single audio player or even a group/multiple players? Like
https://lox-audioserver:7091/audio/grouped/bell/13Or does it only work with favorites? Would be nice, if it works also without adding it to the favorites. Sample audio path:
spotify@filesystem_local--Y4q4pnTy://track/custom-notifications/special-notification.mp3. In Music Assistant this file is on the local filesystem in/media/custom-notifications/special-notification.mp3.@rudyberends commented on GitHub (Nov 8, 2025):
you can use this uri to play every item in your library;
/audio/14/serviceplay/spotify/nouser/spotify@nouser:track:bGlicmFyeTovL3RyYWNrLzQ2MDc=version 3.0.1 now strictly adheres to the loxone uri scheme. This was necessary for queue items, favorites and recently played where the client is really strict about the uri it receives. It will just ignore the entire list if the Uris are not valid.
/audio/14/serviceplay/spotify/nouser/spotify@nouser:is static because of the way we fake the spotify library.track:should be the item you want to play (track, album, artist, playlist)bGlicmFyeTovL3RyYWNrLzQ2MDc=is the base64 encoded musicassistant library uri. So in the example it translates to library://track/4607You can find the media Uris in mediaassistant on an item under "provider details"
@mr-manuel commented on GitHub (Nov 8, 2025):
Thanks.
Two questions remained unanswered.
@mr-manuel commented on GitHub (Nov 20, 2025):
@rudyberends could you follow up the main question of this issue?
@rudyberends commented on GitHub (Dec 29, 2025):
What's your definition of announcement? You mean a specific alert, or a tts message?
@mr-manuel commented on GitHub (Dec 29, 2025):
An mp3 file in the filesystem of Music Assistant
@rudyberends commented on GitHub (Dec 29, 2025):
/audio/27/playurl/https://icecast-qmusicnl-cdp.triple-it.nl/Qmusic_nl_live.mp3
@mr-manuel commented on GitHub (Dec 29, 2025):
If I understood correctly then the third element in the URL
serviceplayandplayurlare for overlay playback and normal playback?@rudyberends commented on GitHub (Dec 29, 2025):
yes. All of these are native to the loxone audioserver protocol. I did not add them.
@mr-manuel commented on GitHub (Dec 31, 2025):
Thanks, I did not found any documentation to the audioserver protocol therefore this question.
Now I had time to try it, but unfortunately this does not work (v.3.1.0).
serviceplayorplayurl, the current playing song is interrupted and not resumed after the selected file is played.I used your command, and swapped the zone ID
27with the zone ID7from my room, but it does not start playing at all.I compared the manually requested URL with the URL that is called, when I play a track via the Loxone app and they look completely different:
Also if I try to play a file from Music Assistant filesystem (local disk) I'm not able to get it working. Here the steps that I try:
Get the path of the file in Music Assistant:
Browse -> Filesystem (local disk) -> loxone (folder) -> LOXONE-klingel-tuer.mp3 (file)URL in the address bar:
https://music-assistant.homenetwork.local/#/tracks/filesystem_local--Y4q4pnTy/loxone%2FLOXONE-klingel-1.mp3Open Lox Audioserver URL and check logs in Lox Audioserver and Music Assistant.
Test 1
http://lox-audioserver.homenetwork.local:7091/audio/7/playurl/filesystem_local--Y4q4pnTy://loxone/LOXONE-klingel-1.mp3Lox Audioserver logs:
Music Assistant logs:
Test 2
http://lox-audioserver.homenetwork.local:7091/audio/7/serviceplay/filesystem_local--Y4q4pnTy://loxone/LOXONE-klingel-1.mp3Lox Audioserver logs:
Music Assistant logs:
Test 3
http://lox-audioserver.homenetwork.local:7091/audio/7/serviceplay/filesystem_local--Y4q4pnTy/loxone/LOXONE-klingel-1.mp3Lox Audioserver logs:
Music Assistant logs:
Test 4
I search the file in Loxone, play it and I fetch the URL from the Lox Audioserver logs:
http://lox-audioserver.homenetwork.local:7091/audio/7/serviceplay/spotify/nouser/spotify@nouser:track:bGlicmFyeTovL3RyYWNrLzc1/noshuffle/?q&ZW5mb3JjZVVzZXI9dHJ1ZQhttp://lox-audioserver.homenetwork.local:7091/audio/7/playurl/spotify/nouser/spotify@nouser:track:bGlicmFyeTovL3RyYWNrLzc1/noshuffle/?q&ZW5mb3JjZVVzZXI9dHJ1ZQThen it plays, but the announcement feature does not work with any of the above (obviosly not with a webradio URL, the relevant mp3 is 10 seconds long).
@rudyberends commented on GitHub (Dec 31, 2025):
try it on the 4.x branch. playurl is used by loxone to play custom audio streams, so its part of their internal protocol. It might not be correctly implemented in 3.x and it might get translated wrong.
the 4.x branch correctly plays urls.
@mr-manuel commented on GitHub (Dec 31, 2025):
Ok thanks, I will try it once I was able to integrate my players in v4.x