UNPKG

@5minds/node-red-dashboard-2-processcube-audio-capture

Version:
60 lines (52 loc) 2.1 kB
<script type="text/javascript"> RED.nodes.registerType('ui-audio-capture', { category: 'ProcessCube UI', color: '#00aed7', defaults: { name: { value: '' }, group: { type: 'ui-group', required: true }, start: { value: '' }, stop: { value: '' }, send: { value: '' }, }, inputs: 0, outputs: 1, icon: 'sound.svg', label: function () { return this.name || 'audio-capture'; }, }); </script> <script type="text/html" data-template-name="ui-audio-capture"> <div class="form-row"> <label for="node-input-name"><i class="fa fa-tag"></i> Name</label> <input type="text" id="node-input-name" placeholder="Name" /> </div> <div class="form-row"> <label for="node-input-group"><i class="fa fa-table"></i> Group</label> <input type="text" id="node-input-group" /> </div> <div class="form-row"> <label for="node-input-start"><i class="fa fa-table"></i> Start</label> <input type="text" id="node-input-start" /> </div> <div class="form-row"> <label for="node-input-stop"><i class="fa fa-table"></i> Stop</label> <input type="text" id="node-input-stop" /> </div> <div class="form-row"> <label for="node-input-send"><i class="fa fa-table"></i> Send</label> <input type="text" id="node-input-send" /> </div> </script> <script type="text/markdown" data-help-name="ui-audio-capture"> Waiting for end events that are finished. ## Outputs : payload.fileBase64 (string): Audio as base64 coded string : payload.fileBlob (buffer): Audio as buffer : payload.fileChunks (array): Audio as array of chunks : payload.filePath (string): Filename as temporary path for the audio file ### References - [The ProcessCube&copy; Developer Network](https://processcube.io) - All documentation for the ProcessCube&copy; platform - [ProcessCube&copy; LowCode Integration](https://processcube.io/docs/node-red) - LowCode integration in ProcessCube&copy; </script>