Skip to content

Commit 42dcee1

Browse files
author
Dave Conway-Jones
committed
edit ui-microphone node info, set deafult reco to 5s
1 parent 31d45a1 commit 42dcee1

File tree

5 files changed

+18
-18
lines changed

5 files changed

+18
-18
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<script type="text/html" data-help-name="ui_microphone">
2-
<p>A Node-RED dashboard ui node to capture audio or to recognize
2+
<p>A Node-RED dashboard ui node to capture audio, or to recognize
33
spoken text from the brower's microphone.</p>
44
<h3>Outputs</h3>
55
<dl class="message-properties">
66
<dt>payload<span class="property-type">Buffer or string</span></dt>
77
<dd>The captured audio in the required format or recognized text.</dd>
8-
<dt>done<span class="property-type">Bool</span></dt>
9-
<dd>Result is final result(speech recognition mode only)</dd>
8+
<dt>done<span class="property-type">boolean</span></dt>
9+
<dd>The payload is the final result (speech recognition mode only)</dd>
1010
</dl>
1111
<h3>Details</h3>
1212
<p>This node provides a single button widget in the dashboard.</p>
13-
<p><b>Audio Input</b> mode and <b>Speech Recognition</b> mode can
13+
<p><b>Audio Input</b> mode or <b>Speech Recognition</b> mode can
1414
be selected.</p>
1515
<dl>
1616
<dt>Audio Input mode</dt>
@@ -21,20 +21,19 @@ <h3>Details</h3>
2121
<dd>
2222
<p>Speech recognition is performed and the recognized text
2323
is sent as payload value.<p>
24-
<p>If <b>Interim Results</b> is checked, the node sends
25-
interim results. In addition, <code>done</code>
26-
property is set to <code>true</code> if the result is interim,
27-
otherwise <code>false</code>.</p>
24+
<p>If <b>Interim Results</b> is checked, the node sends
25+
interim results as words are recognised. Wehn complete, the <code>done</code>
26+
property is set to <code>true</code>. If the result is interim it will be set to <code>false</code>.</p>
2827
<p>Note: This mode needs internet access for operation and
29-
only works on browser that supports SpeechRecognition
28+
only works on browsers that supports SpeechRecognition
3029
feature of Web Speech API (e.g. Chrome). Mode selector is
3130
not shown if SpeechRecognition feature is not supported. </p>
3231
</dd>
3332
</dl>
34-
<p>The button can be configured in two modes. Either click begin
35-
to capture audio/recognize speech, and then
36-
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>
33+
<p>The button can be configured in two modes. Either click to begin
34+
to start audio capture or speech recognition, and continue until either the button is pressed again,
35+
or it reaches its configured maximum duration. Or the button can be configured to
36+
record/recognize only while the button is pressed.</p>
3737
<p>If value of the maximum duration is 0, no limit is applied for
3838
audio capture/speech recognition.</p>
39-
<p></p>
4039
</script>

node-red-node-ui-microphone/locales/en-US/ui_microphone.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"record" : "Record",
88
"recog": "Recognize",
99
"mode": "Mode",
10-
"interm": "Interim Results"
10+
"interim": "Send Interim Results"
1111
},
1212
"record" : {
1313
"click": "Click to start, click to stop",

node-red-node-ui-microphone/locales/ja/ui_microphone.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"record" : "録音",
88
"recog": "認識",
99
"mode": "モード",
10-
"interm": "中間結果"
10+
"interim": "中間結果"
1111
},
1212
"record" : {
1313
"click": "クリックで開始・終了",

node-red-node-ui-microphone/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
{
22
"name": "node-red-node-ui-microphone",
3-
"version": "0.2.4",
3+
"version": "0.3.0",
44
"description": "A Node-RED ui node to record audio or to recognize spoken text on a dashboard.",
55
"author": "Nick O'Leary",
66
"contributors": [
7+
"Dave Conway-Jones",
78
"Hiroyasu Nishiyama"
89
],
910
"license": "Apache-2.0",

node-red-node-ui-microphone/ui_microphone.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
}},
3333
height: {value: 0},
3434
maxLength: { value: 5 },
35-
maxRecogLength: { value: 0 },
35+
maxRecogLength: { value: 5 },
3636
timeslice: { value: 0 },
3737
press : { value: "click" },
3838
mode: { value: "audio" },
@@ -162,7 +162,7 @@
162162
<div class="form-row">
163163
<label>&nbsp;</label>
164164
<input type="checkbox" id="node-input-interimResults" style="display: inline-block; width: auto; vertical-align: top;">
165-
<label for="node-input-interimResults" style="width: 70%;"><span data-i18n="ui_microphone.label.interm"></span></label>
165+
<label for="node-input-interimResults" style="width: 70%;"><span data-i18n="ui_microphone.label.interim"></span></label>
166166
</div>
167167
</div>
168168
<div class="form-row">

0 commit comments

Comments
 (0)