Support for Alexa Media Player #431
Replies: 49 comments 207 replies
-
I've inspected this today and so far I see no easy way to make that work. The Alexa Media Player does not allow to just send a stream URL to play which is what this integration needs. The only way to make this work properly is if somebody creates a custom Alexa skill that communicates with this integration. I do not own a Alexa device so I can't do that. A little googleing I just did quickly led me to several 3rd party solutions you could use to turn the Echo device into a unpnp receiver or squeezebox player. For example: https://www.amazon.com/ComputeQ-UG-Haftungsbeschr-Roomskills-Squeezebox/dp/B0983C2377 I'm happy to work with somebody to make this work but without an actual Alexa/Echo device to test with, this is not something I can start with alone |
Beta Was this translation helpful? Give feedback.
-
I would gladly help, I'm not a developer, but I would help by testing it on my echos, unfortunately I'm located in Spain and the skill you pointed can be only installable on US echos (perhaps on DE as well, as per language selection) |
Beta Was this translation helpful? Give feedback.
-
I don't know how the SpotCast integration works but I'm able to play music from spotify on my alexa devices from Home Assistant, I don't believe a skill is needed. |
Beta Was this translation helpful? Give feedback.
-
@mabrochu-helpox how do you bring the Alexa's into HA as media players though? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
To be clear, this is not the official Alexa integration built into HA. This is a custom integration known as Alexa Media Player. It is found here: https://github.com/custom-components/alexa_media_player |
Beta Was this translation helpful? Give feedback.
-
For Music Assistant to work it is required that the enddevice (the speaker) supports "play from url". Music Assistant is not about playing Spotify on a speaker. Music Assistant is about playing all your online en offline media to a collection of speakers. The Spotcast implementation (and others like the alexa custom integration) send Spotify commands to the Echo speaker, not plain urls |
Beta Was this translation helpful? Give feedback.
-
Its hacky but you can send urls like this:
Probably not the intended use but im curious if there is another api we that could be leveraged ? |
Beta Was this translation helpful? Give feedback.
-
Enjoyed the Open Home Audio stream with you all! Very impressive stuff all around! @marcelveldt Music Assistant seems great, and opens a world of possibilities! I just wanted to offer up a potential path forward for supporting Echo devices, and that would be using them as a bluetooth audio target. I regularly pair my Echo with my Macbook via bluetooth, and set it as my output device. No special hardware of configuration needed, just the Amazon Alexa app: The simplest solution is to pair your Echo(s) with the host OS, and use them as system output device(s) - of course, that may incur limitations regarding targeting specific connected devices/groups Traditionally, Bluetooth radios have supported a single audio streaming device per chip (except for a few specialist radios) - so 1 dongle = 1 speaker, 2 dongles = 2 speakers, etc.... However, the recent Bluetooth LE specification also adds "multi device audio streaming" from a single radio, I believe using the LC3 codec. Here's some reference links: https://www.bluetooth.com/learn-about-bluetooth/recent-enhancements/le-audio/
|
Beta Was this translation helpful? Give feedback.
-
Additional: I came across an article from last year on Mark Lewis's Blog, in which he configures audio with a bluetooth dongle on Home Assistant OS, seemed fairly simple: https://marklewis.blog/2021/02/25/home-assistant-bluetooth-speaker/ Mark was using a "Local VLC" community addon as a player, but I'm sure there's other things that can be done |
Beta Was this translation helpful? Give feedback.
-
would we possibly be able to use something like this: https://www.youtube.com/watch?v=NoCPUypkimc&ab_channel=DabbleLab as a base for a custom skill to be able to play media from a url on amazon devices? |
Beta Was this translation helpful? Give feedback.
-
Moved to discussions, raise your votes! |
Beta Was this translation helpful? Give feedback.
-
I think we would need to create a music provider following https://developer.amazon.com/en-US/docs/alexa/music-skills/understand-the-music-skill-api.html and then hook into that via alexa_media_player through alexapys |
Beta Was this translation helpful? Give feedback.
-
Not a coder, just a dabler. From what I understand. Activating this skill will have the backend load up an audio stream. The URL in this stream could be changed to point to your home assistant instance (or I believe nabu casa URL) for the .m3u file. If it's possible to code an audio stream, then we could use this skill. The scenario would be to have the audio stream process start when opening the media player If this is achievable, then we could adapt the stream URL to other players. Using a m3u app on your phone to stream is one example that comes to mind. Edit: |
Beta Was this translation helpful? Give feedback.
-
Any more progress on using the Alexa Media Player integration in conjunction with this? |
Beta Was this translation helpful? Give feedback.
-
Here's a link https://discord.gg/AekbrwbY
…________________________________
From: BT643 ***@***.***>
Sent: Saturday, March 29, 2025 12:15:46 PM
To: music-assistant/support ***@***.***>
Cc: neil1111 ***@***.***>; Comment ***@***.***>
Subject: Re: [music-assistant/support] Support for Alexa Media Player (Discussion #431)
Sorry to post this here, but does anyone have a link to the Discord server for this? Interested in seeing if there's anything I could do to help. Would love this working on Alexa.
—
Reply to this email directly, view it on GitHub<#431 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AG4HWX7VAD36HV5FYI3SZXT2W22KFAVCNFSM5ZFEEO42U5DIOJSWCZC7NNSXTOSENFZWG5LTONUW63SDN5WW2ZLOOQ5TCMRWGYZTAMRR>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hello - I'd like to contribute to this if I can - however invite to discord has expired |
Beta Was this translation helpful? Give feedback.
-
2.6.0 BETA 13 has been released with experimental support for ALEXA. See how you go with it. Instructions here https://beta.music-assistant.io/player-support/alexa/ |
Beta Was this translation helpful? Give feedback.
-
I got the docker image deployed, built the skill and edited the endpoints have the reverse proxy set up with 2 different sud domains one for the API server and one for the streaming endpoint. Went through the config flow and authorised to log in. But after that nothing no players show up or anything. I'm using amazon.co.uk as the end point |
Beta Was this translation helpful? Give feedback.
-
Just passively following the thread so far, but I already know -- we don't pay you enough, Sameer! ;-)
…
On Jun 25, 2025 at 8:11 AM, Sameer Alam ***@***.***> wrote:
Was able to replicate it. Now to see why it won't work...
This means the current release will not work as a Home Assistant Add-on.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I got the new beta and Alexa API running, and now MA sees the Alexa speakers. However, when I try to play music, it keeps going back to a previous Spotify playlist, the one I originally started by asking Alexa directly. I've restarted Alexa and tried playing something else through MA, but it still defaults to that earlier Spotify playlist, even though it wasn't initially started from MA. |
Beta Was this translation helpful? Give feedback.
-
➜ curl <https://my public domain name for alexa api>/ma/latest-url from this i get back "streamUrl":"http://192.168.0.14:8097/flow/zkETv3h8/Kitchen/0972756348da4fe892c31feb3d692ae0.flac" |
Beta Was this translation helpful? Give feedback.
-
Also there is another bug with skipping a song in the playlist where the audio stops playing. Maybe some sort of caching issue. I haven't had time to debug it yet but just a heads up for anyone who is able to get it running. |
Beta Was this translation helpful? Give feedback.
-
@DerGary Moving the conversation here just in case anyone finds this useful in debugging. The The first try 404 should be fixed on my draft branch. Are you using a domain other than |
Beta Was this translation helpful? Give feedback.
-
Was there any thoughts on problems with different Amazon regions eg amazon.co.uk? |
Beta Was this translation helpful? Give feedback.
-
Hello, I've been following this thread, and hit a brick wall with my set-up until I downloaded the latest build. I'm in the UK and my Alexa devices are all set up on amazon.co.uk. Here's the what I did:
In terms of external ports - I didn't specify any for either the API or the Stream URL as I proxied the default https port (443) for each one to the internal port (3000 & 8097) Hope that helps others who may have got stuck at the same points I did - thank you for all the work you guys have put into this - you have no idea how long I have looked forward to this day! |
Beta Was this translation helpful? Give feedback.
-
Does this work after updating to 2025 7 1? AMP stopped working today maybe
due to API
…On Sat, Jul 5, 2025, 7:25 PM Dominik Kinal ***@***.***> wrote:
"Received unhandled GET request..." means your reverse proxy redirects
/flow/... request to http port instead of stream port.
I had to split routes /flow to 8097 and / to 8095
—
Reply to this email directly, view it on GitHub
<#431 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACGD6KX57TL65KB5YEZYPJT3G6YYZAVCNFSM5ZFEEO42U5DIOJSWCZC7NNSXTOSENFZWG5LTONUW63SDN5WW2ZLOOQ5TCMZWGY4DOOJR>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***
.com>
|
Beta Was this translation helpful? Give feedback.
-
Hey
do you know what that could be? or any hint or maybe console.log in lambda to get more detailed error message? |
Beta Was this translation helpful? Give feedback.
-
do announcements work with this yet? |
Beta Was this translation helpful? Give feedback.
-
This is very promising. Can someone point me to a clear instructions on how to set this up? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Trying to play music from Spotify to my Alexa devices, which are set as media devices using Alexa Media Player. Alexa gives an error stating that the proper service calls must be made.
If this could be integrated in some way, it would be a game changer for playing music via HA. Happy to test anything as needed.
Beta Was this translation helpful? Give feedback.
All reactions