[Webkit-unassigned] [Bug 191745] New: Web Speech API: `speechSynthesis.clear()` removes utterances from following `speechSynthesis.speak(...)` as well

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Nov 16 06:13:38 PST 2018


https://bugs.webkit.org/show_bug.cgi?id=191745

            Bug ID: 191745
           Summary: Web Speech API: `speechSynthesis.clear()` removes
                    utterances from following `speechSynthesis.speak(...)`
                    as well
           Product: WebKit
           Version: Safari 12
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit Misc.
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: giovanni.piller at gmail.com

`speechSynthesis.clear()` removes following `speechSynthesis.speak(....)` instances as well.

JSFiddle: https://jsfiddle.net/4perg5cs/1/

Code for reproduction:

```
var synth = window.speechSynthesis;

var utterance1 = new SpeechSynthesisUtterance('How about we say this now? This is quite a long sentence to say.');
var utterance2 = new SpeechSynthesisUtterance('We should say another sentence too, just to be on the safe side.');
var utterance3 = new SpeechSynthesisUtterance('WebKit only speaks this.');

synth.speak(utterance1);

synth.cancel();


synth.speak(utterance2);
synth.speak(utterance3);

// actual result: only utterance3 is spoken
// expected result: utterance2 is spoken, then utterance3 is spoken
```

Note: adding multiple `speechSynthesis.speak(....)` before utterance3 won't change the actual result.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20181116/0cdfa1f1/attachment.html>


More information about the webkit-unassigned mailing list