- JavaScript 85.3%
- CSS 5.1%
- HTML 3.4%
- Shell 2.4%
- Python 2.3%
- Other 1.5%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| src | ||
| tests | ||
| tools | ||
| .envrc | ||
| .gitignore | ||
| AGENTS.md | ||
| flake.lock | ||
| flake.nix | ||
| Makefile | ||
| PRIVACY.md | ||
| README.md | ||
Speak It
A Chrome and Firefox extension that reads web pages aloud with Kokoro-82M. Everything runs in the browser: no server, and no text or audio leaves your computer. The first time you open it or read with it, it downloads the speech model (325 MB) and keeps it.
Install
Firefox 142 or later: click the button and allow the installation. This version is signed, so it stays installed. Chrome 116 or later: click the button and choose Add to Chrome.
To build it yourself, you need uv, npm and curl.
With Nix and flakes enabled, nix develop provides the build tools,
including Python 3.12 and Node.js. The scripts still download their Python dependencies, voices and
runtime libraries; install Chrome or Firefox separately for browser testing.
make all # download the voices and libraries
make install # Chrome
make install BROWSER=firefox # Firefox 142 or later
make install opens the browser's extensions page, copies the path to load to the clipboard and prints the
steps. Chrome keeps the extension installed. Firefox removes it when it quits, so run
make install BROWSER=firefox again after restarting Firefox. Then pin Speak It to the toolbar.
Reading needs WebGPU to be fast. Without it, Chrome is slower and Firefox can't keep up with playback. Firefox has WebGPU on Windows and Apple-silicon Macs only.
Using it
- Toolbar popup: read the page or the selection, and pick the voice and speed.
- Right-click: Read selection aloud, or Read page from here.
- Shortcuts:
Alt+Shift+Rreads the selection (or the page),Alt+Shift+Ppauses or resumes. Change them atchrome://extensions/shortcuts, or in Firefox under Manage Extension Shortcuts inabout:addons. - Player: previous/next, play/pause, speed and stop. The page follows the spoken text; scroll away and Back to text brings you back. If a passage fails, Try again or skip it.
- Click any sentence while reading to jump to it.
- Google Docs are read from their plain-text export, without highlighting.
There are 41 voices in American and British English, Spanish, French, Hindi, Italian and Brazilian Portuguese.
Releasing
Install direnv and allow this directory with direnv allow. The checked-in
.envrc loads the flake and, if present, .envrc.local. Put the store credentials in that ignored
file (or provide the same variables in your environment):
export PUBLISHER_ID="your-publisher-id"
export CLIENT_ID="your-oauth-client-id"
export CLIENT_SECRET="your-oauth-client-secret"
export REFRESH_TOKEN="your-oauth-refresh-token"
export WEB_EXT_API_KEY="your-amo-jwt-issuer"
export WEB_EXT_API_SECRET="your-amo-jwt-secret"
Enable the Chrome Web Store API and obtain the OAuth credentials as described in Google's API guide. Find the publisher ID in the developer dashboard and create the Mozilla credentials on the AMO API credentials page. The Chrome extension ID and Firefox add-on ID are already configured in the project.
To obtain or replace the Chrome refresh token, run make chrome-refresh-token. It opens the OAuth
Playground with the client ID and secret from .envrc.local; follow the printed instructions.
Paste the resulting token into the hidden prompt; the helper updates REFRESH_TOKEN in .envrc.local
and reloads direnv.
Increase the version in both manifests, then run make release to package and submit both updates.
Use make release BROWSER=chrome or make release BROWSER=firefox for one store. Chrome uploads
the ZIP in build/; web-ext sign packages the Firefox source directory again for AMO. Both stores
may review the submission before it is published; the command exits without waiting for store approval.
Firefox still waits for automated validation. If one submission fails after the other succeeds,
check the store dashboards before retrying; use the single-browser command to submit the remaining one.
If AMO requires a source archive, set WEB_EXT_UPLOAD_SOURCE_CODE to its path in .envrc.local.