LoginSignup
7
6

More than 5 years have passed since last update.

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

Last updated at Posted at 2018-11-30

事象

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
7
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
6