tts-voice-creator-clone-and.../routes
mARTin-B78 13c79768b4 Fix speech gate, hallucination filter, and latency
Speech gate (silence detection):
- vadHadSpeech flag: VAD auto-stop cancels without calling STT when no
  speech was detected (fixes "[STT] No speech detected → gibberish" loop)
- cancelNextBlob flag: onstop skips processBlob when VAD cancels silently
- vadLastVoiceMs: gates preview transcription on actual detected speech
  (prevents "reich" hallucination on initial silence chunks)

Hallucination filter:
- Client: HALLUCINATION_RE strips known Whisper phantoms from preview
- Server: _is_hallucination() in generate() treats "reich" / "danke" /
  "thank you" etc. as "No speech detected" → never reaches LLM

Latency:
- VAD_SILENCE_MS: 1500 → 1000 ms (sends 500 ms sooner per turn)
- VAD_MIN_REC_MS: 500 → 400 ms
- MediaRecorder timeslice: 2500 → 1500 ms (preview text updates faster)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-29 20:38:53 +02:00
..
__init__.py Security audit, modular refactor, and container-name field 2026-05-29 12:13:07 +02:00
admin.py Add version number (v1.1.0) and rewrite CHANGELOG to full Keep-a-Changelog spec 2026-05-29 13:53:31 +02:00
conversation.py Fix speech gate, hallucination filter, and latency 2026-05-29 20:38:53 +02:00
docker.py Security audit, modular refactor, and container-name field 2026-05-29 12:13:07 +02:00
library.py Security audit, modular refactor, and container-name field 2026-05-29 12:13:07 +02:00
settings.py Security audit, modular refactor, and container-name field 2026-05-29 12:13:07 +02:00
sources.py Security audit, modular refactor, and container-name field 2026-05-29 12:13:07 +02:00
stt.py Fix ImportError: _AUDIO_EXTS imported from wrong module in routes/stt.py 2026-05-29 14:57:06 +02:00
tts.py Security audit, modular refactor, and container-name field 2026-05-29 12:13:07 +02:00