i8beef / node-red-contrib-castv2

MIT License
22 stars 14 forks source link

Add broadcast option TTS? #6

Closed kkoenig77 closed 3 years ago

kkoenig77 commented 4 years ago

Hey, This works great and thanks for you work on it.

It would be an awesome addition if the TTS option was configured for broadcast instead of starting a new stream. This way it would not stop media that is already playing.

similar to- https://github.com/greghesp/assistant-relay

i8beef commented 4 years ago

Cool idea, and in fact I "simulate" this by just casting to all my homes at once... but its not as nice of an effect as an actual broadcast. The ask here unfortunately isn't trivial, and might be better handled by a dedicated Google Assistant API node of some sort. This is really meant to deal only with the Cast APIs so it can target more than just Google Homes.

melvinraju commented 3 years ago

I am also looking for this functionality to play a TTS over a stream of my doorbell cam. Currently have to play the TTS first and then show the cam which isnt a great user experience.

i8beef commented 3 years ago

As this node is specifically supporting the Google Cast protocol, Im going to say this isn't going to happen. The ask here is actually for an implementation of the Google Assistant SDK, which is out of scope... they are just two different animals.

If someone wanted to create a node for exposing that, they might look at the google-assistant NPM package, and could probably use the assistant-relay project as a good example of how to integrate.