Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 1.03 KB

File metadata and controls

45 lines (30 loc) · 1.03 KB
title short-title slug page-type browser-compat
SpeechSynthesis: paused property
paused
Web/API/SpeechSynthesis/paused
web-api-instance-property
api.SpeechSynthesis.paused

{{APIRef("Web Speech API")}}

The paused read-only property of the {{domxref("SpeechSynthesis")}} interface is a boolean value that returns true if the SpeechSynthesis object is in a paused state, or false if not.

It can be set to {{domxref("SpeechSynthesis.pause()", "paused")}} even if nothing is currently being spoken through it. If {{domxref("SpeechSynthesisUtterance","utterances")}} are then added to the utterance queue, they will not be spoken until the SpeechSynthesis object is unpaused, using {{domxref("SpeechSynthesis.resume()")}}.

Value

A boolean value.

Examples

const synth = window.speechSynthesis;

synth.pause();

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

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also