Xerophayze/TTS-Story
概要
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時間
- 0
- 7日間
- +2
- 15日間
- +3
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
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.
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
- Right-click and save install-update.bat.
- Run
install-update.batand allow setup to finish. - Run
run.bat. - 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
- Open the TTS-Story community page in Pinokio and select Install.
- Wait until the terminal reaches Setup Complete.
- 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
- In Generate, paste text or import a document. Use Prep Text if needed, then review the speakers and sections.
- Select an engine, assign voices in Cast, and use Quick Test before starting a full job.
- Choose chapter and output options, then select Generate Audio and track progress in Job Queue.
- 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
- Kokoro-82M by hexgrad
- Chatterbox by Resemble AI
- VoxCPM by OpenBMB
- Qwen3-TTS by the Qwen team
- Pocket TTS by Kyutai
- KittenTTS by KittenML
- IndexTTS by the Bilibili IndexTTS team
- OmniVoice by the OmniVoice authors and k2-fsa contributors
- Dot.TTS / dots.tts by the dots.tts team (originally hosted under RedNote HiLab)
- Audio8 TTS by the Audio8 / Edge0 team; model card
- Breeze TTS 2 by BreezeBlue; original model
- Breeze-TTS-2.cpp and its GGUF conversions by HoppouAI — the community C++/Vulkan implementation used by our Breeze Q8 backend, built on ggml. Credit for the original model remains with BreezeBlue.
- StyleTTS 2 by Yinghao Aaron Li and coauthors — upstream architecture acknowledged by Kokoro, not a separate selectable TTS-Story engine.
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
- FFmpeg and its contributors — encoding, merging, metadata, and audio processing; Windows build distributions from Gyan and BtbN.
- Rubber Band by Breakfast Quay and SoX by the SoX contributors — time/pitch processing and audio utilities.
- FunASR and SenseVoice by their respective teams — automatic reference-sample transcription.
- eSpeak NG and Misaki — pronunciation/phonemization support for applicable engines.
- PyTorch, Hugging Face Transformers, and Hugging Face Hub — model execution, loading, and distribution; optional FlashAttention by Dao-AILab and contributors.
- Flask by Pallets — web application framework.
- NumPy, SciPy, librosa, SoundFile, pydub, and pyloudnorm — numerical, waveform, and loudness processing.
- Document import and help rendering use python-docx, pypdf, EbookLib, Beautiful Soup, striprtf, odfpy, and Python-Markdown.
- TTS Samples by yaph — external sample library; respect the rights and terms of each reference recording.
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.
関連プロジェクトを探す
読み込み中…