Cast node character limit

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

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

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

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.

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

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




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