Read the statement by Michael Teeuw here.
MMM-SpotifyControl . Control your Spotify music player using Mk2 assistant.
-
@Cr4z33
Ok I got your point Google assisant and sdk act differently .What happen when you say something to your assisant:
“Play bob marley on spotify”
It search like you would do in the google search bar
and return a result.
That is your payload for the play … spotify command.
Note that this command is the only one to not have a hook .So what it does is returning the first result from a google search .
if I type “bob marley spotify” in my search bar i’m getting :
Bob Marley & The Wailers on Spotify
https://open.spotify.com/artist/2QsynagSdAqZj3U9HgDzjDThat is what is expected from the payload , as we build later the api call from this url .
I would try first to google search for "an artist on spotify in italian’ and see what it return they say to your assisant in italian the same. Usually the assistant quickly display what it find from the search you should see an url like :
https://open.spotify.com/(artist, track or playlist)/with an Id here .regarding the syntax Quote or double quote doesn’t matter in js.
Both
transcriptionHook: { PREV_SONG: { pattern: "previous song", command: "PREV_SONG" }, or transcriptionHook: { PREV_SONG: { pattern: 'previous song', command: 'PREV_SONG' },
will work the same.
Hope this helps
Ejay
-
@ejay-ibm said in MMM-SpotifyControl . Control your Spotify music player using Mk2 assistant.:
@Cr4z33
Both
transcriptionHook: {
PREV_SONG: {
pattern: “previous song”,
command: “PREV_SONG”
},
or
transcriptionHook: {
PREV_SONG: {
pattern: ‘previous song’,
command: ‘PREV_SONG’
},will work the same.
Hope this helps
Ejay
Sorry you misunderstood me. :smiling_face_with_open_mouth_cold_sweat:
What I meant is don’t we have to put ie.
PREV_SONG
into quotation marks like"PREV_SONG": {
?
As for the Google Assistant test you are asking me are you referring to the mirror module or to my Google Home Mini device?
-
@Cr4z33
don’t use your google home device it’s not comparable .
I have one as well at home and it’s working completely differently, otherwise, I would not have to write this module. So i’m refering to what interest us your Mk2 assistant on your mirror .ejay
-
It says something like ‘I am sorry I don’t know how to help you, but I am learning new things day by day’.
I am 100% sure that all the API/token details are correct and still valid (if I run MMM-NowPlayingOnSpotify it works flawlessly).
-
@Cr4z33
What Are you saying exactly ?
What is the result of this if you try to type in in your google search bar ?
did you simply try : “bob marley spotify” ?
what is your search result ? in google ? -
-
@Cr4z33 try to just say “Bob Marley Spotify” so there’s no language interaction.
-
@ejay-ibm just tried and again GA says he apologizes, but he doesn’t know right now how to help me.
-
@ejay-ibm perhaps it doesn’t work (yet) when using GA in another language than English?
-
@Cr4z33 Well i’m using it in french … so I don’t think so .
I need to think a bit why your payload is incorrect.