Skip to content
المشاريع

حول

TTS-Story is a web-based multi‑voice TTS studio for turning tagged scripts into audiobooks—featuring full speaker management, chunk review/regeneration, a job queue and library system, and local GPU or API backends including Kokoro, Chatterbox, VOX CPM, Pocket-TTS, Kitten-TTS, IndexTTS-2, QWEN3 TTS and Omnivoice engines

أدوات التطوير

كيف تُقاس هذه الأرقام

ما يمكنك فعله

  • Prepare: Import a document, tag speakers and chapters, or use optional AI text prep with Claude, Gemini, Atlas Cloud, OpenRouter, LM Studio, or Ollama.
  • Cast and direct: Pick preset or blended voices, clone from reusable reference samples, or design new voices with compatible engines. Control delivery, pronunciation, pitch, speed, and pauses.
  • Generate: Run jobs with progress and ETA, pause and resume, and recover from interruptions. Output separate chapters, a combined story, or both.
  • Review and export: Listen by chapter, regenerate only the lines or speakers you need, edit metadata, and export MP3 or chaptered M4B. Guided Tours and searchable Help are built in.

النمو المقاس للنجوم

خلال 24 ساعة
٠
خلال 7 أيام
+٢
خلال 15 يومًا
+٣
خلال شهر
جارٍ جمع السجل

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل

TTS-Story

Turn a manuscript into a multi-voice audiobook. Cast speakers, direct their delivery, repair individual lines, and export chapters or a complete book. Run synthesis on your own CPU or GPU, or connect to a self-hosted or cloud engine.

Install TTS-Story · Generate your first audio · Compare engines

Recent updates

  • Library security fix: Library requests now validate job and file paths. Thanks to Kayra (@kayrastos) / VELNAR for reporting the issue privately and reviewing the fix. Update and restart TTS-Story. The app now listens on the local computer by default; enable LAN access under Settings → Network & remote admin only if you need it. See network setup and private reporting.
  • Faster Audio Library: Existing productions are indexed on first use, so later starts can show the saved listing while changes are checked in the background.
  • Claude text prep: Direct Anthropic support for manuscript prep and speaker profiles, with model discovery and fallback profiles. Based on work by ToxicToucan.
  • Experimental opening-tag prep: Try an opening-tag-only prompt that converts model output back to paired tags. The standard directed prompt remains available.

Interface tour

The redesigned Estudio interface, shown with Lewis Carroll's Alice's Adventures in Wonderland. Click any screenshot to view it full size.

Manuscript and Cast
Estudio script view with passage directions, detected speakers, voice assignments, and Ready indicators
Read the directed script and manage the cast alongside it.
Speaker properties
Speaker drawer with character profile, voice type, selected sample playback, pitch, speed, and voice design
Assign and preview voices, tune delivery, and mark speakers Ready.
Audio Library
Audio Library with an expanded audiobook chapter collection, durations, review buttons, and export controls
Browse productions, listen by chapter, review chunks, and export audio.
Chunk review and repair
Chapter chunk editor with editable voice direction and text, engine and voice selectors, audio effects, and silence controls
Edit individual lines and delivery cues without redoing the whole book.
Voice libraries
Voices workspace with Kokoro preset previews grouped by language and tabs for reference samples, blends, voice creation, and Gemini cloud voices
Explore presets, reusable samples, blends, and designed voices.
Engine management
Engine settings separating local engines, cloud connections, and utilities, with readiness status and repair and removal controls
Manage isolated local engines, cloud connections, and optional tools.

Highlights

  • Prepare: Import a document, tag speakers and chapters, or use optional AI text prep with Claude, Gemini, Atlas Cloud, OpenRouter, LM Studio, or Ollama.
  • Cast and direct: Pick preset or blended voices, clone from reusable reference samples, or design new voices with compatible engines. Control delivery, pronunciation, pitch, speed, and pauses.
  • Generate: Run jobs with progress and ETA, pause and resume, and recover from interruptions. Output separate chapters, a combined story, or both.
  • Review and export: Listen by chapter, regenerate only the lines or speakers you need, edit metadata, and export MP3 or chaptered M4B. Guided Tours and searchable Help are built in.

Installation

Initial setup installs the lightweight TTS-Story application, shared audio tools, and core dependencies. It no longer downloads every local TTS engine or its model stack.

In Settings → Engine Settings, install only the local engines you need or configure a connected provider. Local engines use isolated environments. See engine installation and removal.

Windows

  1. Right-click and save install-update.bat.
  2. Run install-update.bat and allow setup to finish.
  3. Run run.bat.
  4. Open http://localhost:5000.

The Windows installer manages the required Python 3.11 core environment. When you later install a local engine from Engine Settings, its installer selects compatible CPU or NVIDIA CUDA packages where that engine supports them, including RTX 50-series/Blackwell handling.

Linux and macOS

git clone https://github.com/Xerophayze/TTS-Story.git
cd TTS-Story
chmod +x install-update.sh run.sh
./install-update.sh
./run.sh

