2017-07-07, 06:38 PM
More testing ... Yes, it does work with WAV files. The big caveat on this node is that you won't hear the audio if the editor window isn't open on your browser.
Try this:
Try this:
Code:
[
{
"id": "aa7ef48e.cf20a8",
"type": "play audio",
"z": "def155ce.cb8dc8",
"name": "",
"voice": "2",
"x": 889.9374847412109,
"y": 772.3333873748779,
"wires": []
},
{
"id": "8a14d903.578f38",
"type": "inject",
"z": "def155ce.cb8dc8",
"name": "",
"topic": "",
"payload": "",
"payloadType": "date",
"repeat": "",
"crontab": "",
"once": false,
"x": 337.94447326660156,
"y": 771.4167175292969,
"wires": [
[
"c24912be.27dd2"
]
]
},
{
"id": "c24912be.27dd2",
"type": "file in",
"z": "def155ce.cb8dc8",
"name": "",
"filename": "/usr/share/opencpn/sounds/1bells.wav",
"format": "",
"chunk": false,
"x": 585.9479522705078,
"y": 865.2535095214844,
"wires": [
[
"aa7ef48e.cf20a8"
]
]
}
]