Files
gianni-dalerta 409173a510 Add comprehensive test suite
Unit tests (13):
- WhisperSTT: init, transcribe silence, transcribe noise
- ChatterboxTTS: init, synthesize
- AIBackend: init, system prompt, clear history, chat (live API)
- VAD: init, is_speech
- Integration: STT→TTS round trip

Server tests (5):
- HTTP index page loads
- WebSocket connect, ping/pong
- Start/stop listening cycle
- Audio flow with transcript

All tests pass with faster-whisper on CPU.
Python 3.12 required (faster-whisper not yet on 3.14).
2026-01-30 13:35:47 -05:00

2 lines
23 B
Python