Hermolaou/chatterbox-wrapper-tts-self-healing
0
Chatterbox Wrapper TTS Self-Healing Space
This app is a Space-ready conversion of the Colab notebook: Chatterbox Wrapper TTS.ipynb
It keeps the notebook's core workflow and adds production-oriented behavior:
- text chunking adapted from the notebook logic
- multilingual Chatterbox TTS generation
- self-healing retries:
- model reload on failure
- memory cache cleanup on OOM-like errors
- fallback to no reference audio prompt
- split-and-retry for difficult chunks
- silence fallback for unrecoverable chunks
- Hugging Face CLI integration:
- check/repair
hfCLI hf uploadlatest generated outputhf downloadsnapshot with include patterns- API fallback when CLI operation fails
- Hugging Face sign-in and permanent dataset storage:
Sign in with HFbutton- per-user dataset repo defaults
- upload full run bundles to a dataset repo for permanent storage
Secrets
Set this Space Secret for private repo operations:
HF_TOKEN
Notes
- Runtime outputs are stored under
./outputs/. ffmpegis installed viaapt.txtand is used for optional cleaned MP3 export.
