SpeechSynthesis: paused-Eigenschaft

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since September 2018.

Die schreibgeschützte paused-Eigenschaft des SpeechSynthesis-Interfaces ist ein boolescher Wert, der true zurückgibt, wenn sich das SpeechSynthesis-Objekt in einem pausierten Zustand befindet, oder false, wenn dies nicht der Fall ist.

Sie kann auf paused gesetzt werden, auch wenn momentan nichts darüber gesprochen wird. Falls utterances dann zur Äußerungswarteschlange hinzugefügt werden, werden sie nicht gesprochen, bis das SpeechSynthesis-Objekt mit SpeechSynthesis.resume() fortgesetzt wird.

Wert

Ein boolescher Wert.

Beispiele

js
const synth = window.speechSynthesis;

synth.pause();

const amIPaused = synth.paused; // will return true

Spezifikationen

Specification
Web Speech API
# dom-speechsynthesis-paused

Browser-Kompatibilität

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
paused

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support

Siehe auch