sci2audio
Turn scientific papers and books into faithful audiobooks, offline, with free local voices.
sci2audio reads a PDF, EPUB, Markdown or plain-text file in English or German, prepares its text for listening with rules you can check and switch off, speaks it with a local Kokoro voice, and writes an M4B audiobook with chapters, one MP3 per chapter, and a read-along view that highlights the original text as it is read. Everything runs on your own computer.
What it does
- Reads PDF, EPUB, Markdown and plain text. It finds the reading order of one- and two-column pages, leaves out running heads, page numbers and sidebars, and finds headings, footnotes, captions, tables, figures and formulas. A scanned PDF needs a text layer: sci2audio has no text recognition yet.
- Prepares the text with transparent rules: it joins words hyphenated at a line end, leaves out citations, URLs and DOIs, reads units, statistics, numbers and abbreviations as words where the voice would get them wrong, and replaces formulas, tables and figures with a short spoken notice in the text's language (English or German). Footnotes are read where their mark stands. Every change is listed in a report with its reason, and each kind of change can be switched off.
- Speaks it with a local Kokoro voice: 28 English voices and the German voice Thorsten, at the speed you choose, with abbreviations it spells out (such as NLP) read at their own, slower pace if you like. An interrupted run picks up where it stopped.
- Writes an M4B with chapter marks and the cover, one MP3 per chapter, and a read-along file; on request also SRT and WebVTT subtitles. The audio is labelled as AI-generated in its metadata.
- Plays it in a read-along view that shows the text as printed and highlights the sentence being read. Click any sentence to play from there.
Principles
- Your files stay on your computer. No account, no upload, no telemetry. The only network access is the download of the voice, which you start yourself.
- Faithful, not rewritten. Every change to the text is a marked, explainable rule; nothing is summarised.
- Free and open source under the GNU GPL v3 or later.
- Accessible: the interface works with the keyboard alone and with screen readers, in English and German.
What the rules do
A paragraph written for this README, as printed:
Participants slept 7.5 h on average (Smith et al., 2020), and reaction times fell by 12 ms per hour of sleep (t(34) = 2.81, p < .01; 95% CI [4.1, 19.9]). Naps, e.g. after lunch, were not counted [3]. The data are available at https://example.org/sleep-data.
What sci2audio reads aloud (sci2audio script):
Participants slept 7.5 hours on average, and reaction times fell by 12 milliseconds per hour of sleep (t of 34 equals 2.81, p less than .01; 95% confidence interval 4.1 to 19.9). Naps, for example after lunch, were not counted. The data are available.
The report next to the script lists all 13 changes, each with the text as printed, what is read instead and why. Three of its lines, without the page, chapter and step:
“(Smith et al., 2020)” → left out. Reason: citation "(Smith et al., 2020)" is not read (TP-03).
“at https://example.org/sleep-data” → left out. Reason: URL "https://example.org/sleep-data" is not read; "at" before it goes too, so the sentence still reads (TP-07).
“ms” → read as “milliseconds”. Reason: "ms" read as "milliseconds".
Numbers such as "7.5" and ".01" stay as printed: the voice reads them well.
Installing
sci2audio runs on Macs with Apple chips (macOS 14 or newer), Windows and Linux. Intel Macs are not supported, because PyTorch no longer publishes builds for them.
The installers (the easy way)
Download the file for your system from the latest release: a .dmg for macOS, a setup.exe for Windows, an AppImage for Linux. Python, sci2audio and ffmpeg are inside. The installers are not signed with a paid certificate, so macOS and Windows warn the first time; docs/installing.md shows how to get past that once, where your files go, and how to check a download.
The first time it asks to download the voices (the Kokoro model, its English voices and a spaCy English model, about 355 MB; the German voice Thorsten by Thorsten-Voice, about 330 MB). It shows every file with its size and licence first and downloads only after you agree. After that, sci2audio works without a network.
Tried it? Tell us how it went.
With uv (for the command line)
-
Install uv (0.13.8 or newer), a tool that installs Python programs together with the Python they need.
-
Install sci2audio:
uv tool install sci2audio # macOS (Apple chips) and Windows uv tool install sci2audio --torch-backend cpu # Linux: 1.3 GB instead of 5.6 GB
On Linux the plain command also works; it installs the PyTorch build with NVIDIA GPU libraries.
With pipx instead of uv, use Python 3.12.16 or newer in the 3.12 series (
pipx install --python python3.12 sci2audio): the Kokoro packages do not yet declare support for newer Python versions, and older 3.12 releases read some broken HTML and Markdown differently. -
Start it:
sci2audio uiThis opens the interface in your browser; it stays on this computer. The first time, it asks to download the voices (the Kokoro model, its English voices and a spaCy English model, about 355 MB; the German voice Thorsten by Thorsten-Voice, about 330 MB). It shows every file with its size and licence first and downloads only after you agree;
sci2audio voices download --language enor--language defetches one language only. A text is read by a voice of its own language: German texts by Thorsten, English texts by the chosen English voice. After that, sci2audio works without a network.
With uv, ffmpeg, which writes the MP3 and M4B files, comes with sci2audio (through the imageio-ffmpeg package); the installers bring an audio-only ffmpeg of their own. If that build is missing for your system, sci2audio uses an ffmpeg on your PATH.
To update: uv tool upgrade sci2audio. To remove: uv tool uninstall sci2audio, then delete the folders listed on the privacy page.
Command line
sci2audio voices download # once: shows the files, sizes and licences, then asks
sci2audio script paper.pdf # the listening script and a report of every change
sci2audio convert paper.pdf # the audiobook: M4B with chapters, MP3s, read-along file
sci2audio listen paper.pdf # play it in the browser with the text, sentence by sentence
script needs no voice and lists the chapters; choose them with --chapters 1,3-5 (counted from 1, read in the order given, so 3,1 reads chapter 3 first; or all; by default every chapter but the reference list and an EPUB's publisher's pages). Switch a kind of text handling off with --off citations (read as printed) or on with --on footnote-texts (leave the notes out); sci2audio script --help lists the categories. convert takes the same options and --voice, --speed, --letter-pace normal|slower|slowest (how fast spelled-out abbreviations such as NLP are read), --format both|m4b|mp3 and --with-script.
Files go next to the input file, or into the folder given with -o; existing files are replaced only with --overwrite. If convert is stopped (Ctrl-C, a crash, a closed laptop), run the same command again: the sentences already spoken are kept in a speech cache in sci2audio's data folder, and sci2audio clean paper.pdf removes it. listen takes the same -o and --work-folder as convert and only plays what convert made there. The command line takes its defaults from the settings saved by the interface and never changes them; --ignore-settings uses the built-in defaults.
Exit codes, for scripts:
| Code | Meaning |
|---|---|
| 0 | done |
| 1 | failed for another reason (a write, the disk, ffmpeg, the voice, the download, or "no" to the download) |
| 2 | a bad option or value |
| 3 | the file does not exist or is not a file |
| 4 | a file type sci2audio can't read |
| 5 | the file is damaged, protected or can't be opened, or its text can't be read |
| 6 | the voice files are not installed (sci2audio voices download) |
| 7 | output files exist (add --overwrite) |
| 8 | another sci2audio job is working on this file |
| 130 | stopped with Ctrl-C |
Privacy
sci2audio is a program on your computer, not an online service. Nobody receives your data, neither its makers nor anyone else.
- It sends nothing anywhere: no telemetry, no usage statistics, no crash reports, no update check, no account.
- It uses the network only for the voice download you start, after showing every file, its size and licence.
- The interface's server listens only on 127.0.0.1, with a key that is new for each start, and refuses requests from other web pages. The pages load nothing from the internet.
- Your files, their analysis, the speech cache, the settings and the voice stay in folders on your computer. The interface's privacy page (
/privacy) names them and says how to remove them.
Development
You need a recent uv (0.13.8 or newer; older ones do not know Python 3.12.16). .python-version pins Python 3.12.16, which uv downloads on the first uv sync; CI and the release workflow use the same uv-managed Python, never a runner's own (D-378).
uv sync # install the project and development tools
uv run pytest -m "not slow and not benchmark and not browser" # fast tests
uv run pytest -m browser # the interface in a browser (after `uv run playwright install chromium`)
uv run ruff check # lint
uv run lint-imports # layer rules
uv run pre-commit install # run checks before every commit
See CONTRIBUTING.md for how work is planned and reviewed.
Licence
GPL-3.0-or-later, see LICENSE. Third-party components and their licences are listed in THIRD_PARTY_LICENSES.md. Audio made with sci2audio is labelled as AI-generated in its metadata, and the player names the synthetic voice.
Only convert texts you are allowed to use. sci2audio does not remove copy protection.
Problems and ideas
Please open an issue. For a text that is read wrongly, include the sentence as printed, what sci2audio read, and, if you can, the report line for it. The changes in each release are in CHANGELOG.md.
Metadata
Release files for sci2audio 1.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sci2audio-1.4.1.tar.gz | 6.0 MB | With provenance | Details for sci2audio-1.4.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sci2audio-1.4.1-py3-none-any.whl | Python 3 | none | any | Details for sci2audio-1.4.1-py3-none-any.whl |
Total release size: 7.1 MB
Release files / sci2audio-1.4.1.tar.gz
| Download URL | sci2audio-1.4.1.tar.gz |
|---|---|
| Size | 6.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6f9029a53aee257cb5f222a2df8cb6909d463519db8a9311c616a77a0fea4b87
|
|
BLAKE2b-256 checksum How to use checksums |
cd6217eb967eaca25fed1ec17bb05b4592e0c5c00850c27abc935e7f17d9ecb1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.
Transparency logRelease files / sci2audio-1.4.1-py3-none-any.whl
| Download URL | sci2audio-1.4.1-py3-none-any.whl |
|---|---|
| Size | 1.0 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1d62f94872192982f1fad8e699d819ed93cabc618786a15a6c0bbb2c0a7598e1
|
|
BLAKE2b-256 checksum How to use checksums |
00e01a60a04b77d22ada231130fdc2b6f25d0ad8a338fc97923ddf89191edb19
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.
Transparency logSecurity for sci2audio 1.4.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for sci2audio-1.4.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.