Page 1 of 1

Long delay on Google Home voice notifications

Posted: Wednesday 04 December 2019 10:05
by Sherlock
Hi all,

I am using Node-Red to send a voice notification to my Google Home Mini when a doorbell is pushed in Domoticz.
This set-up with the Google Home Notify node is working allright but it seems to me there is a long delay between the moment of pressing the doorbell and the actual spoken notification on the Google Home Mini (approx. 7-8 seconds). Not so very effective.
When I output the message via the Play Audio node, the audio message comes through immediately (on my monitor in this case).
Obviously the route to the Google servers and the translation from text-to-speech (TTS) is taking a long time.
My question is: 1. Are there more users with the same experience? and 2. Is there is a solution for this behaviour?

The Node-Red flow I am using:

Code: Select all

[{"id":"13e317fc.3295e","type":"tab","label":"Flow 4","disabled":false,"info":""},{"id":"617706bf.40a8e","type":"mqtt in","z":"13e317fc.3295e","name":"","topic":"domoticz/out","qos":"2","datatype":"auto","broker":"da355387.6ab0e8","x":130,"y":180,"wires":[["b4e236bf.60b238"]]},{"id":"c716740f.d9cb5","type":"switch","z":"13e317fc.3295e","name":"","property":"payload.idx","propertyType":"msg","rules":[{"t":"eq","v":"47","vt":"num"},{"t":"eq","v":"53","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":430,"y":180,"wires":[["7fd7a2b8.c6210c","6d3a12e5.c7694c"],[]]},{"id":"7fd7a2b8.c6210c","type":"debug","z":"13e317fc.3295e","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":610,"y":174,"wires":[]},{"id":"b4e236bf.60b238","type":"json","z":"13e317fc.3295e","name":"","property":"payload","action":"","pretty":false,"x":290,"y":180,"wires":[["c716740f.d9cb5"]]},{"id":"cb54564d.210728","type":"play audio","z":"13e317fc.3295e","name":"","voice":"1","x":650,"y":240,"wires":[]},{"id":"6d3a12e5.c7694c","type":"change","z":"13e317fc.3295e","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"front door","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":460,"y":240,"wires":[["fe164df4.ceead8"]]},{"id":"fe164df4.ceead8","type":"googlehome-notify","z":"13e317fc.3295e","server":"b24bbd5a.8161b8","name":"","x":680,"y":300,"wires":[]},{"id":"da355387.6ab0e8","type":"mqtt-broker","z":"","name":"mqtt broker testpi","broker":"0.0.0.0","port":"1883","clientid":"","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"b24bbd5a.8161b8","type":"googlehome-config-node","z":"","ipaddress":"0.0.0.0","name":"","language":"nl"}]

Re: Long delay on Google Home voice notifications

Posted: Sunday 15 December 2019 13:52
by xury
Maybe you should try using node-red-contrib-cast, or node-red-contrib-castv2 instead.
I use it and I have no delay.

Re: Long delay on Google Home voice notifications

Posted: Thursday 19 December 2019 16:34
by Sherlock
Hi xury,
Thank you for your reply.
I think I have used the node-red-contrib-cast ( I am not at home now, so I am not sure).
But maybe you can post me the flow you have used. That way I can see how you solved it.
Thank you

Re: Long delay on Google Home voice notifications

Posted: Saturday 21 December 2019 11:16
by Sherlock
Hi xury,
When i am using node-red-contrib-cast (in a simple flow), I still have a delay of approx. 7-8 seconds before spoken text is heard on google home mini.
This is the flow I am using:

Code: Select all

[{"id":"1f26932b.529805","type":"tab","label":"Flow 3","disabled":false,"info":""},{"id":"264837.d64f07ca","type":"cast-to-client","z":"1f26932b.529805","name":"","url":"","contentType":"","message":"hallo","language":"nl","ip":"192.168.0.10","port":"","volume":"","x":600,"y":300,"wires":[[]]},{"id":"38b9a56.1d057da","type":"inject","z":"1f26932b.529805","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":400,"y":300,"wires":[["264837.d64f07ca"]]}]