Linux/macOS setup supports Python 3.9 through 3.12. Apple Silicon uses unified memory rather than a separate VRAM pool; supported engines may use MPS, while the heavier CUDA-focused engines can be substantially slower on CPU.

Pinokio

  1. Open the TTS-Story community page in Pinokio and select Install.
  2. Wait until the terminal reaches Setup Complete.
  3. Select Start, then Open Web UI.

If an older Pinokio installation stopped partway through setup, use Factory Reset and install again.

Updates and repair

Run install-update.bat on Windows, ./install-update.sh on Linux/macOS, or select Update in Pinokio. Normal updates reuse healthy environments and reconcile the core application without automatically installing optional engines.

For a comprehensive repair:

# Windows
setup.bat --repair

# Linux/macOS
./setup.sh --repair

Supported Engines and Hardware

TTS-Story offers both local and connected generation engines. Qwen3 VoiceDesign and OmniVoice Design are additional Voice Creation workflows rather than full-job engines.

Local engine hardware guide

The figures below are practical planning ranges for the current adapters and default precision, not guaranteed minimums. Free VRAM matters: an 8 GB card with 2 GB already occupied does not provide 8 GB to the model.

Local engine Processing support Approximate free VRAM to plan for CPU-only use Important notes
Kokoro-82M CPU or NVIDIA CUDA 0 GB required; allow roughly 1–2 GB when using CUDA Practical Lightweight built-in voices and local blends.
Chatterbox Turbo NVIDIA CUDA recommended About 8 GB Selectable, but slow English voice cloning in an isolated environment, avoiding Qwen3 dependency conflicts.
VoxCPM 1.5 NVIDIA CUDA recommended About 6 GB Selectable, but impractical for long books English/Chinese cloning; automatic transcription can add memory overhead.
Qwen3-TTS CustomVoice / Clone NVIDIA CUDA recommended Roughly 6–8 GB in bf16/fp16; 8 GB+ recommended Selectable, but impractical for long books Each mode normally loads its own 1.7B model.
OmniVoice Clone NVIDIA CUDA, Apple MPS, or CPU Roughly 4–6 GB in float16; 8 GB is safer Supported, but extremely slow Isolated environment; transcription or float32 can increase memory use.
Pocket TTS Preset / Clone CPU only 0 GB Designed for CPU English-only in the current adapter.
KittenTTS CPU only 0 GB Designed for CPU Eight English voices; model variants are approximately 25–80 MB.
IndexTTS 2.5 NVIDIA CUDA strongly recommended Plan for 8–12 GB with emotion guidance; usage varies with precision and text Selectable, but very slow Isolated multilingual cloning with passage-level emotion guidance; version 2 also remains selectable.
Dot.TTS NVIDIA CUDA strongly recommended Plan for roughly 10–12 GB Installation may work, but inference can be impractical 2B-parameter, 48 kHz cloning model with multi-GB downloads.
Audio8 TTS 0.6B NVIDIA CUDA recommended; CPU fallback Benchmark pending; the BF16 model is compact but codec and generation state add overhead Available in FP32, but potentially slow 44.1 kHz multilingual cloning; exact reference transcript required; sentence-preserving soft and hard chunk limits.
Breeze TTS 2 NVIDIA CUDA required About 7.7 GB eager; 12 GB recommended. Fast mode uses about 14.4 GB; 24 GB recommended Not supported by the official runtime English/Chinese voice design, cloning, and direction. Model weights and self-hosted outputs are research/non-commercial only. Linux is upstream-supported; native Windows integration is experimental.

Cloud engine requirements

Cloud engines perform model inference remotely and therefore require no local TTS VRAM. Normal system RAM and CPU are still used for text handling, downloads, effects, merging, and encoding.

Cloud engine Local VRAM Account or service requirement Main consideration
Kokoro · Replicate 0 GB Replicate API token and billing/credits Provider queues and prediction charges apply.
Chatterbox · Replicate 0 GB Replicate API token and billing/credits Text and assigned reference audio are sent to Replicate.
Microsoft Azure Speech 0 GB Azure Speech key, matching region, and quota Supported regional service with usage billing.
Microsoft Edge TTS 0 GB Internet connection; no API key Experimental consumer endpoint with no availability guarantee.
ElevenLabs 0 GB API key, model/voice access, and character quota Subscription and concurrency limits apply.
Gemini TTS · Flash / Flash-Lite 0 GB Dedicated Gemini TTS API key, model access, and quota Preset or Google-hosted designed voices, passage direction, and billable cloud requests; local reference samples are not uploaded.
Breeze API 0 GB API key, credits, model and local sample or saved voice ID Production-scoped uploads, cloning and passage direction. Commercial outputs require an active paid subscription at generation time, not just credits. Separate from local Breeze.
OpenAI-compatible TTS 0 GB Compatible endpoint, model, voice, and key when required Cost and capabilities depend on the endpoint.
LocalAI TTS Depends on the LocalAI host Running LocalAI server with a TTS model; key only if authentication is enabled Discovers TTS models and saved profiles, while also accepting freeform voice/speaker IDs and language values for models that do not advertise a voice catalog.

