Overview
PeaBox Voice Studio (repo: PeaBox AI Speech Studio, current release v0.11.2) is a local-first, corporate voice-production workspace built with Python and Streamlit. It combines structured script production, local and cloud text-to-speech, editable transcription, audio-quality workflows, non-destructive timeline assembly, governance, operational recovery and managed background processing in one desktop-oriented application.
It is designed for trusted local use — narration teams, e-learning producers, localization studios and content teams who need repeatable voice pipelines without shipping scripts or voice choices to a SaaS. v0.11.2 ships 19 registry-driven screens, 5 bounded workflow facades, 50 automated test modules, 278 passing tests and a deterministic visual baseline covering 57 planned captures.
Honest boundaries: Streamlit is the UI runtime (not a multi-user web service), cloud credentials live only in the current session, governance names are local labels and attestations — not authenticated identities — and the durable local worker processes Kokoro jobs only. No license file ships in the current release.
Use cases
- E-learning narration pipelines. Master script → production blocks with per-block provider, voice, speed and direction notes → resumable batch job → merged WAV master via Timeline Studio.
- Internal comms and town-hall videos. Generate consistent Kokoro narration locally, timeline it against existing WAV clips, export a production master.
- Podcast and audiobook assembly. Arrange durable clips on tracks with offsets and gain, detect stale sources, and export a bounded-memory merged WAV.
- Subtitle and transcript production. Local Faster-Whisper transcription with editable timestamped segments, timing repair, and TXT/SRT/VTT export.
- Pronunciation-critical scripts. Project pronunciation rules, pause markers (
[[pause:1.5]]) compiled to SSML breaks for cloud providers or punctuation approximations for Kokoro. - Governed content workflows. Ownership, risk, comments, decisions and an Approval Queue with local attestation and workflow states (Draft → In Review → Approved → Published).
- Cloud TTS with guardrails. Session-only Azure Speech, Amazon Polly and Google Cloud TTS credentials, plus deterministic offline sandboxes to validate SSML and catalogs before spending on live calls.
- Operational recovery. SQLite integrity backups, quarantine with rollback copies, retention previews, capacity quotas and stale-worker lease recovery.
A day in the life with PeaBox Voice Studio
A localization producer opens Project Workspace and creates “Onboarding Course v3”. She pastes the master script into Script Editor, splits it into 24 blocks, assigns a Kokoro voice with slower speed for compliance sections, and marks two tricky brand names in the pronunciation dictionary. Batch Jobs validates the set; three blocks fail on a pause-marker typo, she fixes them and retries — collisions never overwrite prior renders. While the local worker daemon grinds through the queue, she transcribes last week’s voice memo in Transcription Studio, repairs two overlapping segments, exports the VTT. In Timeline Studio she relinks one stale clip, nudges offsets with configurable gaps, and exports the merged WAV. Finally she files an approval request — “Legal review — module 2 script” — and the Governance Center records who attested what.
Features
- Projects as JSON — master script, blocks, render history, batch jobs, timeline records, transcript sessions and governance data in one portable, authoritative folder.
- Script Editor — block import, reorder, duplicate, enable/disable; per-block provider, voice, language, speed; direction notes; presets; pause markers with validation.
- Speech generation — single Kokoro renders, collision-safe filenames, A/B voice comparison in Audio Quality Lab (normalize, trim silence, inspect WAVs).
- Batch jobs — item-level provider/voice/status/attempts, inline run/resume, retry failed, cancel/reopen, duplicate, ZIP download, queue Kokoro jobs for the worker; planning-rate estimates (not provider invoices).
- Timeline Studio — durable WAV clip records, tracks, offsets, gain, waveform peaks, stale-source detection, SHA-256 validation, relinking, manifest and bundle export.
- Transcription Studio — Faster-Whisper with model/language selection, editable segments, overlap validation, timing repair, TXT/SRT/VTT export.
- Governance — ownership, risk levels, target dates, comments, decision register, approval queue, workflow transitions, full audit history.
- Operations — Portfolio Operations dashboard: ownership/risk roll-up, backups, quarantine, maintenance plans, retention previews, storage quotas and reservations, pluggable backends (local, memory) with retries/circuit breakers, resilience profiles, Visual QA pixel-diff reports (v0.11.2).
Installation
Requirements: 64-bit Python 3.10–3.12, a writable extracted folder, internet on first install and first Kokoro model download. Windows: extract the release ZIP, double-click start_windows.bat — it locates Python, creates .venv and starts Streamlit. Start the worker with start_worker_windows.bat. Manual:
py -3.12 -m venv .venv
.\.venv\Scripts\Activate.ps1
python -m pip install --upgrade pip setuptools wheel
python -m pip install -r requirements.txt -c constraints.txt
python -m streamlit run app.py
macOS/Linux: use python3 -m venv .venv and source .venv/bin/activate. FFmpeg is needed only for compressed media (MP3/M4A/MP4…); plain WAV transcription works without it.
Quickstart (30 seconds)
start_windows.bat
rem browser opens; sidebar shows v0.11.2
1. Project Workspace → New project
2. Script Editor → paste script → split into blocks
3. Speech Generator → pick Kokoro voice → Generate
4. Timeline Studio → arrange clips → Export master WAV
Workflow & architecture
app.py is intentionally tiny: configure Streamlit → load preferences → init the project store → build AppContext → resolve the page → dispatch the registered renderer. Nineteen screen modules under peabox_voice_studio/screens/ never import peers; complex flows go through five facades (portfolio, governance, batch, timeline, transcription). A service layer handles locking, atomic writes, migrations, the resumable worker queue (leases, heartbeat, stale recovery), audio mixing, offline provider sandboxes, quotas and visual baselines. Project JSON is authoritative; SQLite is a rebuildable index; metadata snapshots exclude external media — timeline bundles are the media-inclusive portability format.
Troubleshooting
- Sidebar shows an older version. Stop stale Streamlit terminals (
Ctrl+C), close stale tabs, relaunch from the newly extracted folder via its printed Local URL. - Compressed transcription fails. Install FFmpeg; confirm Administration → System Check reports it Ready.
- Worker queue not progressing. Check daemon status, start/resume it, recover stale leases after an interrupted run, then sync worker progress into the project.
- Timeline clip flagged stale. The script block changed after rendering — regenerate and relink the audio, or review and acknowledge the current block version.
- Quota blocks generation. Portfolio Operations → Capacity: free managed storage, release reservations, apply an approved retention preview, or raise the category limit.
- Sandbox passes but live cloud TTS fails. Sandboxes don’t verify credentials, region, billing or network — check those directly with your provider.
Release & license
Current release: v0.11.2 (PNG pixel-diff reports). Validated with 278 passing tests across 50 modules. GitHub · releases. No license file ships in this release — add one before public redistribution, and review model/voice/dependency terms. More help: Knowledge Base.