diff options
| author | historia <historiavg@proton.me> | 2026-08-17 18:33:57 -0400 |
|---|---|---|
| committer | historia <historiavg@proton.me> | 2026-08-17 19:01:55 -0400 |
| commit | 98c592fadf2c7dd7ce7f9d57ec254212a813c350 (patch) | |
| tree | 91cf344dd462588fd8279e69739505209d3ecbf5 /README.md | |
| parent | b4025ca7adb64ad4cfdbac62ea59765fbe76b8e6 (diff) | |
| download | tts-audiobook-generator-98c592fadf2c7dd7ce7f9d57ec254212a813c350.tar.gz | |
fix(converter): stream audio concat and harden error/encoding handling
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -1,6 +1,6 @@ # Qwen3 Audiobook Converter -Convert TXT, PDF, EPUB, DOCX, and DOC files into audiobooks using the Qwen3-TTS voice model. +Convert TXT, PDF, and EPUB files into audiobooks using the Qwen3-TTS voice model. Original project: [https://github.com/WhiskeyCoder/Qwen3-Audiobook-Converter](https://github.com/WhiskeyCoder/Qwen3-Audiobook-Converter ). This repo just has minor fixes, flags, and documentation updates. It also splits the qwen3-tts server into two processes running models on different ports. @@ -9,7 +9,7 @@ Original project: [https://github.com/WhiskeyCoder/Qwen3-Audiobook-Converter](ht The converter sends text extracted from your books to a locally running Qwen3-TTS server and assembles the returned audio into a single audiobook file. -- Supported input: `.txt`, `.pdf`, `.epub`, `.docx`, `.doc` +- Supported input: `.txt`, `.pdf`, `.epub` - Output: `.mp3` - Two voice modes: - Custom voice: pre-built speakers @@ -75,7 +75,7 @@ Put your book files (epub, txt, etc.) in the `book_to_convert/` folder. Then run python audiobook_converter.py ``` -Edit the parameters at the top of `audiobook_converter.py` to change which built-in voice is used. +Edit `converter/config.py` to change which built-in voice is used. ``` CUSTOM_VOICE_SPEAKER = "Vivian" # Serena, Vivian, Uncle_Fu, Aiden, Ono_Anna, Sohee, Eric, Dylan @@ -105,6 +105,14 @@ Adjust the speed of the final audiobook without changing pitch (uses ffmpeg `ate python audiobook_converter.py --speed 0.9 ``` +The `chunks/` folder is scratch space for the current book only — it is emptied before and after every conversion, so an interrupted run never affects the next one. + +## Running tests + +```bash +python -m unittest discover -s tests -t . +``` + ## FlashAttention (optional) The server tries to use FlashAttention 2 by default, but `--no-flash-attn` works without it. On supported GPUs FlashAttention can give a modest speedup. |
