Skip to content

Commit

Permalink
edit ui-microphone node info, set deafult reco to 5s
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Conway-Jones committed Dec 28, 2020
1 parent 31d45a1 commit 42dcee1
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
25 changes: 12 additions & 13 deletions node-red-node-ui-microphone/locales/en-US/ui_microphone.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<script type="text/html" data-help-name="ui_microphone">
<p>A Node-RED dashboard ui node to capture audio or to recognize
<p>A Node-RED dashboard ui node to capture audio, or to recognize
spoken text from the brower's microphone.</p>
<h3>Outputs</h3>
<dl class="message-properties">
<dt>payload<span class="property-type">Buffer or string</span></dt>
<dd>The captured audio in the required format or recognized text.</dd>
<dt>done<span class="property-type">Bool</span></dt>
<dd>Result is final result(speech recognition mode only)</dd>
<dt>done<span class="property-type">boolean</span></dt>
<dd>The payload is the final result (speech recognition mode only)</dd>
</dl>
<h3>Details</h3>
<p>This node provides a single button widget in the dashboard.</p>
<p><b>Audio Input</b> mode and <b>Speech Recognition</b> mode can
<p><b>Audio Input</b> mode or <b>Speech Recognition</b> mode can
be selected.</p>
<dl>
<dt>Audio Input mode</dt>
Expand All @@ -21,20 +21,19 @@ <h3>Details</h3>
<dd>
<p>Speech recognition is performed and the recognized text
is sent as payload value.<p>
<p>If <b>Interim Results</b> is checked, the node sends
interim results. In addition, <code>done</code>
property is set to <code>true</code> if the result is interim,
otherwise <code>false</code>.</p>
<p>If <b>Interim Results</b> is checked, the node sends
interim results as words are recognised. Wehn complete, the <code>done</code>
property is set to <code>true</code>. If the result is interim it will be set to <code>false</code>.</p>
<p>Note: This mode needs internet access for operation and
only works on browser that supports SpeechRecognition
only works on browsers that supports SpeechRecognition
feature of Web Speech API (e.g. Chrome). Mode selector is
not shown if SpeechRecognition feature is not supported. </p>
</dd>
</dl>
<p>The button can be configured in two modes. Either click begin
to capture audio/recognize speech, and then
continue to capture audio/recognize text until the button is pressed again, or it reaches its configured maximum duration. Or the button can be configured to record/recognize only while the button is pressed.</p>
<p>The button can be configured in two modes. Either click to begin
to start audio capture or speech recognition, and continue until either the button is pressed again,
or it reaches its configured maximum duration. Or the button can be configured to
record/recognize only while the button is pressed.</p>
<p>If value of the maximum duration is 0, no limit is applied for
audio capture/speech recognition.</p>
<p></p>
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"record" : "Record",
"recog": "Recognize",
"mode": "Mode",
"interm": "Interim Results"
"interim": "Send Interim Results"
},
"record" : {
"click": "Click to start, click to stop",
Expand Down
2 changes: 1 addition & 1 deletion node-red-node-ui-microphone/locales/ja/ui_microphone.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"record" : "録音",
"recog": "認識",
"mode": "モード",
"interm": "中間結果"
"interim": "中間結果"
},
"record" : {
"click": "クリックで開始・終了",
Expand Down
3 changes: 2 additions & 1 deletion node-red-node-ui-microphone/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"name": "node-red-node-ui-microphone",
"version": "0.2.4",
"version": "0.3.0",
"description": "A Node-RED ui node to record audio or to recognize spoken text on a dashboard.",
"author": "Nick O'Leary",
"contributors": [
"Dave Conway-Jones",
"Hiroyasu Nishiyama"
],
"license": "Apache-2.0",
Expand Down
4 changes: 2 additions & 2 deletions node-red-node-ui-microphone/ui_microphone.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
}},
height: {value: 0},
maxLength: { value: 5 },
maxRecogLength: { value: 0 },
maxRecogLength: { value: 5 },
timeslice: { value: 0 },
press : { value: "click" },
mode: { value: "audio" },
Expand Down Expand Up @@ -162,7 +162,7 @@
<div class="form-row">
<label>&nbsp;</label>
<input type="checkbox" id="node-input-interimResults" style="display: inline-block; width: auto; vertical-align: top;">
<label for="node-input-interimResults" style="width: 70%;"><span data-i18n="ui_microphone.label.interm"></span></label>
<label for="node-input-interimResults" style="width: 70%;"><span data-i18n="ui_microphone.label.interim"></span></label>
</div>
</div>
<div class="form-row">
Expand Down

0 comments on commit 42dcee1

Please sign in to comment.