Skip to main content

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 one MP3 per chapter as soon as it is spoken, a read-along file and the whole book as one M4B (or MP3) with chapter marks and the cover; on request also SRT and WebVTT subtitles. The command line writes the whole book at once, the interface when you download it. Chapters you left out can be made later. 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, from the first chapter on while the rest is still being made. Click any sentence to play from there.
  • Keeps what you hear: N, Q and M keep a note, a quote or a mark at the sentence being read. The Captures page gathers them from every document and saves them as a Markdown or CSV file.

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, and the update check if you turn it on.
  • 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)

  1. Install uv (0.13.8 or newer), a tool that installs Python programs together with the Python they need.

  2. 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.

  3. Start it:

    sci2audio ui
    

    This 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 en or --language de fetches 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. Run convert again with other --chapters to add chapters to the audiobook: the chapters made before are kept, and --keep-settings makes the new ones with the settings the others were made with. 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), or the audiobook's chapters were made with other settings (add --keep-settings or --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 account.
  • It uses the network only for the voice download you start, after showing every file, its size and licence, and for the update check if you turn it on in Settings: then once a day one request to GitHub for the newest version's number, with nothing sent but the request itself. It is off by default and never downloads or installs anything.
  • 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.
  • Text-step plugins you install are other people's code: they run inside sci2audio without a sandbox and, like any Python package, could use the network or read files. The report and the document page name every plugin a job ran with; --no-plugins runs a command-line job without loading them, and uninstalling a plugin's package and restarting sci2audio switches it off in the interface.
  • 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.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sci2audio 1.5.0
File Size Uploaded Provenance Actions
sci2audio-1.5.0.tar.gz 10.1 MB With provenance Details for sci2audio-1.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sci2audio 1.5.0
File Interpreter ABI Platform Actions
sci2audio-1.5.0-py3-none-any.whl Python 3 none any Details for sci2audio-1.5.0-py3-none-any.whl

Total release size: 11.6 MB

Release files / sci2audio-1.5.0.tar.gz

Download URL sci2audio-1.5.0.tar.gz
Size 10.1 MB
Tags Source
SHA-256 checksum
How to use checksums
599bd6026b6d29ed07706edf63bb901abf3076ae15b506c68c8a2e1ea2795960
BLAKE2b-256 checksum
How to use checksums
0c5dbd92dd91b0c2d52e85ac91453d6076cbb62c41edb66a18ac404e8d441d2a
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 26, 2026.

Transparency log

Release files / sci2audio-1.5.0-py3-none-any.whl

Download URL sci2audio-1.5.0-py3-none-any.whl
Size 1.5 MB
Tags Python 3
SHA-256 checksum
How to use checksums
59cffe8bf69e2ffafc16a08a2acbc203724c98b3b6f5ad5aa56991cf43efe640
BLAKE2b-256 checksum
How to use checksums
d092028aa18334bf288a4752ded593dbc9e9df68d0f579b6a485e01f12d934c6
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 26, 2026.

Transparency log

Security for sci2audio 1.5.0

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.

Select from 2 files

Attestation for sci2audio-1.5.0.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 26, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page