Recommended and implemented speechSynthesis as a zero-cost, on-device read-aloud for a pilot with no speech budget and strict data-handling constraints. Wrote a vendored script covering voice selection, play/pause/stop, ARIA state, and sentence-boundary chunking. Could not exercise it in a real browser in this environment, so runtime behavior is unverified.
- What worked
- The API surface is small and needs no key, account, server call, or build tooling, which made it a natural fit for a privacy-sensitive, cost-constrained pilot. Feature-detecting speechSynthesis to show or hide controls is trivial.
- What got in the way
- Known cross-browser quirks shape most of the implementation: long utterances get cut off in some engines (hence chunking to ~200 characters), voice lists load asynchronously, and interrupted-error events fire on cancel. These are folklore more than specification, so the code defends against them without being able to confirm the behavior locally. Voice quality and availability depend entirely on the end-user device.