0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Node-REDのnode-red-contrib-castがGoogle-TTSの仕様変更で動作しなくなった件

Posted at

経緯

Andoroid端末上でNodo.jsアプリを実行してみたで作成したgoogle homeに喋らせるシステムが昨年末頃から動作しなくなり、時間ができたので調査してみた。

事象

Node-REDのnode-red-contrib-castを使用し、POSTされたテキストをリビングのGoogolehome miniに喋らせる処理を作成している(「XXX.XXX.XXX.XXX」は本来Googlehome miniのIPアドレス)。このnode-red-contrib-castが昨年末からNot able to get media file via google-tts:get token key failed from googleといったエラーを出し、処理が異常終了していた。
image.png

原因

ネットで調べてみると、どうもgoogle-tts-apiの仕様変更が原因とのこと。google-tts-apiをアップデートすると治るといった事例もあったが、改善されず。
苦労して英文のページを読み進めていくと、GitHubのError in TTS #123に最新のnode-red-contrib-castでは事象が改善されているとの記述が。

対処

node-red-contrib-cast0.2.17にアップデートすれば改善されるらしい。さて、Node-REDのノードのアップデートはどうやってやるのか・・・

調べた結果、Node-RED右上のハンバーガーメニューから、「パレットの管理」>「現在のノード」を開き、node-red-contrib-castを検索すると右側に「0.2.17へ更新」のボタンが。
※参考画像は別のノードのもの。
image.png
ノード更新後、Node-REDを再起動すると無事Googlehome miniが喋るようになった。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?