LucasLooTan Claude Opus 4.7 (1M context) commited on
Commit
2ce7b16
·
1 Parent(s): e7597f3

feat: gTTS as primary TTS — Coqui XTTS-v2 was never installed on Space

Browse files

The HF Space had been emitting silent-stub WAV for every Speak click
because the local Coqui TTS package isn't in requirements (2GB+ install
+ slow CPU inference + the XTTS-via-AMD path was promised in a comment
but never wired). Switch to gTTS — Google's free TTS, tiny dep, real
audio in <1s.

Three-tier fallback:
1. Coqui XTTS-v2 if installed locally (best quality, slow).
2. gTTS — fast cloud TTS, free, MP3 output.
3. Silent stub — last resort so gradio Audio doesn't error.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

2 files changed +40 -16
Files changed (2)
requirements.txt+4-1
signbridge/voice/tts.py+36-15