このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。

View in English Always switch to English

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月.

pausedSpeechSynthesis インターフェイスの読み取り専用プロパティで、論理値を返します。true はこの SpeechSynthesis オブジェクトが一時停止状態の場合、false はそれ以外の場合に返します。

現在、音声が出力されていない場合でも、paused に設定することができます。その後、utterances が発話キューに追加されても、SpeechSynthesis オブジェクトの一時停止を SpeechSynthesis.resume() で解除するまで、それらは発話されません。

論理値です。

js
const synth = window.speechSynthesis;

synth.pause();

const amIPaused = synth.paused; // true を返す

仕様書

Specification
Web Speech API
# dom-speechsynthesis-paused

ブラウザーの互換性

関連情報