feat(voice_worker): M1 multi-speaker streaming STT and sentence TTS over a local WebSocket
- One shared faster-whisper model for every speaker, batched; finals go before partials and partial batches are capped at two so a final never waits behind a ten-speaker pass. - Per-speaker 48k stereo to 16k mono conversion, streaming Silero VAD, utterance ends on VAD silence, Discord speaking_end, missing audio, or the 28 s Whisper window. - MeloTTS in its own venv through a child process; sentences stream out one chunk each, with incremental text, cancel and failure reporting. - Loopback-only server with a token from the environment; logs carry no transcript text. - Spec in src/voice_worker/voice_worker.spec.md; unit tests with fake engines and an opt-in real-GPU test that streams ten speakers at once. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
12
src/voice_worker/requirements.txt
Normal file
12
src/voice_worker/requirements.txt
Normal file
@@ -0,0 +1,12 @@
|
||||
# Voice worker venv (Python 3.12). Same STT pins the M0 kit measured on the game PC.
|
||||
faster-whisper==1.2.1
|
||||
ctranslate2==4.8.1
|
||||
nvidia-cublas-cu12==12.9.2.10
|
||||
nvidia-cudnn-cu12==9.24.0.43
|
||||
onnxruntime>=1.17
|
||||
websockets>=13
|
||||
numpy
|
||||
# jarvis.debug (debug_log) reads the jarvis config, which needs python-dotenv.
|
||||
python-dotenv==1.0.1
|
||||
# MeloTTS runs in its own Python 3.11 venv (see the "melo" entry in scripts/m0/m0lib/envs.py) and is
|
||||
# reached through melo_child.py; pass that venv's python with --melo-python.
|
||||
Reference in New Issue
Block a user