Update README.md
Browse files
README.md
CHANGED
|
@@ -1,368 +1,373 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
###
|
| 14 |
-
```bash
|
| 15 |
-
./
|
| 16 |
-
```
|
| 17 |
-
|
| 18 |
-
###
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
- **
|
| 44 |
-
- **
|
| 45 |
-
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
- **
|
| 49 |
-
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
- **
|
| 53 |
-
- **
|
| 54 |
-
- **
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
- **
|
| 60 |
-
- **
|
| 61 |
-
- **
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
- **
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
- **
|
| 68 |
-
- **Multi-Voice
|
| 69 |
-
- **
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
[
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
- **
|
| 143 |
-
- **
|
| 144 |
-
- **
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
- **
|
| 149 |
-
- **
|
| 150 |
-
- **
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
- **
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
|
| 172 |
-
|
| 173 |
-
|
| 174 |
-
|
| 175 |
-
|
| 176 |
-
|
| 177 |
-
|
| 178 |
-
|
| 179 |
-
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
|
| 189 |
-
|
| 190 |
-
|
| 191 |
-
|
| 192 |
-
|
| 193 |
-
|
| 194 |
-
|
| 195 |
-
|
| 196 |
-
|
| 197 |
-
|
| 198 |
-
|
| 199 |
-
|
| 200 |
-
|
| 201 |
-
|
| 202 |
-
|
| 203 |
-
|
| 204 |
-
|
| 205 |
-
|
| 206 |
-
|
| 207 |
-
-
|
| 208 |
-
-
|
| 209 |
-
-
|
| 210 |
-
|
| 211 |
-
|
| 212 |
-
|
| 213 |
-
|
| 214 |
-
-
|
| 215 |
-
|
| 216 |
-
|
| 217 |
-
|
| 218 |
-
|
| 219 |
-
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
|
| 223 |
-
- **
|
| 224 |
-
|
| 225 |
-
|
| 226 |
-
|
| 227 |
-
|
| 228 |
-
|
| 229 |
-
|
| 230 |
-
|
| 231 |
-
|
| 232 |
-
|
| 233 |
-
|
| 234 |
-
|
| 235 |
-
|
| 236 |
-
|
| 237 |
-
|
| 238 |
-
|
| 239 |
-
|
| 240 |
-
|
| 241 |
-
|
| 242 |
-
|
| 243 |
-
|
| 244 |
-
|
| 245 |
-
|
| 246 |
-
|
| 247 |
-
|
| 248 |
-
|
| 249 |
-
|
| 250 |
-
|
| 251 |
-
|
| 252 |
-
|
| 253 |
-
|
| 254 |
-
|
| 255 |
-
|
| 256 |
-
|
| 257 |
-
|
| 258 |
-
|
| 259 |
-
|
| 260 |
-
|
| 261 |
-
|
| 262 |
-
|
| 263 |
-
|
| 264 |
-
|
| 265 |
-
|
| 266 |
-
|
| 267 |
-
|
| 268 |
-
|
| 269 |
-
|
| 270 |
-
|
| 271 |
-
|
| 272 |
-
|
| 273 |
-
|
| 274 |
-
|
| 275 |
-
|
| 276 |
-
|
| 277 |
-
|
| 278 |
-
|
| 279 |
-
|
| 280 |
-
|
| 281 |
-
|
| 282 |
-
|
| 283 |
-
|
| 284 |
-
|
| 285 |
-
|
| 286 |
-
|
| 287 |
-
|
| 288 |
-
|
| 289 |
-
|
| 290 |
-
|
| 291 |
-
|
| 292 |
-
|
| 293 |
-
|
| 294 |
-
|
| 295 |
-
|
| 296 |
-
|
| 297 |
-
|
| 298 |
-
|
| 299 |
-
|
| 300 |
-
|
| 301 |
-
|
| 302 |
-
|
| 303 |
-
|
| 304 |
-
|
| 305 |
-
|
| 306 |
-
|
| 307 |
-
|
| 308 |
-
|
| 309 |
-
|
| 310 |
-
- CUDA
|
| 311 |
-
-
|
| 312 |
-
-
|
| 313 |
-
|
| 314 |
-
|
| 315 |
-
|
| 316 |
-
|
| 317 |
-
|
| 318 |
-
|
| 319 |
-
|
| 320 |
-
|
| 321 |
-
|
| 322 |
-
|
| 323 |
-
|
| 324 |
-
|
| 325 |
-
|
| 326 |
-
|
| 327 |
-
-
|
| 328 |
-
- **
|
| 329 |
-
-
|
| 330 |
-
|
| 331 |
-
|
| 332 |
-
|
| 333 |
-
-
|
| 334 |
-
-
|
| 335 |
-
-
|
| 336 |
-
|
| 337 |
-
|
| 338 |
-
|
| 339 |
-
|
| 340 |
-
|
| 341 |
-
|
| 342 |
-
|
| 343 |
-
|
| 344 |
-
|
| 345 |
-
|
| 346 |
-
###
|
| 347 |
-
- **
|
| 348 |
-
- **
|
| 349 |
-
- **
|
| 350 |
-
|
| 351 |
-
|
| 352 |
-
|
| 353 |
-
|
| 354 |
-
|
| 355 |
-
|
| 356 |
-
|
| 357 |
-
|
| 358 |
-
|
| 359 |
-
|
| 360 |
-
|
| 361 |
-
|
| 362 |
-
|
| 363 |
-
|
| 364 |
-
|
| 365 |
-
|
| 366 |
-
|
| 367 |
-
|
| 368 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
title: ebookChatterBox
|
| 4 |
+
sdk: gradio
|
| 5 |
+
---
|
| 6 |
+
# π§ Chatterbox Audiobook Generator
|
| 7 |
+
|
| 8 |
+
**This is a work in progress. You can consider this a pre-launch repo at the moment, but if you find bugs, please put them in the issues area. Thank you.**
|
| 9 |
+
**Transform your text into high-quality audiobooks with advanced TTS models, voice cloning, and professional volume normalization.**
|
| 10 |
+
|
| 11 |
+
## π Quick Start
|
| 12 |
+
|
| 13 |
+
### 1. Install Dependencies
|
| 14 |
+
```bash
|
| 15 |
+
./install-audiobook.bat
|
| 16 |
+
```
|
| 17 |
+
|
| 18 |
+
### 2. Launch the Application
|
| 19 |
+
```bash
|
| 20 |
+
./launch_audiobook.bat
|
| 21 |
+
```
|
| 22 |
+
|
| 23 |
+
### 3. CUDA Issue Fix (If Needed)
|
| 24 |
+
If you encounter CUDA assertion errors during generation, install the patched version:
|
| 25 |
+
```bash
|
| 26 |
+
# Activate your virtual environment first
|
| 27 |
+
venv\Scripts\activate.bat
|
| 28 |
+
|
| 29 |
+
# Install the CUDA-fixed version
|
| 30 |
+
pip install --force-reinstall --no-cache-dir "chatterbox-tts @ git+https://github.com/fakerybakery/better-chatterbox@fix-cuda-issue"
|
| 31 |
+
```
|
| 32 |
+
|
| 33 |
+
The web interface will open automatically in your browser at `http://localhost:7860`
|
| 34 |
+
|
| 35 |
+
---
|
| 36 |
+
|
| 37 |
+
## β¨ Features
|
| 38 |
+
|
| 39 |
+
### π **Audiobook Creation**
|
| 40 |
+
- **Single Voice**: Generate entire audiobooks with one consistent voice
|
| 41 |
+
- **Multi-Voice**: Create dynamic audiobooks with multiple characters
|
| 42 |
+
- **Custom Voices**: Clone voices from audio samples for personalized narration
|
| 43 |
+
- **Professional Volume Normalization**: Ensure consistent audio levels across all voices
|
| 44 |
+
- **π Text Queuing System** β *NEW*: Upload books in any size chapters and generate continuously
|
| 45 |
+
- **π Chunk-Based Processing** β *NEW*: Improved reliability for longer text generations
|
| 46 |
+
|
| 47 |
+
### π΅ **Audio Processing**
|
| 48 |
+
- **Smart Cleanup**: Remove unwanted silence and audio artifacts
|
| 49 |
+
- **Volume Normalization**: Professional-grade volume balancing for all voices
|
| 50 |
+
- **Real-time Audio Analysis**: Live volume level monitoring and feedback
|
| 51 |
+
- **Preview System**: Test settings before applying to entire projects
|
| 52 |
+
- **Batch Processing**: Process multiple projects efficiently
|
| 53 |
+
- **Quality Control**: Advanced audio optimization tools
|
| 54 |
+
- **π― Enhanced Audio Quality** β *NEW*: Improved P-top and minimum P parameters for better voice generation
|
| 55 |
+
|
| 56 |
+
### π **Voice Management**
|
| 57 |
+
- **Voice Library**: Organize and manage your voice collection
|
| 58 |
+
- **Voice Cloning**: Create custom voices from audio samples
|
| 59 |
+
- **Volume Settings**: Configure target volume levels for each voice
|
| 60 |
+
- **Professional Presets**: Industry-standard volume levels (audiobook, podcast, broadcast)
|
| 61 |
+
- **Character Assignment**: Map specific voices to story characters
|
| 62 |
+
|
| 63 |
+
### π **Volume Normalization System** β *NEW*
|
| 64 |
+
- **Professional Standards**: Audiobook (-18 dB), Podcast (-16 dB), Broadcast (-23 dB) presets
|
| 65 |
+
- **Consistent Character Voices**: All characters maintain the same volume level
|
| 66 |
+
- **Real-time Analysis**: Color-coded volume status with RMS and peak level display
|
| 67 |
+
- **Retroactive Normalization**: Apply volume settings to existing voice projects
|
| 68 |
+
- **Multi-Voice Support**: Batch normalize all voices in multi-character audiobooks
|
| 69 |
+
- **Soft Limiting**: Intelligent audio limiting to prevent distortion
|
| 70 |
+
|
| 71 |
+
### π **Text Processing**
|
| 72 |
+
- **Chapter Support**: Automatic chapter detection and organization
|
| 73 |
+
- **Multi-Voice Parsing**: Parse character dialogue automatically
|
| 74 |
+
- **Text Validation**: Ensure proper formatting before generation
|
| 75 |
+
- **π Queue Management** β *NEW*: Batch process multiple text files sequentially
|
| 76 |
+
- **π Return Pause System** β *NEW*: Automatic pause insertion based on line breaks for natural speech flow
|
| 77 |
+
|
| 78 |
+
---
|
| 79 |
+
|
| 80 |
+
## π Custom Audiobook Processing Pipeline β *NEW*
|
| 81 |
+
|
| 82 |
+
Our advanced text processing pipeline transforms your written content into natural-sounding audiobooks with intelligent pause placement and character flow management.
|
| 83 |
+
|
| 84 |
+
### π **Return Pause System**
|
| 85 |
+
|
| 86 |
+
**Automatic pause insertion based on your text formatting** - Every line break (`\n`) in your text automatically adds a 0.1-second pause to the generated audio, creating natural speech rhythms without manual intervention.
|
| 87 |
+
|
| 88 |
+
#### **How It Works**
|
| 89 |
+
- **Line Break Detection**: System automatically counts all line breaks in your text
|
| 90 |
+
- **Pause Calculation**: Each return adds exactly 0.1 seconds of silence
|
| 91 |
+
- **Accumulative Pauses**: Multiple consecutive line breaks create longer pauses
|
| 92 |
+
- **Universal Support**: Works with single-voice, multi-voice, and batch processing
|
| 93 |
+
|
| 94 |
+
#### **Example Text Formatting**
|
| 95 |
+
```
|
| 96 |
+
[Narrator] The sun was setting over the hills.
|
| 97 |
+
|
| 98 |
+
[Character1] "We need to find shelter soon."
|
| 99 |
+
|
| 100 |
+
[Character2] "I see a cave up ahead.
|
| 101 |
+
Let's hurry before it gets dark."
|
| 102 |
+
|
| 103 |
+
|
| 104 |
+
[Narrator] They rushed toward the cave, hearts pounding.
|
| 105 |
+
```
|
| 106 |
+
**Result**: Natural pauses between dialogue, emphasis pauses for dramatic effect, and smooth character transitions.
|
| 107 |
+
|
| 108 |
+
### π **Text Formatting Best Practices**
|
| 109 |
+
|
| 110 |
+
#### **π Multi-Voice Dialogue Structure**
|
| 111 |
+
```
|
| 112 |
+
[Character Name] Dialogue content here.
|
| 113 |
+
|
| 114 |
+
[Another Character] Response content here.
|
| 115 |
+
Multiple lines can be used for the same character.
|
| 116 |
+
|
| 117 |
+
[Narrator] Descriptive text and scene setting.
|
| 118 |
+
```
|
| 119 |
+
|
| 120 |
+
#### **πͺ Natural Flow Techniques**
|
| 121 |
+
- **Paragraph Breaks**: Use double line breaks for scene transitions
|
| 122 |
+
- **Emphasis Pauses**: Add extra returns before important revelations
|
| 123 |
+
- **Character Separation**: Single returns between different speakers
|
| 124 |
+
- **Breathing Room**: Natural pauses for complex concepts or emotional moments
|
| 125 |
+
|
| 126 |
+
#### **π Single Voice Formatting**
|
| 127 |
+
```
|
| 128 |
+
Chapter content flows naturally here.
|
| 129 |
+
|
| 130 |
+
New paragraphs create natural pauses.
|
| 131 |
+
|
| 132 |
+
|
| 133 |
+
Extended pauses can emphasize dramatic moments.
|
| 134 |
+
|
| 135 |
+
Regular text continues with normal pacing.
|
| 136 |
+
```
|
| 137 |
+
|
| 138 |
+
### π **Processing Pipeline Features**
|
| 139 |
+
|
| 140 |
+
#### **π§ Intelligent Text Analysis**
|
| 141 |
+
- **Line Break Preservation**: Maintains your formatting intentions throughout processing
|
| 142 |
+
- **Character Assignment**: Automatically maps voice tags to selected voice profiles
|
| 143 |
+
- **Chunk Optimization**: Breaks long texts into optimal segments while preserving pause timing
|
| 144 |
+
- **Error Recovery**: Validates text and provides helpful formatting suggestions
|
| 145 |
+
|
| 146 |
+
#### **β‘ Real-Time Processing**
|
| 147 |
+
- **Live Feedback**: Console output shows exactly how many pauses are being added
|
| 148 |
+
- **Debug Information**: Detailed logging of pause detection and application
|
| 149 |
+
- **Progress Tracking**: Monitor pause processing alongside audio generation
|
| 150 |
+
- **Quality Assurance**: Automatic validation of pause placement
|
| 151 |
+
|
| 152 |
+
#### **ποΈ Professional Output**
|
| 153 |
+
- **Seamless Integration**: Pauses blend naturally with generated speech
|
| 154 |
+
- **Volume Consistency**: Silence segments match the audio output specifications
|
| 155 |
+
- **Format Compatibility**: Works with all supported audio formats and quality settings
|
| 156 |
+
- **Project Preservation**: Pause information saved in project metadata for regeneration
|
| 157 |
+
|
| 158 |
+
### π‘ **Pro Tips for Better Audiobooks**
|
| 159 |
+
|
| 160 |
+
#### **π― Dialogue Formatting**
|
| 161 |
+
- **Character Consistency**: Always use the same character name format `[Name]`
|
| 162 |
+
- **Natural Breaks**: Place returns where a human reader would naturally pause
|
| 163 |
+
- **Scene Transitions**: Use multiple returns (2-3) for major scene changes
|
| 164 |
+
- **Emotional Beats**: Add single returns before/after emotional dialogue
|
| 165 |
+
|
| 166 |
+
#### **π Chapter Structure**
|
| 167 |
+
```
|
| 168 |
+
Chapter 1: The Beginning
|
| 169 |
+
|
| 170 |
+
Opening paragraph with scene setting.
|
| 171 |
+
|
| 172 |
+
"Character dialogue with natural flow."
|
| 173 |
+
|
| 174 |
+
Descriptive narrative continues.
|
| 175 |
+
|
| 176 |
+
|
| 177 |
+
Major scene transition with extended pause.
|
| 178 |
+
|
| 179 |
+
New section begins here.
|
| 180 |
+
```
|
| 181 |
+
|
| 182 |
+
#### **πͺ Advanced Techniques**
|
| 183 |
+
- **Cliffhangers**: Use extended pauses before revealing crucial information
|
| 184 |
+
- **Action Sequences**: Shorter, punchy sentences with minimal pauses for intensity
|
| 185 |
+
- **Contemplative Moments**: Longer pauses for reflection and character development
|
| 186 |
+
- **Comedic Timing**: Strategic pauses before punchlines or comedic reveals
|
| 187 |
+
|
| 188 |
+
### π **Debug Output Examples**
|
| 189 |
+
|
| 190 |
+
When generating your audiobook, watch for these helpful console messages:
|
| 191 |
+
```
|
| 192 |
+
π Detected 15 line breaks β 1.5s total pause time
|
| 193 |
+
π Line breaks detected in [Character1]: +0.3s pause (from 3 returns)
|
| 194 |
+
π Chunk 2 (Narrator): Added 0.2s pause after speech
|
| 195 |
+
```
|
| 196 |
+
|
| 197 |
+
This real-time feedback helps you understand exactly how your formatting translates to audio timing.
|
| 198 |
+
|
| 199 |
+
---
|
| 200 |
+
|
| 201 |
+
## π Recent Improvements
|
| 202 |
+
|
| 203 |
+
### π― **Audio Quality Enhancements**
|
| 204 |
+
We've significantly improved audio generation quality by optimizing the underlying TTS parameters:
|
| 205 |
+
|
| 206 |
+
- **Enhanced P-top and Minimum P Settings**: Fine-tuned probability parameters for more natural speech patterns
|
| 207 |
+
- **Reduced Audio Artifacts**: Better handling of pronunciation and intonation
|
| 208 |
+
- **Improved Voice Consistency**: More stable voice characteristics across long generations
|
| 209 |
+
- **Better Pronunciation**: Enhanced handling of complex words and names
|
| 210 |
+
|
| 211 |
+
**π Note for Existing Users**:
|
| 212 |
+
- Older voice profiles will continue to work as before
|
| 213 |
+
- To take advantage of the new audio quality improvements, consider re-creating voice profiles
|
| 214 |
+
- Existing projects remain fully compatible
|
| 215 |
+
|
| 216 |
+
### π **Text Queuing System**
|
| 217 |
+
Perfect for processing large books or multiple chapters:
|
| 218 |
+
|
| 219 |
+
- **Batch Upload**: Upload multiple text files of any size
|
| 220 |
+
- **Sequential Processing**: Automatically processes files one after another
|
| 221 |
+
- **Progress Tracking**: Monitor generation progress across all queued items
|
| 222 |
+
- **Flexible Chapter Sizes**: No restrictions on individual file length
|
| 223 |
+
- **Unattended Generation**: Set up large projects and let them run automatically
|
| 224 |
+
|
| 225 |
+
### π **Chunk-Based TTS System**
|
| 226 |
+
Enhanced the core text-to-speech engine for better reliability:
|
| 227 |
+
|
| 228 |
+
- **Background Chunking**: Automatically splits long texts into optimal chunks
|
| 229 |
+
- **Memory Management**: Better handling of large text inputs
|
| 230 |
+
- **Error Recovery**: Improved resilience during long generation sessions
|
| 231 |
+
- **Consistent Quality**: Maintains voice quality across chunk boundaries
|
| 232 |
+
- **Progress Feedback**: Real-time updates on generation progress
|
| 233 |
+
|
| 234 |
+
---
|
| 235 |
+
|
| 236 |
+
## ποΈ Volume Normalization Guide
|
| 237 |
+
|
| 238 |
+
### **Individual Voice Setup**
|
| 239 |
+
1. Go to **Voice Library** tab
|
| 240 |
+
2. Upload your voice sample and configure settings
|
| 241 |
+
3. Set target volume level (default: -18 dB for audiobooks)
|
| 242 |
+
4. Choose from professional presets or use custom levels
|
| 243 |
+
5. Save voice profile with volume settings
|
| 244 |
+
|
| 245 |
+
### **Multi-Voice Projects**
|
| 246 |
+
1. Navigate to **Multi-Voice Audiobook Creation** tab
|
| 247 |
+
2. Enable volume normalization for all voices
|
| 248 |
+
3. Set target level for consistent character voices
|
| 249 |
+
4. All characters will be automatically normalized during generation
|
| 250 |
+
|
| 251 |
+
### **Text Queuing Workflow** β *NEW*
|
| 252 |
+
1. Go to **Production Studio** tab
|
| 253 |
+
2. Select "Batch Processing" mode
|
| 254 |
+
3. Upload multiple text files (chapters, sections, etc.)
|
| 255 |
+
4. Choose your voice and settings
|
| 256 |
+
5. Start batch processing - files will generate sequentially
|
| 257 |
+
6. Monitor progress and download completed audiobooks
|
| 258 |
+
|
| 259 |
+
### **Professional Standards**
|
| 260 |
+
- **π Audiobook Standard**: -18 dB RMS (recommended for most audiobooks)
|
| 261 |
+
- **ποΈ Podcast Standard**: -16 dB RMS (for podcast-style content)
|
| 262 |
+
- **π Quiet/Comfortable**: -20 dB RMS (for quiet listening environments)
|
| 263 |
+
- **π Loud/Energetic**: -14 dB RMS (for dynamic, energetic content)
|
| 264 |
+
- **πΊ Broadcast Standard**: -23 dB RMS (for broadcast television standards)
|
| 265 |
+
|
| 266 |
+
---
|
| 267 |
+
|
| 268 |
+
## π Project Structure
|
| 269 |
+
|
| 270 |
+
```
|
| 271 |
+
π¦ Your Audiobook Projects
|
| 272 |
+
βββ π€ speakers/ # Voice library and samples
|
| 273 |
+
βββ π audiobook_projects/ # Generated audiobooks
|
| 274 |
+
βββ π§ src/audiobook/ # Core processing modules
|
| 275 |
+
βββ π Generated files... # Audio chunks and final outputs
|
| 276 |
+
```
|
| 277 |
+
|
| 278 |
+
---
|
| 279 |
+
|
| 280 |
+
## π― Workflow
|
| 281 |
+
|
| 282 |
+
1. **π Prepare Text**: Format your story with proper chapter breaks and strategic line breaks for natural pauses
|
| 283 |
+
2. **π€ Select Voices**: Choose or clone voices for your characters
|
| 284 |
+
3. **ποΈ Configure Volume**: Set professional volume levels and normalization
|
| 285 |
+
4. **βοΈ Configure Settings**: Adjust quality, speed, and processing options
|
| 286 |
+
5. **π§ Generate Audio**: Create your audiobook with advanced TTS and automatic pause insertion
|
| 287 |
+
6. **π§Ή Clean & Optimize**: Use smart cleanup tools for perfect audio
|
| 288 |
+
7. **π¦ Export**: Get your finished audiobook ready for distribution
|
| 289 |
+
|
| 290 |
+
### π **Enhanced Multi-Voice Workflow**
|
| 291 |
+
1. **π Format Dialogue**: Use `[Character]` tags and strategic line breaks for natural flow
|
| 292 |
+
2. **π Add Return Pauses**: Place line breaks where you want natural speech pauses (0.1s each)
|
| 293 |
+
3. **π€ Assign Voices**: Map each character to their voice profile
|
| 294 |
+
4. **β‘ Process with Intelligence**: Watch console output for pause detection feedback
|
| 295 |
+
5. **π§ Review & Adjust**: Listen to generated audio and refine formatting if needed
|
| 296 |
+
|
| 297 |
+
### π **Batch Processing Workflow** β *NEW*
|
| 298 |
+
1. **π Organize Chapters**: Split your book into individual text files
|
| 299 |
+
2. **π Queue Setup**: Upload all files to the batch processing system
|
| 300 |
+
3. **π€ Voice Selection**: Choose voice and configure settings once
|
| 301 |
+
4. **π Automated Generation**: Let the system process all files sequentially
|
| 302 |
+
5. **π Monitor Progress**: Track completion status in real-time
|
| 303 |
+
6. **π¦ Collect Results**: Download all generated audiobook chapters
|
| 304 |
+
|
| 305 |
+
---
|
| 306 |
+
|
| 307 |
+
## π οΈ Technical Requirements
|
| 308 |
+
|
| 309 |
+
- **Python 3.8+**
|
| 310 |
+
- **CUDA GPU** (recommended for faster processing)
|
| 311 |
+
- **8GB+ RAM** (16GB recommended for large projects)
|
| 312 |
+
- **Modern web browser** for the interface
|
| 313 |
+
|
| 314 |
+
### π§ **CUDA Support**
|
| 315 |
+
- CUDA compatibility issues have been resolved with updated dependencies
|
| 316 |
+
- GPU acceleration is now stable for extended generation sessions
|
| 317 |
+
- Fallback to CPU processing available if CUDA issues occur
|
| 318 |
+
- **If you encounter CUDA assertion errors**: Use the patched version from the installation instructions above
|
| 319 |
+
- The fix addresses PyTorch indexing issues that could cause crashes during audio generation
|
| 320 |
+
|
| 321 |
+
---
|
| 322 |
+
|
| 323 |
+
## β οΈ Known Issues & Compatibility
|
| 324 |
+
|
| 325 |
+
### **Multi-Voice Generation**
|
| 326 |
+
- Short sentences or sections may occasionally cause issues during multi-voice generation
|
| 327 |
+
- This is a limitation of the underlying TTS models rather than the implementation
|
| 328 |
+
- **Workaround**: Use longer, more detailed sentences for better stability
|
| 329 |
+
- Single-voice generation is not affected by this issue
|
| 330 |
+
|
| 331 |
+
### **Voice Profile Compatibility**
|
| 332 |
+
- **Existing Voices**: All older voice profiles remain fully functional
|
| 333 |
+
- **New Features**: To benefit from improved audio quality, consider re-creating voice profiles
|
| 334 |
+
- **Project Compatibility**: Existing audiobook projects work without modification
|
| 335 |
+
- **Regeneration**: Individual chunks can be regenerated with improved quality settings
|
| 336 |
+
|
| 337 |
+
### **Batch Processing Considerations**
|
| 338 |
+
- Large batch jobs may take significant time depending on text length and hardware
|
| 339 |
+
- Monitor system resources during extended batch processing sessions
|
| 340 |
+
- Consider processing very large books in smaller batches for better control
|
| 341 |
+
|
| 342 |
+
---
|
| 343 |
+
|
| 344 |
+
## π Supported Formats
|
| 345 |
+
|
| 346 |
+
### Input
|
| 347 |
+
- **Text**: `.txt`, `.md`, formatted stories and scripts
|
| 348 |
+
- **Audio Samples**: `.wav`, `.mp3`, `.flac` for voice cloning
|
| 349 |
+
- **Batch Files**: Multiple text files for queue processing
|
| 350 |
+
|
| 351 |
+
### Output
|
| 352 |
+
- **Audio**: High-quality `.wav` files with professional volume levels
|
| 353 |
+
- **Projects**: Organized folder structure with chapters
|
| 354 |
+
- **Exports**: Ready-to-use audiobook files
|
| 355 |
+
- **Batch Results**: Multiple completed audiobooks from queue processing
|
| 356 |
+
|
| 357 |
+
---
|
| 358 |
+
|
| 359 |
+
## π Support
|
| 360 |
+
|
| 361 |
+
- **Features Guide**: See `AUDIOBOOK_FEATURES.md` for detailed capabilities
|
| 362 |
+
- **Development Notes**: Check `development/` folder for technical details
|
| 363 |
+
- **Issues**: Report problems via GitHub issues
|
| 364 |
+
|
| 365 |
+
---
|
| 366 |
+
|
| 367 |
+
## π License
|
| 368 |
+
|
| 369 |
+
This project is licensed under the terms specified in `LICENSE`.
|
| 370 |
+
|
| 371 |
+
---
|
| 372 |
+
|
| 373 |
+
**π Ready to create amazing audiobooks with professional volume levels and enhanced audio quality? Run `./launch_audiobook.bat` and start generating!**
|