Node-Red configuration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ui_audio.html 1.1KB

12345678910111213141516
  1. <script type="text/html" data-help-name="ui_audio">
  2. <p>Plays audio or text to speech (TTS) in the dashboard.</p>
  3. <p>To work the dashboard web page must be open.</p>
  4. <p>Expects <code>msg.payload</code> to contain a buffer of a <b>wav</b> or <b>mp3</b> file.</p>
  5. <p>If your browser has native support for Text-to-Speech then a <code>msg.payload</code>
  6. can also be a <b>string</b> to be read aloud.</p>
  7. <p>Optionally setting <code>msg.level</code> from 0 to 100 will change the volume from 0 to 100%. Default is 100%.
  8. In audio mode you can go up to 300, but you may get distortion.</p>
  9. <p>When a <code>msg.reset</code> is available with value <code>true</code>, then playback of the current audio fragment will be stopped.</p>
  10. <p>The <b>node status</b> reflects the current playback status:
  11. <ul>
  12. <li><b>started:</b> the audio fragment playback has been started.</li>
  13. <li><b>reset:</b> the audio fragment playback has been reset (i.e. stopped before completed).</li>
  14. </ul>
  15. As soon as the audio fragment playback is completed, the node status will be cleared automatically.</p>
  16. </script>