Help us understand the problem. What is going on with this article?

google-home-notifierでError: get key failed from googleの対処(2018.12.1版)

More than 1 year has passed since last update.

事象

google-home-notifierでGoogle Homeを喋らせている際、以下エラーで弾かれる。
Google TTSの仕様変更が入り、Google Translate APIのバージョンが0.0.4に上がっていた。
参考URL: https://github.com/zlargon/google-tts/blob/master/CHANGELOG.md

Error: get key failed from google
    at /google-home/node_modules/google-tts-api/lib/key.js:23:23
    at process.internalTickCallback (internal/process/next_tick.js:77:7)

解決策

以下URLを参考にしてgoogle-tts-apiを0.0.4にアップデート。
参考URL: https://github.com/zlargon/google-tts/issues/22

node_modules/google-home-notifier/package.json
  "dependencies": {
    "body-parser": "^1.15.2",
    "castv2-client": "^1.1.2",
    "express": "^4.14.0",
    "google-tts-api": "0.0.4", //ここを0.0.4に変更
    "mdns": "^2.3.3",
    "ngrok": "^2.2.4"
  },
cd node_modules/google-home-notifier
npm update google-tts-api
Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away