Skip to content

Commit

Permalink
Delay speech synthesis and recognition APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
noamr authored Feb 1, 2022
1 parent 23910ea commit 3bc55b3
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion prerendering.bs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,21 @@ spec: screen-capture; urlPrefix: https://w3c.github.io/mediacapture-screen-share
spec: audio-output; urlPrefix: https://w3c.github.io/mediacapture-output/
type: method; for: MediaDevices
text: selectAudioOutput(); url: dom-mediadevices-selectaudiooutput

spec: speech-api; urlPrefix: https://wicg.github.io/speech-api/
type: interface
text: SpeechSynthesis; url: speechsynthesis
type: method; for: SpeechSynthesis
text: speak(utterance); url: dom-speechsynthesis-speak
text: cancel(); url: dom-speechsynthesis-cancel
text: pause(); url: dom-speechsynthesis-pause
text: resume(); url: dom-speechsynthesis-resume
text: getVoices(); url: dom-speechsynthesis-getvoices
type: interface
text: SpeechRecognition; url: speechrecognition
type: method; for: SpeechRecognition
text: start(); url: dom-speechrecognition-start
text: stop(); url: dom-speechrecognition-stop
text: abort(); url: dom-speechrecognition-abort
</pre>
<pre class="biblio">
{
Expand Down Expand Up @@ -842,6 +856,12 @@ Add {{[DelayWhilePrerendering]}} to {{XRSystem/requestSession()}}.

Add {{[DelayWhilePrerendering]}} to {{CredentialsContainer/get()}}, {{CredentialsContainer/store()}}, and {{CredentialsContainer/create()}}.

<h4 id="web-speech-patch">Web Speech API</h4>

Add {{[DelayWhilePrerendering]}} to {{SpeechSynthesis/speak(utterance)}}, {{SpeechSynthesis/cancel()}}, {{SpeechSynthesis/pause()}}, and {{SpeechSynthesis/resume()}}.

Add {{[DelayWhilePrerendering]}} to {{SpeechRecognition/start()}}, {{SpeechRecognition/stop()}}, and {{SpeechRecognition/abort()}}.

<h3 id="implicitly-restricted">Implicitly restricted APIs</h3>

Some APIs do not need modifications because they will automatically fail or no-op without a property that a [=prerendering browsing context=], its [=browsing context/active window=], or its [=active document=] will never have. These properties include:
Expand Down

0 comments on commit 3bc55b3

Please sign in to comment.