feat(hermes): Piper TTS (local US male, no cloud) #17

Merged
gortium merged 25 commits from feat/voice-support-v2 into master 2026-05-09 19:39:12 +00:00
3 changed files with 134 additions and 40 deletions
Showing only changes of commit 8e9a75fe5c - Show all commits

View File

@@ -52,11 +52,7 @@ url = 'https://huggingface.co/rhasspy/piper-voices/resolve/main/en/en_US/norman/
urllib.request.urlretrieve(url, base + '/en_US-norman-medium.onnx')
urllib.request.urlretrieve(url + '.json', base + '/en_US-norman-medium.onnx.json')
PYEOF
# ---------- Patch tts_tool.py: replace Edge TTS fallback with Piper ----------
COPY patch_tts_tool.py /tmp/patch_tts_tool.py
RUN /opt/hermes/.venv/bin/python3 /tmp/patch_tts_tool.py && rm /tmp/patch_tts_tool.py
# ---------- Runtime ----------
ENV HERMES_HOME=/opt/data
ENV PATH="/opt/data/.local/bin:${PATH}"