Unable get Audio to play on Dashboard 1

Hello All,

I've been doing a project that uses audio out and speech

although, I have another instance of nodered where this is working perfectly

this instance not so much!

if I use "audio out" the audio wont play on all web browsers that have that ui page open. only will play locally on the browser that requested it (although this is working on another instance)

If I use "Play Audio" node it plays audio on all open UI's BUT you have to have node-red open in the browser (not the ui, the builder)

Got me stuffed!!

Any help is always appreciated.

Some things to clarify:

  • Are you trying to play audio in a Dashboard (like node-red-dashboard/uibuilder/etc) OR in the Node-RED editor
    • If yes, which dashboard? (1? 2? uibuilder? DIY?)
  • Exact node used (link please)

Hi Steve,

Trying to play audio on the dashboard1
Its for a ticketing machine "Ticket number a1 please proceed to counter 1"

this node plays audio but only if node-red builder is open (strange but true)

The other is ui_audio that comes with dashboard 1

(nitpick) Its the "Node-RED Editor" :wink:

This node is designed to play audio in the Node-RED editor. It has no awareness of a Dashboard

Does this not work?

It does but only locally but if other web browsers have that dashboard open nothing plays which is not the same as the other instance.
The other instance will play audio to all browsers open to the dashboard.
That instance is running dashboard 3.5
The problem instance is running 3.6.5 if that helps

Use the debug node set to complete message object, before the audio out node. You should see other message properties, one will be the socketid, delete this prior to the audio node.

Also, in case you didnt know, most browsers have an autoplay policy meaning you must have clicked inside the other dashboards at least once before audio will play.

@ e1cid Thanks. that fixed it!

@Thanks Steve as well