Add local MeloTTS support

This commit is contained in:
2026-05-03 01:56:09 +09:00
parent 3360015179
commit ad357a6ede
13 changed files with 396 additions and 3 deletions

18
docker/melotts/Dockerfile Normal file
View File

@@ -0,0 +1,18 @@
FROM python:3.9-slim
ENV PYTHONUNBUFFERED=1
WORKDIR /opt/realtime-voice-bot
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
git \
libsndfile1 \
&& rm -rf /var/lib/apt/lists/*
RUN pip install --no-cache-dir git+https://github.com/myshell-ai/MeloTTS.git@v0.1.2
RUN python -m unidic download
COPY melo_tts_cli.py /opt/realtime-voice-bot/melo_tts_cli.py
ENTRYPOINT ["python", "/opt/realtime-voice-bot/melo_tts_cli.py"]