I am wanting to play a sound (MP3) on a ubuntu machine.
I have got 3 nodes but can't get any of them to work.
Say the file is called "sound.mp3". It can be where ever you want.
How would I got it to play when I send a signal to the node?
Basically this:
I know that's a function node. But just to show the idea of what I am saying.
I went a bit rogue and tried this too:
[{"id":"54c7109a.bf10d8","type":"inject","z":"9c1e5490.5d70b","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":150,"y":580,"wires":[["de798816.862268"]]},{"id":"ffe9a2de.ed2d5","type":"debug","z":"9c1e5490.5d70b","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":530,"y":560,"wires":[]},{"id":"de798816.862268","type":"exec","z":"9c1e5490.5d70b","command":"mpg123 /home/me/.node-red/public/Sounds/Bell-ding-loud.mp3","addpay":false,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"Ding","x":300,"y":580,"wires":[[],["ffe9a2de.ed2d5"],["d782c383.3f657"]]},{"id":"d782c383.3f657","type":"debug","z":"9c1e5490.5d70b","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":530,"y":600,"wires":[]}]
SILENCE.
But the outputs are:
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3 version 1.25.10; written and copyright by Michael Hipp and others free software (LGPL) without any warranty but with best wishesDirectory: /home/me/.node-red/public/Sounds/Playing MPEG stream 1 of 1: Bell-ding-loud.mp3 ...MPEG 1.0 L III cbr192 44100 j-s[0:06] Decoding of Bell-ding-loud.mp3 finished.
And {"code":0}
for the second debug node.
If I do it from the CLI it plays.
Where's the elephant?