Skip to main content

Work / Accessibility case study

PsyonVox: your study files, read aloud, never uploaded.

A free text-to-speech reader for study material that runs an open voice model inside the browser, with follow-along highlighting and MP3 export. The documents never leave the device.

Status
Live · in active development
Type
Independent project
Disciplines
Accessibility · learner autonomy · local AI
Built
2026, solo · MIT licence
How to read the evidence labels
Implemented
In the code. Not necessarily tested.
Author-tested
Tested by me, with the method described. Not independent.
Documented
Described in project docs; not re-verified for this page.
Design intent
What the design aims to do. Effect not yet measured.
Proposed
Planned, not built.
Gap
Known missing or incomplete.

The problem

Some learners study better by listening: on a commute, at the gym, or because reading dense material for hours is hard on their eyes or attention. Most text-to-speech tools that sound good run in the cloud, which means uploading course notes, work documents or exam prep to someone else's server.

Study material for security and certification exams adds a second problem: acronyms like NIST, CVE or SOC 2 come out as nonsense in most voices.

Learners and constraints

  • Who: adult learners studying from PDFs, slides and notes, including people who prefer or need to listen.
  • Constraint: no uploads, no accounts and no cost to the learner.
  • Constraint: it has to work on ordinary laptops and phones, not only machines with a powerful graphics card.
  • Constraint: study documents are messy: two-column PDFs, slide decks, code blocks and tables.

Design decisions

  • The voice runs on the device. An open voice model (Kokoro-82M) runs in a background Web Worker, so the page stays responsive and the text never leaves the browser. Implemented
  • Read what learners actually have. PDF, Word, PowerPoint, EPUB, Markdown and plain text, or pasted text. Two-column PDFs are read in the right order, and scanned PDFs without a text layer are detected and explained rather than read as silence. Implemented
  • Follow along. The current sentence is highlighted as it is spoken, and the reader scrolls with it. Sentence highlighting is exact; word-level highlighting is estimated. Implemented
  • Say the jargon right. A shared pronunciation dictionary covers security and certification terms, learners can add their own, acronyms can be spelled out, and code or table blocks are announced and skipped instead of read character by character. Implemented
  • Learner control. 28 voices, speed from 0.5x to 2x with pitch preserved, resume where you left off, bookmarks, a document map, focus mode and keyboard shortcuts for every control. Implemented
  • Take it with you. Export to MP3 as one file, one file with chapters, or a ZIP with one file per section. Implemented
  • Listening supports learning. The aim is to lower the barrier to getting through material, not to replace active practice. Design intent

Architecture

  • React front end; document parsers load only when a file of that type is opened.
  • Speech is generated sentence by sentence in a Web Worker and queued for playback, with a buffer generated ahead of the listener so playback does not stall. A sentence that fails becomes a short pause instead of stopping the reader.
  • The engine picks itself: with WebGPU it uses the full-precision model (about 330 MB), otherwise a compact WebAssembly build (about 90 MB), with a lighter option (about 45 MB) suggested on slow or data-saver connections. If WebGPU fails, it falls back automatically.
  • The model downloads once and is cached by the browser. After that the reader works without sending anything anywhere.
  • A separate Python batch converter turns whole folders of documents into audio on a desktop machine.

Data handling

Where PsyonVox data goes
DataWhere it goesHow long it is kept
Your documents and their textRead and spoken inside your browserNever uploaded and never stored by the app
Reading position, bookmarks, recent files and settingsYour browser's IndexedDB. Files are recognised by name, size and a short content hash, not their contentsOn your device until you clear it in the Privacy panel
The voice modelDownloaded once from Hugging Face, then kept in your browser's cacheOn your device until you clear it in the Privacy panel
Exported MP3 filesSaved by your browser like any downloadWherever you save them

The page's security policy only allows network connections to the site itself and to the model host, so the app has nowhere to send a document even by mistake. A Privacy panel clears the cached model or wipes everything the app has stored. Implemented

Accessibility

  • Every player control is a labelled button; speed presets announce their pressed state, and status changes are announced to screen readers.
  • Keyboard shortcuts for play, skip, speed, bookmarks, focus mode and help, which stay out of the way while you type.
  • Adjustable reader text size, visible focus rings, and auto-scroll that respects the reduced-motion setting.
  • Focus mode shows only the current passage for learners who are distracted by a full page.

These are implemented features Implemented. A formal audit with assistive-technology users has not been done yet.

Testing

Automated tests

6 test files covering the text pipeline

Vitest unit tests for PDF, text and HTML extraction, pronunciation rules, sentence segmentation and word timing. A continuous integration workflow installs, tests and builds the app, and checks the Python batch script compiles.

Engine fallback

WebGPU, WebAssembly and a lite tier

The engine choice and automatic fallback are part of the app itself, so learners on hardware without WebGPU still get a working reader.

Status

Live at voice.cyberpsyon.com and in active development, with the source public under the MIT licence. The November 2026 release added a redesigned launcher, an engine status indicator, the document map and focus mode. Whether listening this way helps people learn has not been measured. Gap

Stack

  • React
  • TypeScript
  • Vite
  • Kokoro-82M (kokoro-js)
  • ONNX Runtime Web (WebGPU / wasm)
  • Web Workers
  • pdf.js
  • mammoth
  • epub.js
  • lamejs (MP3)
  • IndexedDB
  • Cloudflare Pages