# Cast node character limit

**URL:** https://discourse.nodered.org/t/cast-node-character-limit/33642
**Category:** General
**Created:** [1 October 2020 20:42 UTC](https://discourse.nodered.org/t/cast-node-character-limit/33642 "2020-10-01T20:42:35Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![cvandingelen](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cvandingelen/32/28595_2.png) [@cvandingelen](https://discourse.nodered.org/u/cvandingelen)
#### Post date: [1 October 2020 20:42 UTC](https://discourse.nodered.org/t/cast-node-character-limit/33642/1 "2020-10-01T20:42:35Z")

</div>

Hi

Is there a way to get around the 160 character limit of the node-red-contrib-cast node?

Can you, for example, make the mp3 separately and then play that mp3?

Regards  
Christophe

---

<div class="post-metadata">

### Author: ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)
#### Post date: [1 October 2020 21:04 UTC](https://discourse.nodered.org/t/cast-node-character-limit/33642/2 "2020-10-01T21:04:07Z")

</div>

you can send audio file using the following msg properties. There is a heep of more info here , file types etc.

> **[node-red-contrib-cast](https://flows.nodered.org/node/node-red-contrib-cast)**
>
> NodeRED nodes to for Chromecast and Google Home

```auto
msg.payload.url = "http://192.168.0.4:1880/alert5.mp3";
msg.payload.volume = 50;
msg.payload.contentType = "audio/mp3";
msg.payload.ip = "192.168.0.19";
msg.payload["port"] = 8009;

```

The file are stored in the httpStatic directory  
more info here  
[https://nodered.org/docs/user-guide/runtime/configuration#runtime-configuration](https://nodered.org/docs/user-guide/runtime/configuration#runtime-configuration)

> [@How to enable ability to input local image files in to node red dashboard](https://discourse.nodered.org/t/how-to-enable-ability-to-input-local-image-files-in-to-node-red-dashboard/3085):
>
> From online forums, I've been able to gleam that I need to make changes to both the //httpAdminRoot: '/admin', and //httpStatic: '/home/node-red-static/', lines in the settings.js file. Are these the only two lines I need to edit to enable adding local files to my flows? Would simply removing their comment dashes provide me with the capability to load local files? Would anyone be able to recommend how I would change these lines so that I could load images from a local folder named "node\_im…

---

<div class="post-metadata">

### Author: ![cvandingelen](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cvandingelen/32/28595_2.png) [@cvandingelen](https://discourse.nodered.org/u/cvandingelen)
#### Post date: [2 October 2020 05:43 UTC](https://discourse.nodered.org/t/cast-node-character-limit/33642/3 "2020-10-02T05:43:35Z")

</div>

Maybe I didn't explain it correctly. You can put text in the cast node and it automatically converts it to mp3. The problem is that you can only do this with 160 characters. I want a way around that, so I was thinking to create the mp3 separately via another node, store that mp3, play it via the cast node and then delete the mp3.

---

<div class="post-metadata">

### Author: ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)
#### Post date: [2 October 2020 06:26 UTC](https://discourse.nodered.org/t/cast-node-character-limit/33642/4 "2020-10-02T06:26:39Z")

</div>

Yes and with those msg properties you can play the mp3.

if you are looking for how to record with node-red try

> **[node-red-contrib-mic](https://www.google.com/url?q=https:%2F%2Fflows.nodered.org%2Fnode%2Fnode-red-contrib-mic&sa=U&ved=2ahUKEwiYqZD1opXsAhVPC-wKHbgdCcAQFjACegQIAxAB&usg=AOvVaw2LXN6IILydHbCWMrQs4goT)**
>
> Node-RED node for microphone (based on nodejs mic : a simple stream wrapper for arecord (Linux (including Raspbian)) and sox (Mac/Windows)).

  

> **[node-red-node-ui-microphone](https://www.google.com/url?q=https:%2F%2Fflows.nodered.org%2Fnode%2Fnode-red-node-ui-microphone&sa=U&ved=2ahUKEwiYqZD1opXsAhVPC-wKHbgdCcAQFjAAegQIBhAB&usg=AOvVaw2GWc4VyjnQ71pXsmTF-7ki)**
>
> A Node-RED ui node to record audio on a dashboard.

  

> **[Store and play wavenet voice message (flow) - Node-RED](https://flows.nodered.org/flow/ac3d25616af3030bdc859762bd2e9e86)**

  

> **[text to speech to audio (flow) - Node-RED](https://flows.nodered.org/flow/2b6b1fa3ca62f36854ce)**

---

<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: [16 October 2020 06:26 UTC](https://discourse.nodered.org/t/cast-node-character-limit/33642/5 "2020-10-16T06:26:41Z")

</div>

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