Page 1 of 1
Get google home to tell a notification
Posted: Friday 05 March 2021 23:52
by tjabas
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.
Re: Get google home to tell a notification
Posted: Saturday 06 March 2021 8:17
by lost
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:
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'
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
Re: Get google home to tell a notification
Posted: Saturday 06 March 2021 10:09
by jvdz
Maybe you want the Python Plugin: Domoticz-Google-Plugin ->
viewtopic.php?f=65&t=27435
Re: Get google home to tell a notification
Posted: Saturday 06 March 2021 16:32
by tjabas
thanks for your help, i will look into these links.
Re: Get google home to tell a notification
Posted: Saturday 03 April 2021 21:21
by twoenter
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/
Re: Get google home to tell a notification
Posted: Wednesday 28 April 2021 12:17
by tjabas
thanks