sudo apt-get install avahi-daemon libnss-mdns sudo apt autoremove npm install google-home-notifier --save
vi bin/say.js
#!/usr/local/bin/node const home = require('google-home-notifier'); const argv = process.argv; const text = argv[2] || ''; const lang = argv[3] || 'ja'; const ip = argv[4] || '192.168.x.x'; home.ip(ip, lang); home.device('Google-Home', lang); home.notify(text, (res) => console.log('said '+ text));