Skip to main content

Readio

Readio is a workflow gateway over specialist speech packages. It orchestrates complete text-to-audio and file-to-audio workflows, using a run-scoped temporary workspace by default or an explicitly requested persistent SSMDConvert .ssmd-bundle. User-owned render intents describe the requested workflow without duplicating specialist schemas or creating hidden .readio/ state.

Specialist packages own validation, schemas, persisted artifacts, reports, and kind-sensitive dispatch. Readio coordinates conversion, planning, RenderPlan projection, rendering, composition, and optional export. One-shot literal speech and local playback remain available.

Install

python -m pip install readio
python -m pip install "readio[kokoro]"  # or another supported VoiceRender engine extra

readio[documents] enables SSMDConvert's optional PDF and DOCX support; readio[spacy] enables UtterPlan's optional spaCy support. Readio requires Python 3.10 or newer.

Use readio.api.inspect_spacy_model(language, tier) to check a local model and readio.api.ensure_spacy_model(language, tier) to explicitly provision one. Readio conversion and UtterPlan stages do not download models. PreparationOptions controls conversion speech semantics, spaCy tier, and explicit speech profiles; ProjectionOptions controls RenderPlan pause timing separately from AudioCompose pause policy.

Quick start

Create a VoiceRender RenderProfile, then create and review a user-owned Readio render intent. The two TOML files have separate responsibilities: the RenderProfile defines voice roles; the intent describes the requested conversion, planning, composition, and output.

readio profile create --engine kokoro --target v1.0 --voice af_heart \
  --language en-US -o narrator.renderprofile.toml
readio intent document create chapter.docx \
  --profile narrator.renderprofile.toml --language en-US
readio intent show chapter.readio.toml --resolved
readio intent validate chapter.readio.toml
readio render --config chapter.readio.toml --dry-run
readio render --config chapter.readio.toml

Book intents default to M4B and support chapter selection; document intents default to MP3. Without an explicit bundle, renders use temporary intermediate storage. Specify --bundle PATH in the intent or render command to persist an editable workspace; an existing bundle supplied as the source is also persistent. UtterPlan's exact projected variant is preserved through VoiceRender, AudioCompose, and AudioExport.

readio intent book create novel.epub \
  --profile narrator.renderprofile.toml --language en-US --chapters 5-17 \
  --bundle novel.ssmd-bundle
readio render --config novel.readio.toml

Create profiles from SSMD voice roles

For an SSMD document with one explicit narrator role, inspect and create its profile directly:

readio profile document inspect chapter.ssmd.md
readio profile document create chapter.ssmd.md \
  --engine kokoro --target v1.0 --language en-US \
  --voice narrator=af_heart \
  -o chapter.renderprofile.toml

For a multi-speaker source, assign each logical role in one command. Logical roles stay distinct even when they intentionally share one physical TTS voice:

readio profile document inspect meeting.ssmd.md
readio profile document create meeting.ssmd.md \
  --engine kokoro --target v1.0 --language en-US \
  --voice narrator=af_heart \
  --voice host=af_sarah \
  --voice guest=am_michael \
  --same-as analyst=guest \
  --default-role narrator \
  -o meeting.renderprofile.toml

readio intent document create meeting.ssmd.md \
  --profile meeting.renderprofile.toml --language en-US
readio intent show meeting.readio.toml --resolved

Here four logical roles use three physical voices: analyst receives a copy of guest's complete binding. The reviewable VoiceRender RenderProfile remains separate from the Readio intent; Readio does not choose voices or create a profile automatically.

For a one-off render without saving a Readio intent, provide the source and separate RenderProfile directly:

readio render chapter.docx --profile narrator.renderprofile.toml --language en-US

readio render --dry-run and readio status share a read-only workflow inspection; neither creates a temporary workspace or mutates artifacts. Use --rebuild-from STAGE for explicit downstream rebuilds and --replace-output separately to authorize replacing an existing final output. AudioExport is included in the core installation; --ffmpeg and --ffprobe select tool executables.

Intent files are visible user-owned configuration, not hidden workspace state. Readio creates no .readio/ directory. readio status --config novel.readio.toml inspects a saved intent, while readio status novel.ssmd-bundle --profile narrator.renderprofile.toml --chapters 5-17 inspects an existing persistent workspace.

Manual specialist workflow

Use specialist CLIs for package-specific controls. Preserve UtterPlan's exact variant through every stage:

ssmdconvert bundle convert novel.epub -o novel.ssmd-bundle
utterplan bundle compile novel.ssmd-bundle
voicerender profile create --engine kokoro --target v1.0 --voice af_heart \
  --language en-US -o novel.ssmd-bundle/narrator.renderprofile.toml
utterplan bundle render novel.ssmd-bundle \
  --profile novel.ssmd-bundle/narrator.renderprofile.toml

