Closed NadirJ closed 5 years ago
Cool, looks interesting. Could we split this PR though - some of the stuff looks like simple / universal changes (e.g. Genre - I'll make an issue, meant to do this a while ago actually) but the Album / Artist stuff needs careful though when it comes to other regions, plus I want to try and keep the invocation language similar to native / other audio VUIs.
I'll break Genres out its a simple intent change (no python actually changed)
For the album/artist the python side is generic. However the intent json is language/region specific.
For regions where the slot types AMAZON.MusicGroup AMAZON.MusicAlbum are not supported you would have to create your own slot types for now (which is painful but doable)
I just tried removing the Album and Artist Intents and leaving the new python methods in place and nothing breaks. So I think this will be safe to put this in I can update the region specific intents when Amazon supports more regions
OK, right can we:
Oh and I guess copying the en_US
to an en_GB
intents.json
is something I'll probably do to make sure people on non-US v1
still have something to refer to
Everything you said above makes sense.
I'll update the PR in a couple of days
Fixes#10
US-Only: I added the ability to play by album and artist using Amazon Slot Types: AMAZON.MusicAlbum and AMAZON.MusicGroup
Other locales: I also updated the play genre intent to use the AMAZON.Genre intent and tested it for US_EN