rosskouk / asknavidrome

An Alexa skill to allow streaming of music from Subsonic API compatible media servers on Amazon Echo devices.
https://rosskouk.github.io/asknavidrome
MIT License
48 stars 7 forks source link

Single Command Invocation? #31

Closed dathbe closed 6 months ago

dathbe commented 6 months ago

Describe the solution you'd like Allow playing of music with a single command (e.g., "Alexa, ask asknavidrome to play my favorites") instead of the two-step command currently available (e.g. 1) "Alexa, ask asknavidrome" [ready] 2) "play my favorites").

Additional context I'm mostly just wondering if this is a limitation on dev apps because the single-line requests work with apps like Plex. I don't have a lot of experience with Alexa skills, but can figure out the invocations if this is something that's possible.

rosskouk commented 6 months ago

Hi @dathbe,

Yes you are correct, this does appear to be a limitation of dev type apps. The AskNavidrome skill is actually a generic skill, not a music skill which from my experimentation appears to be the issue. The reason for this is that in order to use a music skill you need to upload a catalogue of your media to Amazon, which in turn you would need to keep updating. I opted for the generic skill as this simply relies on media that you have already added to your Navidrome instance, but the trade off is having to open the skill first. Hopefully the lack of adds and the features will make up for that.

adocampo commented 6 months ago

https://www.mymediaalexa.com also can stream your library in one step command. https://kodi-connect.github.io/ let play music on a kodi player (not on an echo) via alexa (one step) commands I can't help at all in coding, all the skills I have are copypasted from the respective developers. But perhaps some developer can take profit other project's ideas,

dathbe commented 6 months ago

The My Media skill seems to use the workaround discussed above where there is a single app with a single choke point of all user information built in. It is a paid service.

The Kodi skill also seems to have this choke point (otherwise why require people to create a Kodi Connect account), but it is more promising because it seems to be a developer (i.e. not public) skill that still is able to implement one-step commands. I don't have a Kodi instance, but if you (or anyone else reading this) does, it would be nice to see what the configuration is for the skill that's different from how asknavidrome works. My guess would be the critical differences will be in the intents, but I'm brand new at this skill-building thing, so I'm not entirely sure.

Edit: it looks like Kodi is an entirely different skill based on the "Video Skill" model, and does not map nicely to the asknavidrome skill. But it still shows that one-step commands are theoretically possible with developer apps.