How the Text to Speech Reader Works
AnyTool Text to Speech is built on the browser Web Speech API (window.speechSynthesis and SpeechSynthesisUtterance). It enumerates every voice the operating system and browser expose, groups them by language tag, and applies the chosen rate, pitch and volume to each utterance. The current word is highlighted by listening to the utterance boundary event and mapping its character offset back to a precomputed word span in the source text. No audio is generated or processed on a server.
- Uses window.speechSynthesis and SpeechSynthesisUtterance — no backend
- Lists all system voices, grouped by language, on-device and online
- Rate 0.5–2×, pitch 0–2 and volume 0–100% are configurable
- Live word highlighting driven by the utterance boundary event
- Voice, speed, pitch and volume persist in local storage
Reading Long Documents Reliably
Several speech engines, most notably Chrome, truncate or stall on long single utterances. To read full documents the tool splits text into sentence-aligned chunks below a safe character limit, sub-splitting any over-long sentence on clause and word boundaries, and speaks the chunks in a queue. Each chunk records the absolute offset of its first character so boundary events remain correctly mapped for highlighting across the whole document. Play, Pause, Resume and Stop operate over the entire queue.
- Sentence-aligned chunking keeps prosody natural at punctuation
- A safe per-chunk character cap avoids Chrome long-utterance truncation
- Chunk offsets keep word highlighting accurate document-wide
- Queue-based playback reads articles, emails and chapters in full
Scope, Honesty and Privacy
Web Speech API voices play in real time and the API does not expose the audio stream, so this tool cannot export a downloadable MP3; that requires a separate neural engine, and the interface points users to a dedicated Pro tool for that. Everything else runs locally: text is never uploaded, there is no tracking, and on-device voices keep working offline after first load.