Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
r"""DRL031.py – Flexibles Text-to-Speech-Tool (XTTS v2 • Edge-TTS • gTTS)
* Wortgenaue Blöcke (≤ 200 Zeichen bei XTTS) – keine Wortabbrüche
* WAV-Splitting pro Kapitel (Kapitelüberschriften werden erkannt)
* GPU/CPU-Umschaltbar (`--device cuda|cpu`) • FFmpeg-Check • Autoinstall
* Interaktive Auswahl: Ab welchem Kapitel starten?
"""
from __future__ import annotations