Files
javis_bot/bridge/requirements-bridge.txt
javis-bot f64d76e737
Some checks failed
Release / semantic-release (push) Successful in 31s
Release / build-windows (push) Has been cancelled
Release / build-macos (arm64, macos-latest) (push) Has been cancelled
Release / build-macos (x64, macos-15-intel) (push) Has been cancelled
Release / build-linux (push) Has been cancelled
Release / release-main (push) Has been cancelled
Release / release-develop (push) Has been cancelled
tests / Unit tests (Linux, Python 3.11) (push) Has been cancelled
feat: use Edge TTS (Korean Hyunsu voice @ +45%) as the default voice
The user chose Microsoft Edge TTS, voice ko-KR-HyunsuMultilingualNeural at rate
+45% (~1.45x), as the natural Korean voice. Wire it into the bridge and make it
the default engine.

- bridge/server.py: _edge_synthesize() calls edge-tts and transcodes the MP3 to
  PCM16 mono WAV with the system ffmpeg (temp file for a correct header);
  TTS_ENGINE default -> edge; EDGE_TTS_VOICE / EDGE_TTS_RATE env-driven
- requirements-bridge.txt: add edge-tts (lightweight; httpx)
- compose/.env.example/README: TTS_ENGINE=edge + EDGE_TTS_* knobs; note the
  online/privacy trade-off (reply text is sent to Microsoft, needs internet)
- drop the now-unused MeloTTS build layer (Dockerfile) and melo-worker
  (supervisord) — edge synthesises in-process, no model/worker baked, slimmer
  and faster image; settings UI engine list -> edge/piper, restart only bridge

Verified on host: edge-tts -> ffmpeg yields a valid 16-bit mono 24kHz WAV;
envsubst renders tts_engine=edge; docker build --check + 26 tests pass.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-23 03:44:15 +09:00

39 lines
1.2 KiB
Plaintext

# Slim dependency set for the containerized brain bridge.
# Excludes the upstream desktop GUI / dictation / packaging / alternate-TTS
# stack (PyQt6, pyinstaller, sounddevice, webrtcvad, pynput, pygame,
# chatterbox-tts/torch, mlx) which are unused in the Discord+VNC deployment.
# --- Brain runtime (imported when the reply engine loads) ---
python-dotenv==1.0.1
# >=1.1.0 pulls a ctranslate2 with Blackwell (sm_120) CUDA kernels.
faster-whisper>=1.1.0
mcp==1.13.1
numpy<2.0.0
rapidfuzz==3.6.1
requests==2.32.3
# --- CUDA libraries for GPU-accelerated Whisper (RTX 5050 / sm_120) ---
# ctranslate2 dlopens these at transcribe time; LD_LIBRARY_PATH is set in the
# Dockerfile to point at them. Verified working on Blackwell sm_120.
nvidia-cublas-cu12
nvidia-cudnn-cu12
# --- Bridge HTTP service ---
flask>=3.0.0
# --- Text-to-speech ---
# Edge TTS: the primary Korean voice (online MS neural). Lightweight (httpx);
# emits MP3, transcoded to PCM16 by the system ffmpeg in the bridge.
edge-tts>=6.1.0
# Piper: offline English fallback.
piper-tts>=1.3.0
# --- Built-in tools (lazily imported; needed for full functionality) ---
beautifulsoup4>=4.12.0
lxml>=4.9.0
html2text>=2020.1.16
geoip2==4.8.0
Pillow==10.4.0
pytesseract==0.3.13
faiss-cpu>=1.7.4