VRAM use changes with precision, attention backend, chunk length, transcription device, drivers, and other loaded applications. FP16/bfloat16 generally use less memory than float32. NVIDIA CUDA is the primary tested path for the heavier local engines. Setup detects and validates optional FlashAttention 2 for Qwen3; when its CUDA/C++ build toolchain is unavailable, TTS-Story automatically uses PyTorch SDPA acceleration instead.

For model-specific controls, languages, privacy, and limitations, see the Engine Reference and Comparison.

Basic Workflow

  1. In Generate, paste text or import a document. Use Prep Text if needed, then review the speakers and sections.
  2. Select an engine, assign voices in Cast, and use Quick Test before starting a full job.
  3. Choose chapter and output options, then select Generate Audio and track progress in Job Queue.
  4. In Audio Library, listen, repair or rebuild as needed, and export the result.

Follow the in-app Guided Tours or the first-audio walkthrough.

Voice Cloning

In Voices → Voice prompts, upload a clean recording you have permission to use. Add an accurate transcript if the engine supports or requires it. Assign the sample to a speaker and preview it before generating a full job. See Reference Voice Prompts for formats and recording guidance.

Speaker Tags

Use matching opening and closing tags:

[narrator]The wind moved through the trees.[/narrator]
[alice-female]Did you hear that?[/alice-female]
[marcus-male]Stay close. I'll check outside.[/marcus-male]

Speaker names may contain letters, numbers, underscores, and hyphens. When valid speaker-tagged blocks are present, untagged story text may not be synthesized, so review all tags before generating.

See Speaker and Expression Tags.

Performance Guidance

Test one representative chapter before starting a full book; the first preview can include downloads and model warmup. For CPU use, start with Kokoro, Pocket TTS, or KittenTTS. If a GPU model runs out of memory, free VRAM, shorten the engine’s chunks, or switch to a lighter engine. See Performance Tuning for more.

Help and Troubleshooting

Open the Help tab inside TTS-Story for searchable, screenshot-guided instructions. The ? buttons beside interface controls open the relevant article directly. The same documentation is available under docs/help.

First-run checklist · Troubleshooting checklist · Prepare an issue report

Local Settings and Privacy

Settings and API keys are saved locally in config.json. The file is excluded from Git so personal settings do not block updates, but its contents are plain text. Never commit it, share it, or attach it to a public issue.

Local engines keep manuscript text and synthesis on the computer after required downloads. Cloud TTS providers receive the text they synthesize, and cloud cloning services may also receive reference audio. Cloud LLM providers receive the portions sent through Prep Text.

See Local Data, API Keys, and Backups and Configure Online Services Safely.

License

TTS-Story's application code is licensed under Apache 2.0. Third-party code, model weights, voice samples, and hosted services retain their own licenses and terms; this license does not replace them or grant commercial rights to every engine's output. Check the selected project's license/model card and the provider's terms before use or redistribution.

Credits

TTS-Story integrates the work of the following projects, authors, and providers. Optional engines and remote connections are used only when installed or configured; inclusion here does not imply sponsorship or endorsement.

Interface contributions

  • Estudio workspace redesign by LaMarCab76, contributed through pull request #43: the redesigned Generate and Cast workspace, speaker drawer, Job Queue, Library, Voices, Settings, Help, and associated interface assets and documentation.

Speech models and inference projects

Remote services and local API connections

  • LocalAI by Ettore Di Giacinto (mudler) and contributors — self-hosted TTS connection; individual backend models retain their own authorship and licenses.
  • BreezeBlue — hosted Breeze synthesis and voice storage.
  • Microsoft Azure Speech — hosted speech synthesis.
  • edge-tts by rany2 and contributors — community client used for the experimental Microsoft Edge online TTS connection; not the Azure SDK or an official Microsoft client.
  • ElevenLabs and Replicate — hosted speech/model inference.
  • OpenAI — API conventions supported by our OpenAI-compatible TTS and LLM connections. A compatible endpoint may be operated by another provider; compatibility does not imply an OpenAI-hosted model.
  • Google Gemini by Google — manuscript preparation plus optional cloud TTS and hosted voice design, using separate LLM and TTS API-key settings.
  • Anthropic Claude, Atlas Cloud, and OpenRouter — LLM connections for manuscript preparation.
  • Ollama and LM Studio — local LLM server connections for manuscript preparation.

Audio tools, transcription, and supporting libraries

These are project acknowledgements, not an exhaustive transitive-dependency or license-compliance inventory. See core requirements and optional engine requirements for dependency details, and preserve the applicable upstream license and notice files when redistributing components.

Support

For bugs and feature requests, open a GitHub issue. Report vulnerabilities privately instead.

Support TTS-Story and our other projects.

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…