Voice MCP Server: STT (Moonshine Tiny) + TTS (KittenTTS Nano)

This commit is contained in:
Hermes
2026-06-07 13:10:51 +02:00
commit a95500ef67
2 changed files with 163 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
FROM python:3.12-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
libsndfile1 \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Install CPU-only torch first to prevent CUDA download
RUN pip install --no-cache-dir \
--extra-index-url https://download.pytorch.org/whl/cpu \
torch==2.6.0 \
&& pip install --no-cache-dir mcp httpx
# Install Moonshine (STT)
RUN pip install --no-cache-dir moonshine-voice
# Install KittenTTS (TTS) — CPU-only
RUN pip install --no-cache-dir \
https://github.com/KittenML/KittenTTS/releases/download/0.8.1/kittentts-0.8.1-py3-none-any.whl
COPY voice_server.py .
EXPOSE 8000
CMD ["python", "voice_server.py"]