SpeechSynthesis.paused
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2018年9月.
SpeechSynthesis
接口的只读属性 paused
是一个 Boolean
值,当SpeechSynthesis
对象处于暂停状态时,返回true
,否则返回 false
。
它能被设置为 暂停状态
即使当前并没有语音在播放队列中。如果utterances
被添加到语音播放队列,队列中的语音并不会播放直到使用 SpeechSynthesis.resume()
使SpeechSynthesis
对象处于非暂停状态。