Skip to content

Commit 1a0e44a

Browse files
committed
Add unspokenPunctuation to SpeechRecognition (#187)
1 parent 4d6e11e commit 1a0e44a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎index.bs‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ interface SpeechRecognition : EventTarget {
176176
attribute DOMString lang;
177177
attribute boolean continuous;
178178
attribute boolean interimResults;
179+
attribute boolean unspokenPunctuation;
179180
attribute unsigned long maxAlternatives;
180181
attribute boolean processLocally;
181182
attribute ObservableArray<SpeechRecognitionPhrase> phrases;
@@ -325,6 +326,10 @@ interface SpeechRecognitionPhrase {
325326
When set to false, interim results must not be returned.
326327
The default value must be false. Note, this attribute setting does not affect final results.</dd>
327328

329+
<dt><dfn attribute for=SpeechRecognition>unspokenPunctuation</dfn> attribute</dt>
330+
<dd>This attribute controls whether the speech recognition engine automatically infers and inserts punctuation marks (such as periods, commas, and question marks) based on natural pauses, grammatical structure, and prosody, without requiring the user to explicitly speak the punctuation commands.
331+
The default value must be false.</dd>
332+
328333
<dt><dfn attribute for=SpeechRecognition>maxAlternatives</dfn> attribute</dt>
329334
<dd>This attribute will set the maximum number of {{SpeechRecognitionAlternative}}s per result.
330335
The default value is 1.</dd>

0 commit comments

Comments
 (0)