Read Aloud
Reading your work aloud is one of the oldest editing tricks: your ear catches a clumsy sentence, a repeated word, or a missing one that your eye glides over. Spleen can do the reading for you, and marks each word as it speaks it, so you see and hear the same word at once.
Start reading
With a document open, select Read aloud in the bar at the top of the page, the button with sound lines. On a phone, it is in the ⋮ menu at the top right.
- If you have selected text, Spleen reads just that.
- Otherwise it starts at the beginning of the paragraph your cursor is in, and reads on to the end of the document.
While Spleen reads
The formatting bar makes way for the reading controls: pause and stop. On a computer they sit in the row at the top of the page, on a phone in the bar at the foot of the screen. Spleen reads at the voice's own pace, the pace that suits proofreading.
- Click anywhere in the text to carry on reading from there.
- Start typing to pause, for instance to fix a word you just heard. Select play to read on, from where it was, including your fix.
- Press Escape, select Stop, or select Read aloud again to stop.
When you stop, your cursor waits at the word you last heard, so a mistake you just caught is right there to fix.
If the radio is playing, it pauses while Spleen reads and starts again when the reading ends. Turn the radio on during a reading and the reading pauses instead; select play to go on, and the radio goes quiet again.
Voices and privacy
Spleen reads with the voices your device already has, and only voices that speak on the device itself. Some browsers also offer online voices, which send text away to be spoken; Spleen never uses those, so your writing does not leave your device.
By default, Spleen picks a voice in the language it is set to. To choose another, for instance a Dutch voice for a Dutch manuscript, open Preferences → Readability → Read aloud voice.
How a voice sounds depends on your device. Macs, iPhones, iPads, Windows, and Android phones come with natural voices. On Linux, a voice is only there if a speech service is installed, and it tends to sound mechanical. When a device has no voice of its own, the Read aloud button does not appear.
If you don't see Read aloud
Read aloud needs a speech engine on your device. Macs, iPhones, iPads, Windows, and Android phones have one built in. If the button is missing there, check that a voice is installed under your system's speech or accessibility settings.
On Linux, install one first. On Arch Linux, for example:
sudo pacman -S speech-dispatcher espeak-ng
Other distributions have packages with the same names. Then:
- Firefox finds the speech engine after a full restart.
- Chrome, Chromium, and Brave also need to be started with
--enable-speech-dispatcher. Add that line to your browser's flags file, such as~/.config/chromium-flags.conf, or the one your browser's launcher reads, and restart the browser completely.
Natural voices on Linux
The voices that come with speech-dispatcher sound mechanical. Piper is a free speech engine with natural voices that also runs entirely on your own computer, so your text still never leaves it. Setting it up takes a few steps.
-
Install Piper. On Arch Linux it is in the AUR as
piper-tts-bin; other distributions package it aspiper-ttsorpiper. -
Download a voice or two from Piper's voice list. Each voice is two files, a
.onnxand a.onnx.json; keep them together, for instance in~/.local/share/piper/. Naming them after the voice, such asAlba.onnxandAlba.onnx.json, is what makes the name show up in Spleen. -
Tell speech-dispatcher about Piper. Create
~/.config/speech-dispatcher/modules/piper-generic.confwith:GenericExecuteSynth "f=$(mktemp --suffix .wav); printf %s \'$DATA\' | piper-tts --model \"$HOME/.local/share/piper/$VOICE.onnx\" --output_file \"$f\" >/dev/null 2>&1 && pw-play \"$f\" >/dev/null 2>&1; rm -f \"$f\"" GenericCmdDependency "piper-tts" GenericDefaultCharset "utf-8" AddVoice "en-GB" "FEMALE1" "Alba"Add one
AddVoiceline for each voice you downloaded: its language,FEMALE1orMALE1, and its file name without.onnx. Usepiperinstead ofpiper-ttsif that is what your package installed, andaplayinstead ofpw-playif your system does not use PipeWire. Keep the>/dev/nullparts: without them, Spleen reads the first paragraph and stops. -
Copy
/etc/speech-dispatcher/speechd.confto~/.config/speech-dispatcher/speechd.conf, and add these lines at the end:AddModule "piper" "sd_generic" "piper-generic.conf" DefaultModule piper -
Restart your browser completely, and choose one of the new voices under Preferences → Readability → Read aloud voice.
To go back to the old voices, delete the ~/.config/speech-dispatcher folder and restart the browser.
On a phone
On a phone, reading stops when the screen locks or you switch to another app. Some Android phones do not report which word they are on; Spleen then marks the sentence being read instead.