v150 · developer trial · speech
Web Speech API: Unspoken Punctuation
A new boolean unspokenPunctuation attribute on SpeechRecognition. When enabled, the engine infers commas, periods, and question marks from pauses, intonation, and grammar — without the speaker having to say "comma" or "period".
concepts
-
Dictation Comparison
Two recognisers running on the same mic. One with
unspokenPunctuation: true, one without. See the same speech rendered two ways, side by side. -
Code Mode
The verbatim case the explainer carves out: coding by voice. With
unspokenPunctuation: falsethe raw transcript surfaces "open paren", "comma" as literal words you can map to your own grammar — auto-inferred punctuation would break this. -
Email Composer
A realistic email editor where you dictate the body naturally. With
unspokenPunctuation: true, commas and periods appear from your speech rhythm without you saying them aloud. Toggle the feature on/off mid-session to feel the difference. Live word and punctuation counts track how much the feature adds to your dictation. -
Punctuation Analyzer
Paste or type raw speech transcript and see exactly which commas, periods, and question marks the engine would infer. Five preset text samples — prose, email, list, code mode, interview — each highlight inferred punctuation in context. Counters track sentence boundaries, mid-sentence commas, and question inferences.
-
Settings Panel
A full
SpeechRecognitionconfiguration builder with every property that affects punctuation inference:unspokenPunctuation,continuous,interimResults,lang,maxAlternatives. The generated JavaScript code block updates in real time; copy it directly into your project. Includes a live mic test using the built configuration. -
Transcript Post-Processor
Paste a raw speech transcript with no punctuation and watch a rule-based processor add commas, periods, and question marks — simulating what Chrome 150's
unspokenPunctuation: trueinfers from prosody. A diff view highlights every added punctuation mark in green. Four presets (prose, email, list dictation, Q&A) show how the rules apply in different contexts. Stats track sentence boundaries, commas, and question marks inferred.
why it shipped
Saying "comma" out loud feels unnatural. It's the single biggest complaint about dictation-driven text entry, and it's why most people abandon dictation for anything longer than a short message. Modern speech models can place punctuation by listening to prosody — when a sentence ends, the speaker's pitch drops; before a comma, there's usually a micro-pause. The on-device model already knows this; unspokenPunctuation just opts in to letting it act on the knowledge.
references
implementation reference
Need the exact API surface, compatibility boundaries, errors, lifecycle, and source links? Read the matching gendn reference ↗