DeanCording / node-red-contrib-google-action

A Node Red node to respond to Google Action requests
MIT License
37 stars 15 forks source link

start google play music #15

Closed dkern closed 5 years ago

dkern commented 5 years ago

I know that google actions are capable to start music via stream on home devices. But I have no idea how to do this with this node. Is this even possible?

Thanks in advance.

DeanCording commented 5 years ago

You need to use Google Cast to start music streaming on home devices. There are some Node libraries available but it is a difficult API to work with.

dkern commented 5 years ago

Well, yes. Cast API is for streaming media to the device. But that's not what i want. I want to tell the device what he has to do on it's own. Like when i say hey google, play metallica (just for example), the device don't use the cast api, it just do it on its own. And I thought actions can execute these command on the device, or not?

I saw this example on the page here: https://assistant.google.com/services/a/uid/000000d8bfc5c546?hl=en

There is just a button what sends the command to the device, just like a voice command. Not like with the cast api. Is this possible?

JSzaszvari commented 5 years ago

No, you need to use the APIs / Tools provided and can't go outside these.

That send to device on the page you linked is simply telling Google Play music to start music using the cast API, it's not streaming directly

You can't 'execute commands' on the devices, only play in the sandbox provided

On Fri., 12 Oct. 2018, 3:38 am Eisbehr, notifications@github.com wrote:

Well, yes. Cast API is for streaming media to the device. But that's not what i want. I want to tell the device what he has to do on it's own. Like when i say hey google, play metallica (just for example), the device don't use the cast api, it just do it on its own. And I thought actions can execute these command on the device, or not?

I saw this example on the page here: https://assistant.google.com/services/a/uid/000000d8bfc5c546?hl=en

There is just a button what sends the command to the device, just like a voice command. Not like with the cast api. Is this possible?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/DeanCording/node-red-contrib-google-action/issues/15#issuecomment-429027551, or mute the thread https://github.com/notifications/unsubscribe-auth/AA1QD3ZCuNb9OO1JR5WVXJgxn7gecbpSks5uj3QVgaJpZM4XWaX8 .

Paul-Reed commented 5 years ago

Use Google Play music. Just upload your music to Google's servers, and you can just say; "Hey Google, play my album Nothing but thieves" No subscription needed.

dkern commented 5 years ago

Okay, i will go into the cast api again. I thought that is done by another way. I know that we're bound to the google-given things. ;)

And @Paul-Reed, that is an completely other thing. Do you even read what i wrote? If i would like to play my own music, thats really what the cast api is for. And i don't want to speak with my device in this example, as i wrote. But thank you anyway ...