Enable speaking on a Google Nest Mini speaker from a scene

Hi everyone!

The goal of this development is to have the ability to speak on a Google Nest Mini speaker.

Whether you use Google or not, these connected speakers offer excellent value for money (probably sold by Google at zero margin or even at a loss), and can be found brand new on leboncoin from 20€.

I bought one last week myself for this experiment:

I quickly created a small integration in Gladys:

The same scan tab copied and pasted on Sonos:

Can be used in scenes with the action that already exists!

And there you go — it works:

I was surprised by how easy it was to develop this :joy:

I’ll keep you posted as soon as I have a PR!

PS: I posted this thread on Twitter here: https://x.com/gladysassistant/status/1792590810459906541

Hello @pierre-gilles

Great idea, however:

  • Doesn’t Gladys become dependent on an Internet connection?
  • Can we consider other methods for handling audio output (PulseAudio in my case, API as well, etc. …).

Have a nice day,
Jean

1 Like

Hi @jean_bruder :slight_smile:

No, the audio part is local, it works without the internet.

The TTS scene action requires the cloud, but that’s nothing new — it’s already the case in Gladys currently in production. The day local TTS is possible and of good quality, I’ll be the first to add it to Gladys!

Yes, absolutely — if there’s demand it can be added :slight_smile:

Maybe my explanation isn’t clear, but here I’m just adding support for Google Nest Mini speakers, we already support Sonos speakers. The « Gladys voice » feature has been in Gladys since last year.

1 Like

Is it possible for the Amazon Echo Dot?

Yes, absolutely, it’s a full-fledged development though ^^

I’d like you to create a feature request if you’re interested :slight_smile:

The PR is available:

If you’re up for it, I made a Docker build to try:

gladysassistant/gladys:google-cast-integration

:slight_smile:

1 Like

After quite a bit of testing, I changed the library that handles network discovery to find Google Cast devices :slight_smile:

I switched from « mdns » to « bonjour » and it works really well.

I made a new build available on this image:

gladysassistant/gladys:google-cast-integration
1 Like

Hello

I tested the image and I can scan my Google Home Mini and my Google Nest Hub (I imagine it also works with a Nest Hub?).

However, I see very few logs related to the Google Cast integration, is that normal? (I see device removal compared to LAN manager or Sonos where you can clearly see when a scan starts and when devices are found.)

I would have liked to test the rest: speaking on the speaker via scenes but that requires Gladys Plus which I don’t have on my test instance. I would consider testing with my production database to have Gladys Plus but I think that’s not recommended.. what should I do?

@qleg Thanks for testing the network discovery!

There might be slightly fewer logs than for other integrations

For the TTS, if needed I can give you a Gladys Plus test account! I’ll send that to you in a PM :slight_smile:

1 Like

Thank you for the GladysPlus account, I confirm it’s working :slight_smile:

1 Like

Thanks for your test @qleg :slight_smile:

I’ve just deployed this feature in Gladys Assistant 4.43:

I’m closing this thread to unblock the votes.

Don’t hesitate to create another thread if you have any feedback!