Xiaozhi WebSocket endpoint with handshake/auth, mock STT/TTS/Hermes backends, Thai chunker, barge-in queue, latency logger, GPU planner, voice-profile guard (reasoning=none, session_search only). CON-002: no GPU/audio libs loaded at import. MUST-NOT-001: all model names/tokens from config.
6 lines
217 B
Python
6 lines
217 B
Python
"""Audio primitives: PCM ring buffer, VAD end-of-speech, Opus (lazy).
|
|
|
|
The bridge never assumes Opus is installed (CON-002): ``opus.py`` loads the
|
|
codec only when a real transport is selected. Tests feed raw PCM.
|
|
"""
|