feat: CosyVoice 한국어 엔진 통합 (Apache-2.0, GPU)

- vendor/CosyVoice: 패치된 CosyVoice 코드 + Matcha-TTS 벤더링
- cosyvoice_worker: 전용 venv에서 상주하는 합성 워커(FastAPI, 모델 1회 로드)
- app/engines/cosyvoice_engine: HTTP 프록시 엔진(속도/피치)
- Dockerfile: 전용 venv(torch cu128) + 모델 베이킹 + 빌드 워밍업
- entrypoint.sh: 워커(8001) + 메인앱(8788) 동시 기동
This commit is contained in:
claude
2026-08-23 23:16:24 +09:00
parent b92d2be2af
commit 9c1009d16d
93 changed files with 74398 additions and 6 deletions

View File

@@ -31,15 +31,15 @@ def _build() -> None:
except Exception as exc: # pragma: no cover
print(f"[registry] MeloTTS 로드 실패: {exc}")
# Coqui GlowTTS-KSS (전용 venv + 체크포인트가 있을 때만)
# CosyVoice 한국어 (전용 워커 URL 이 설정된 경우에만)
try:
from .coqui_engine import CoquiKssEngine
from .cosyvoice_engine import CosyVoiceEngine
if CoquiKssEngine.available():
e = CoquiKssEngine()
if CosyVoiceEngine.available():
e = CosyVoiceEngine()
_ENGINES[e.id] = e
except Exception as exc: # pragma: no cover
print(f"[registry] Coqui 엔진 스킵: {exc}")
print(f"[registry] CosyVoice 엔진 스킵: {exc}")
_INITED = True