# Node-red-contrib-cast

**URL:** <https://discourse.nodered.org/t/node-red-contrib-cast/36851>\
**Category:** General\
**Created:** [2 December 2020 08:41 UTC](https://discourse.nodered.org/t/node-red-contrib-cast/36851 "2020-12-02T08:41:50Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![M-a-r-k](https://avatars.discourse-cdn.com/v4/letter/m/9e8a1a/32.png) [@M-a-r-k](https://discourse.nodered.org/u/M-a-r-k)\
**Post date:** [2 December 2020 08:41 UTC](https://discourse.nodered.org/t/node-red-contrib-cast/36851/1 "2020-12-02T08:41:50Z")

</div>

Been using node-red-contrib-cast for months, then yesterday just stopped working and get error,  
Not able to get media file via google-tts:get token key failed from google. I did google it and found this install: cd ~/.node-red/node\_modules/google-home-notify`edit package.json and change the dependency on 'google-tts-api' from '0.0.2-alpha1' to '0.0.3', but have no clue how to do this, running node red in Docker on RP4. any help much appreciated

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [2 December 2020 09:51 UTC](https://discourse.nodered.org/t/node-red-contrib-cast/36851/2 "2020-12-02T09:51:30Z")

</div>

> [@M-a-r-k](#):
>
> node-red-contrib-cast

Are you using the latest version of the cast node? It was updated two weeks ago.

---

<div class="post-metadata">

**Author:** ![M-a-r-k](https://avatars.discourse-cdn.com/v4/letter/m/9e8a1a/32.png) [@M-a-r-k](https://discourse.nodered.org/u/M-a-r-k)\
**Post date:** [2 December 2020 14:07 UTC](https://discourse.nodered.org/t/node-red-contrib-cast/36851/3 "2020-12-02T14:07:25Z")

</div>

yes, update all the other day

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [2 December 2020 14:22 UTC](https://discourse.nodered.org/t/node-red-contrib-cast/36851/4 "2020-12-02T14:22:36Z")

</div>

I see multiple users have the same issue. [https://github.com/Hypnos3/node-red-contrib-cast/issues/123](https://github.com/Hypnos3/node-red-contrib-cast/issues/123)

Was the workaround you found for the cast node? If so then does that file exist on your system?  
Edit: I see you are using Docker so that will change where the files are and I don't know much about Docker so probably can't help with this.

---

<div class="post-metadata">

**Author:** ![M-a-r-k](https://avatars.discourse-cdn.com/v4/letter/m/9e8a1a/32.png) [@M-a-r-k](https://discourse.nodered.org/u/M-a-r-k)\
**Post date:** [3 December 2020 23:25 UTC](https://discourse.nodered.org/t/node-red-contrib-cast/36851/5 "2020-12-03T23:25:41Z")

</div>

Sorted, use node node-red-contrib-castv2

---

<div class="post-metadata">

**Author:** ![Will1](https://avatars.discourse-cdn.com/v4/letter/w/46a35a/32.png) [@Will1](https://discourse.nodered.org/u/Will1)\
**Post date:** [4 December 2020 22:11 UTC](https://discourse.nodered.org/t/node-red-contrib-cast/36851/6 "2020-12-04T22:11:30Z")

</div>

Hi @M-a-r-k could you please share how you used the new castv2 node? this is breaking for me as well

---

<div class="post-metadata">

**Author:** ![fernandezjm](https://avatars.discourse-cdn.com/v4/letter/f/9f8e36/32.png) [@fernandezjm](https://discourse.nodered.org/u/fernandezjm)\
**Post date:** [9 December 2020 20:29 UTC](https://discourse.nodered.org/t/node-red-contrib-cast/36851/7 "2020-12-09T20:29:37Z")

</div>

> [@M-a-r-k](#):
>
> node-red-contrib-castv2

Hi @M-a-r-k, this is the function that I use to send voice messages to Google Home with node-red-contrib-castv2 and it works for me. See [i8beef / node-red-contrib-castv2](https://github.com/i8beef/node-red-contrib-castv2).  
I hope you will find it useful.  
Regards.

```auto
var text=msg.payload; //The text to send comes in msg.payload
msg={
  payload: {
    app: "DefaultMediaReceiver",
    type: "TTS",
    text: text,
    speed: 1, // optional to adjust TTS speed, defaults to 1
    language: "es", // optional to set TTS language, default to en
    metadata: { // optional unless desired, follows normal metadata rules noted above
      title: "Media title"
    }
  }
}
return msg;

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [23 December 2020 20:29 UTC](https://discourse.nodered.org/t/node-red-contrib-cast/36851/8 "2020-12-23T20:29:45Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