VARIANT="<exact variant returned by utterplan bundle render>"
voicerender bundle render novel.ssmd-bundle --variant "$VARIANT"
audiocompose bundle compose novel.ssmd-bundle --variant "$VARIANT"
audioexport bundle export novel.ssmd-bundle --variant "$VARIANT" --output novel.m4b

Direct speech

readio speak --voice kokoro:v1.0/af_heart --lang en-US "Hello from Readio."

speak sends literal text through VoiceRender and plays the returned audio locally by default. Use --output FILE.wav --no-play to save without playback. Readio also retains playback and audio I/O helpers for Python callers.

ONNX Runtime controls

Inspect the ONNX Runtime distribution/build and provider policy, or choose providers for future compatible sessions:

readio runtime status
readio runtime list
readio runtime use cpu
readio runtime use cuda
readio runtime use auto
readio runtime use cuda,cpu
readio runtime reset

An installed ONNX Runtime distribution/build is distinct from its execution providers. runtime status reports the imported build and its available providers; runtime list shows detected distributions and providers reported by that build. A selected/resolved provider policy is for new sessions, not proof of an active inference session. Readio does not install, uninstall, or switch ONNX Runtime distributions; package changes are managed outside Readio. Environment variables such as ONNXVOICE_PROVIDER override the saved preference, and runtime reset does not unset environment variables. Explicit --engine-option providers=... or a provider configured in a RenderProfile remains an intentional override of the global default.

Python API

from pathlib import Path
from readio.api import Readio, RenderRequest

service = Readio()
request = RenderRequest(
    source=Path("chapter.docx"),
    profile=Path("narrator.renderprofile.toml"),
    bundle=None,  # temporary by default; pass a path to persist the SSMD bundle
)
plan = service.inspect(request)  # read-only WorkflowPlan
result = service.render(request)
print(plan.steps, result.output, result.workspace_mode)

The primary gateway API is Readio.synthesize(), Readio.inspect(RenderRequest), and Readio.render(RenderRequest). synthesize returns semantic audio in memory without playback or output files; Readio.speak() optionally plays that result. inspect reports specialist-backed workflow state without writing; render executes the complete file-to-audio workflow. Specialist CLIs remain available for deliberate package-level debugging. See the Python API guide.

Source inventory and saved intents use the same gateway:

from pathlib import Path
from readio.api import Readio, load_render_intent, render_request_from_intent

service = Readio()
source = service.inspect_source(Path("novel.epub"))
intent_path = Path("novel.readio.toml")
intent = load_render_intent(intent_path)
request = render_request_from_intent(intent, config_path=intent_path)
plan = service.inspect(request)

inspect_source() is read-only and does not create a workspace. inspect_intent() and render_intent() are convenience methods over the same RenderRequest mapping and canonical inspect/render workflow. Use service.render_intent(intent, dry_run=True) for a read-only workflow plan.

Stable platform contracts and MCP

Readio.inspect() is the canonical, read-only workflow plan used by status, dry-run, and the Python API. Plans expose stable reason codes, blockers, and logical artifact references; diagnostic details are not a protocol. Shared versioned serialization covers plans, results, errors, capabilities, and semantic speech results. Readio.capabilities() and scoped capability methods are read-only; cancellation is cooperative at supported boundaries, and execution reports are optional and never persisted.

MCP is an optional adapter over readio.api. Install it with python -m pip install 'readio[mcp]' and launch python -m readio.mcp.server as a stdio server. Its tools inspect sources and workflows, report capabilities, list engines and cached voices, render, and synthesize speech. Rendering requires explicit source, profile, and output paths. It inspects first and executes only an executable plan with the request's explicit rebuild and output replacement controls. speech_speak returns WAV audio as base64 and does not play audio. See Python API contracts and architecture.

Documentation

Metadata

Release files for readio 0.6.8

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

Source distribution (sdist)

Source distribution for readio 0.6.8
File Size Uploaded Provenance Actions
readio-0.6.8.tar.gz 191.9 kB Without provenance Details for readio-0.6.8.tar.gz

Built distribution (wheel)

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

Total release size: 308.0 kB

Release files / readio-0.6.8.tar.gz

Download URL readio-0.6.8.tar.gz
Size 191.9 kB
Tags Source
SHA-256 checksum
How to use checksums
43984ee04a6ae0d691ada89cb7c39cd1d40387eb3cdca872a62b4584b6ca5cab
BLAKE2b-256 checksum
How to use checksums
50b1acaa87b76b76ddd02ea160ea2ff8f929b825d39e5609b710b8a5342d423d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.14

Release files / readio-0.6.8-py3-none-any.whl

Download URL readio-0.6.8-py3-none-any.whl
Size 116.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
72d5bdb4d50ee4bcd7f523ad9a0a966be58f577f1846cebbc51f6ada183bfca8
BLAKE2b-256 checksum
How to use checksums
c513d2897a17f4fe5ba4180d2e266294e2f1118d70fcd7c646e05beff688489d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.14

Security for readio 0.6.8

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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