Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. SpeechSynthesisEvent
  4. elapsedTime

SpeechSynthesisEvent: elapsedTime property

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

TheelapsedTime read-only property of theSpeechSynthesisEvent returns the elapsed time in seconds, after theSpeechSynthesisUtterance.text started being spoken, at which theevent was triggered.

Value

A float containing the elapsed time, in seconds.

Note:Early versions of the specification required the elapsed time in milliseconds.Check thecompatibility table below for your browser.

Examples

js
utterThis.onboundary = (event) => {  console.log(    `${event.name} boundary reached after ${event.elapsedTime} seconds.`,  );};

Specifications

Specification
Web Speech API
# dom-speechsynthesisevent-elapsedtime

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp