node-red-contrib-play-audio
Version:
A node-red node for playing audio in the browser
9 lines (8 loc) • 468 B
HTML
<script type="text/x-red" data-help-name="play audio">
<p>A node to play audio in the browser.</p>
<p>To work the editor web page must be open.</p>
<p>Expects <code>msg.payload</code> to contain a buffer of a <b>wav</b> file.</p>
<p>If your browser has native support for Text-to-Speech then a <code>msg.payload</code>
can also be a <b>string</b> to be read aloud.</p>
<p>The button will stop the audio that is currently playing.</p>
</script>