feat: 자동 언어 감지 4개 언어로 확장 (한/영/일/중)

- split_by_language: 가나/한자 CJK 처리(가나 있으면 JP, 없으면 ZH)
- JP/ZH 언어·화자 추가, AUTO 구간별 화자 매핑
- warmup에 JP/ZH 모델 사전 다운로드 추가
This commit is contained in:
claude
2026-08-24 12:45:31 +09:00
parent 7728d28d57
commit 9fe1a5479d
3 changed files with 61 additions and 33 deletions

View File

@@ -41,7 +41,7 @@ RUN pip uninstall -y triton 2>/dev/null || true \
&& find /usr/local/lib/python3.11/site-packages -name "__pycache__" -type d -prune -exec rm -rf {} + 2>/dev/null || true
# 슬림화 후에도 한/영 모델이 정상 로드되는지 검증
RUN python -c "from melo.api import TTS; TTS('KR', device='cpu'); TTS('EN', device='cpu'); print('slim import ok')"
RUN python -c "from melo.api import TTS; [TTS(l, device='cpu') for l in ('KR','EN','JP','ZH')]; print('slim import ok')"
# ---------- 런타임 단계 ----------
FROM python:3.11-slim AS runtime