How zeropointnine/tts-audiobook-tool works
tts-audiobook-tool is a local/remote audiobook-production application: users configure a project and voice, import book text, generate and verify speech segments, process audio, then concatenate and play the result. The graph includes the documented text segmentation, retry/STT verification, audio processing, realtime/chat, enhancement, and browser-player capabilities. Several subsystem links rely on README descriptions because their implementation was not sampled; unsampled connections are omitted rather than inferred.
Main entry points: model_worker.py Generation worker · project.py Project and book · concat_util.py Audiobook concatenation · app.py Console application
Components 23
Application and projects
- Console application
tts_audiobook_tool/app.py - Project and model menus
tts_audiobook_tool/menus/main_menu.py - Application state
tts_audiobook_tool/state.py - Project and book
tts_audiobook_tool/project.py
Text preparation
- EPUB and text import
tts_audiobook_tool/text_ops/epub_extractor.py - Text editing
tts_audiobook_tool/text_ops/text_edit_session.py - Phrase segmentation
tts_audiobook_tool/text_ops/phrase_segmenter.py - Phrase groups
tts_audiobook_tool/app_types/phrase.py
Speech generation
- Generation worker
tts_audiobook_tool/model_worker.py - Model management
tts_audiobook_tool/model_manager.py - TTS model interface
tts_audiobook_tool/tts.py - TTS model catalog
tts_audiobook_tool/tts_models/model_catalog.py - Speech verification
tts_audiobook_tool/stt.py - Alignment enhancement
tts_audiobook_tool/enhance/enhance_flow.py
Audio output
- Audio processing
tts_audiobook_tool/sound/sound_pipeline.py - Generated sound segments
tts_audiobook_tool/project_support/project_sound_segments.py - Audiobook concatenation
tts_audiobook_tool/concat_util.py - FLAC and M4B output
tts_audiobook_tool/sound/m4b_chapter_util.py - Synchronized browser player
browser_player/app.js
Interactive features
- Realtime playback
tts_audiobook_tool/real_time_playback.py - Live LLM conversation
tts_audiobook_tool/conversation/conversation.py - Remote generation server
tts_audiobook_tool/server/server.py
Other components
- Book creator
Connections 27
- Book creator → Console application: uses console
- Console application → Project and model menus: opens menu
tts_audiobook_tool/app.py - Project and model menus → Application state: configures
- Application state → Project and book: selects
tts_audiobook_tool/state.py - Book creator → Project and book: sets up
- Book creator → EPUB and text import: selects source
- EPUB and text import → Project and book: loads book text
- Book creator → Text editing: edits text
- Text editing → Phrase segmentation: segments text
tts_audiobook_tool/text_ops/text_edit_session.py - Phrase segmentation → Phrase groups: creates phrases
- Project and book → Generation worker: provides project
- Generation worker → Model management: warms models
tts_audiobook_tool/model_worker.py - Model management → TTS model interface: loads TTS
tts_audiobook_tool/model_manager.py - TTS model interface → TTS model catalog: selects model
- Generation worker → Speech verification: verifies speech
tts_audiobook_tool/model_worker.py - Generation worker → Audio processing: processes audio
tts_audiobook_tool/model_worker.py - Generation worker → Generated sound segments: saves segments
- Book creator → Alignment enhancement: aligns existing audio
- Alignment enhancement → Speech verification: uses transcription
- Book creator → Audiobook concatenation: concatenates segments
- Audiobook concatenation → Generated sound segments: reads segments
- Audiobook concatenation → FLAC and M4B output: writes audiobook
- FLAC and M4B output → Synchronized browser player: embeds text and timing
- Book creator → Synchronized browser player: plays and reads
- Book creator → Realtime playback: tests playback
- Book creator → Live LLM conversation: starts live chat
- Book creator → Remote generation server: requests remote speech