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.speak(), Readio.inspect(RenderRequest), and Readio.render(RenderRequest). speak synthesizes semantic text in memory; 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.
Documentation
Metadata
Release files for readio 0.6.5
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 |
|---|---|---|---|---|
| readio-0.6.5.tar.gz | 152.1 kB | Without provenance | Details for readio-0.6.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| readio-0.6.5-py3-none-any.whl | Python 3 | none | any | Details for readio-0.6.5-py3-none-any.whl |
Total release size: 243.1 kB
Release files / readio-0.6.5.tar.gz
| Download URL | readio-0.6.5.tar.gz |
|---|---|
| Size | 152.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
20bbd15232cb646cde21d06783cdced8009c3aaa786fe3110a50a504a6706e1e
|
|
BLAKE2b-256 checksum How to use checksums |
794f586172cf4b8bac54cd9f0a9e6620a5fc1b804ad5abcf61b13dbf339354b1
|
| 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.5-py3-none-any.whl
| Download URL | readio-0.6.5-py3-none-any.whl |
|---|---|
| Size | 91.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
08fd7289ac9581f9e0eb958909ed0a5e3af198d901fc806c0a0f9d92d66c01ad
|
|
BLAKE2b-256 checksum How to use checksums |
e3bcefd7dae680e03ec2ca1fc09c39dcca33e85d949e897fb0bc61e9b4caa84b
|
| 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.5
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.