Node-red-contrib-google-home-notify no longer working

Not sure what happened but after an update I get TypeError: Googletts is not a function. When I look into the google-home-notify code I see the require but when I look into the google-tts-api I've noticed that it has changed from the last version to the current.

Is node-red-contrib-google-home-notify working for anyone else?

Catch: Google Home Tab
Org topic: home/google/hub
TTS: Test message
Type: googlehome-notify
Name: Google Nest Hub
Message: TypeError: Googletts is not a function
Stack:
TypeError: Googletts is not a function at getSpeechUrl (/home/njc/.node-red/node_modules/google-home-notify/google-home-notifier.js:31:5) at GoogleHomeNotifier.notify (/home/njc/.node-red/node_modules/google-home-notify/google-home-notifier.js:19:5) at GoogleHomeNotifier._inputCallback (/home/njc/.node-red/node_modules/node-red-contrib-google-home-notify/node-red-google-home-notify.js:111:33) at hooks.trigger (/usr/local/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:203:26) at Object.trigger (/usr/local/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/hooks.js:113:9) at GoogleHomeNotifier.Node._emitInput (/usr/local/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:195:11) at GoogleHomeNotifier.Node.emit (/usr/local/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:179:25) at GoogleHomeNotifier.Node.receive (/usr/local/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:476:10) at Immediate._onImmediate (/usr/local/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/flows/Flow.js:657:52) at runCallback (timers.js:705:18)

Input msg JSON{"topic":"home/google/hub","payload":"Test message","qos":0,"retain":false,"_msgid":"7c95e26d.ab536c","error":{"message":"TypeError: Googletts is not a function","source":{"id":"51ac1d46.934514","type":"googlehome-notify","name":"Google Nest Hub","count":1},"stack":"TypeError: Googletts is not a function\n at getSpeechUrl (/home/njc/.node-red/node_modules/google-home-notify/google-home-notifier.js:31:5)\n at GoogleHomeNotifier.notify (/home/njc/.node-red/node_modules/google-home-notify/google-home-notifier.js:19:5)\n at GoogleHomeNotifier._inputCallback (/home/njc/.node-red/node_modules/node-red-contrib-google-home-notify/node-red-google-home-notify.js:111:33)\n at hooks.trigger (/usr/local/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:203:26)\n at Object.trigger (/usr/local/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/hooks.js:113:9)\n at GoogleHomeNotifier.Node._emitInput (/usr/local/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:195:11)\n at GoogleHomeNotifier.Node.emit (/usr/local/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:179:25)\n at GoogleHomeNotifier.Node.receive (/usr/local/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:476:10)\n at Immediate._onImmediate (/usr/local/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/flows/Flow.js:657:52)\n at runCallback (timers.js:705:18)"}}

Okay, I've looked at the Change (https://github.com/zlargon/google-tts/blob/master/CHANGELOG.md) log for google-tts-api and there's breakage.
I'll notify the maintainer of google-home-notify and node-red-contrib-google-home-notify.

1 Like

Okay, seems that node-red-contrib-google-home-notify is no longer supported. The git repo recommends using cast instead. There is also a castv2. I'll give those a try.