Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

epub2m4b

Latest version: v0.4.0

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
PyPI package Publisher: whoamiwo
0 Stars
0 Forks
10 Versions
717 Downloads
Python Repo language

Scan summary

epub2m4b was last scanned on 29 Nov 2026 at version 0.4.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 10 versions; the latest 5 were published within 5 days (25–29 Nov 2026).
  • Findings: No rules fired in version 0.4.0.
  • Downloads: 717 downloads.

Versions

10 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.4.0 LATEST 29 Nov 2026 No rules fired
0.3.3 29 Nov 2026 No rules fired
0.3.2 29 Nov 2026 No rules fired
0.3.1 28 Nov 2026 Not shown
0.3.0 25 Nov 2026 Not shown

No rules fired in 0.4.0

Findings

Findings for v0.4.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.4.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

epub2m4b

CI

Chinese EPUB → chaptered M4B audiobook, as a single resumable CLI.

  • Chaptering: nav → nav+hybrid → outline → spine, with a vetoer that rejects implausible cuts and records why (see epub2m4b inspect --json).
  • Resumable: every segment is cached by sha256(text + synth_fingerprint). Interrupt with Ctrl-C / SIGKILL and rerun — finished segments are never redone.
  • Switch voices for free: switching back to a previous voice costs zero synthesis.
  • Chapter-accurate timeline: START/END computed from integer sample counts, verified against ffprobe within 150 ms.
  • Graceful degradation: DRM/image-only books exit 3; silent loudnorm measurement degrades to "loudnorm off + warning"; per-segment failures exit 2 with --allow-incomplete packaging what finished.

Install

python3 -m pip install epub2m4b            # core (fake + openai_compat TTS)
python3 -m pip install 'epub2m4b[kokoro]'  # + local Kokoro 0.9.4 engine
ffmpeg -version                            # ffmpeg + ffprobe are required

Use

epub2m4b doctor                      # check environment (never touches the DB)
epub2m4b inspect book.epub           # show chaptering strategy and segment counts
epub2m4b inspect book.epub --json    # machine-readable version
epub2m4b voices                      # list Kokoro voices (no model download)
epub2m4b voices --lang z             # only Mandarin voices
epub2m4b run book.epub --tts kokoro --voice zf_xiaobei -o book.m4b
epub2m4b status                      # library overview
epub2m4b status book.epub            # one book, including failed segments
epub2m4b status book.epub --json      # machine-readable progress/state
epub2m4b cache size                    # inspect FLAC cache usage
epub2m4b cache verify --prune           # remove corrupt cached segments
epub2m4b cache prune --unused           # remove cache files no longer referenced

Options on run: --voice, --rate, --jobs, --max-retries, --endpoint (for openai_compat), --bitrate, --no-loudnorm, --no-speak-titles, --include-front-matter, --allow-incomplete, --overwrite (replace an output belonging to another book). Progress lines include synthesis rate and ETA.

For CPU Kokoro runs, start with --jobs 1: on the tested 10-core/20-thread machine it was faster than --jobs 2 because multi-job mode limits each worker to one torch thread. Re-measure on other hardware; see benchmarks.

Exit codes: 0 success · 1 general error · 2 failed/incomplete segments · 3 unusable input · 4 TTS unavailable · 5 insufficient disk · 130 interrupted.

State

  • SOUNDBOOK_HOME (default ~/.local/share/soundbook): state.sqlite, locks/, work/.
  • SOUNDBOOK_CACHE_DIR (default ~/.cache/soundbook/audio): per-segment FLAC files, content-addressed.
  • cache prune --unused only removes files unreferenced by the current state.sqlite; do not use it when the same cache directory is shared by multiple libraries.

TTS backends

--tts what it does
fake Deterministic silence, for tests/CI (loudnorm auto-disabled)
kokoro Local Kokoro 82M, default voice zf_xiaobei, lang_code inferred from the voice id (SOUNDBOOK_KOKORO_VOICE, SOUNDBOOK_KOKORO_LANG override)
openai_compat Any OpenAI-compatible /v1/audio/speech endpoint (CosyVoice, …). Env: SOUNDBOOK_TTS_URL, SOUNDBOOK_TTS_MODEL, SOUNDBOOK_TTS_VOICE

A failed segment is retried on the next run — failure is not sticky.

Kokoro notes: kokoro==0.9.4 requires Python < 3.13 (use the Docker image, which is 3.12, if your system Python is newer). Model weights come from Hugging Face on first run; behind a firewall set HF_ENDPOINT=https://hf-mirror.com and HF_HUB_DISABLE_XET=1 (the Xet CDN is not served by the mirror).

Docker

docker build -t epub2m4b .
docker run --rm -v "$PWD:/data" epub2m4b inspect book.epub
docker run --rm -v "$PWD:/data" epub2m4b run book.epub --tts fake -o book.m4b

The default image ships the core backends only. For the local Kokoro engine use Dockerfile.kokoro (Python 3.12, installs .[kokoro]; validated end to end, see docs/benchmarks.md Spike 2):

docker build -f Dockerfile.kokoro -t epub2m4b-kokoro .
docker run --rm -v "$PWD:/data" -e HF_ENDPOINT=https://hf-mirror.com -e HF_HUB_DISABLE_XET=1 \
  epub2m4b-kokoro run book.epub --tts kokoro -o book.m4b

The HF_* variables are only needed behind a firewall. The Kokoro image is large (about 10.5 GB with torch).

Two practical notes:

  • If pypi.org is unreachable from your Docker network, pass a mirror: docker build -t epub2m4b --build-arg PIP_INDEX_URL=https://mirrors.aliyun.com/pypi/simple .
  • The container runs as root, so files it writes into a bind-mounted /data (the M4B, the cache, the SQLite state) are root-owned on the host. Use a named volume, or --user "$(id -u):$(id -g)" together with -e SOUNDBOOK_HOME=/tmp/state -e SOUNDBOOK_CACHE_DIR=/tmp/cache.

Development

python3 -m venv .venv && . .venv/bin/activate
python3 -m pip install -e ".[dev]"
pytest                    # unit + e2e (real ffmpeg, --tts fake)
ruff check src tests scripts
pytest -m e2e             # only end-to-end
SOUNDBOOK_CORPUS=/path/to/epubs pytest -m corpus -s  # optional local real-book evaluation

Docs: docs/adr.md (decision records), docs/limitations.md, docs/benchmarks.md, docs/corpus.md (local annotation), docs/compat.md (sample/player matrix), docs/compare.md, docs/licenses.md.

Legal

Apache-2.0. No text, model weights or corpora are redistributed with this project. You are responsible for the legality of the EPUBs you convert. The optional Release-only public-domain sample is documented in docs/compat.md; it is not included in the repository or pip package.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases epub2m4b

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Frame 2085668439 (1)
Group 1261154229