Re: [w3ctag/design-reviews] WG Revision: Web Speech API: SpeechRecognitionResult Timestamps (Issue #1267)

alan33d left a comment (w3ctag/design-reviews#1267)

Thanks for the feedback!

CC  @padenot since using double was their suggestion.

Using double aligns this API with attributes like [BaseAudioContext.currentTime](https://webaudio.github.io/web-audio-api/#dom-baseaudiocontext-currenttime) and [HTMLMediaElement.currentTime](https://html.spec.whatwg.org/multipage/media.html#dom-media-currenttime) which uses double and is measured in seconds. These are the timestamps we expect developers to compare these values with and avoid unit conversions when piping audio streams between Web Audio and VTTCue (https://github.com/WebAudio/web-speech-api/issues/191).

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3ctag/design-reviews/issues/1267#issuecomment-5799873731
You are receiving this because you are subscribed to this thread.

Message ID: <w3ctag/design-reviews/issues/1267/5799873731@github.com>

Received on Wednesday, 23 September 2026 17:43:03 UTC