Get google home to tell a notification
Moderator: leecollings
-
- Posts: 562
- Joined: Sunday 11 December 2016 13:51
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Get google home to tell a notification
What is the easiest way to get google to tell a notification, for example, when a switch is activated i get a voice message in google home.
-
- Posts: 660
- Joined: Thursday 10 November 2016 9:30
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Get google home to tell a notification
You don't need to have an always connected mic in your home for voice notifications: A speaker connected to the PI jack (or a BT one) will do the job with locally managed voice synthesis... The old espeak utility does the job, with a few tuning for language/pitch/speed and sometimes spelling adaptations for some words. Some others, newest, are a bit less synthetic but espeak will give a Star-Wars C-3PO touch to your notifications, not sending a single word of your rebellion plans to google Empire.
Since 2 years and a PI kernel change, have to pipe espeak output (set to stdout) to aplay as sound does not come directly from espeak anymore. At least using jack connector.
In my bash scripts for french language I have this linked to my garage door open/close switch:
In the switch I have setup this for action on:
script:///home/pi/domoticz/scripts/espeakSectGarage.sh 1
And for action off:
script:///home/pi/domoticz/scripts/espeakSectGarage.sh 0
Since 2 years and a PI kernel change, have to pipe espeak output (set to stdout) to aplay as sound does not come directly from espeak anymore. At least using jack connector.
In my bash scripts for french language I have this linked to my garage door open/close switch:
Code: Select all
~/domoticz/scripts $ more espeakSectGarage.sh
#!/bin/bash
ESPEAK_PHRASE=""
case "$1" in
"0")
ESPEAK_PHRASE="Sectionnelle_garage_fermée"
;;
"1")
ESPEAK_PHRASE="Sectionnelle_garage_ouverte"
;;
*)
ESPEAK_PHRASE="Erreur_appel_espeak_garage"
;;
esac
espeak -vfr -s150 --stdout ${ESPEAK_PHRASE} | aplay -D 'default'
script:///home/pi/domoticz/scripts/espeakSectGarage.sh 1
And for action off:
script:///home/pi/domoticz/scripts/espeakSectGarage.sh 0
- jvdz
- Posts: 2328
- Joined: Tuesday 30 December 2014 19:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.107
- Location: Netherlands
- Contact:
Re: Get google home to tell a notification
Maybe you want the Python Plugin: Domoticz-Google-Plugin -> viewtopic.php?f=65&t=27435
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
-
- Posts: 562
- Joined: Sunday 11 December 2016 13:51
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Get google home to tell a notification
thanks for your help, i will look into these links.
-
- Posts: 76
- Joined: Sunday 17 February 2019 15:01
- Target OS: NAS (Synology & others)
- Domoticz version: 4.10
- Contact:
Re: Get google home to tell a notification
Looked for this very long. Best service seem to be is assistant relay. Haven't tried it because it does not run on synology 
Domoticz-Google-plugin or dzga does the job too.
https://assistantrelay.com/

Domoticz-Google-plugin or dzga does the job too.
https://assistantrelay.com/
Check my Domoticz tutorials, ESP8266 and Synology blog at https://www.twoenter.nl/blog
Who is online
Users browsing this forum: No registered users and 1 guest