feat: switch to Norman voice (US male, medium)

This commit is contained in:
Thierry Pouplier
2026-05-09 14:20:46 +00:00
parent 0a9507de65
commit b750d26d80

View File

@@ -43,14 +43,14 @@ COPY --chown=hermes:hermes . .
RUN uv venv && \
uv pip install --no-cache-dir piper-tts sounddevice numpy faster-whisper
# ---------- Télécharger la voix Piper Ryan ----------
# ---------- Télécharger la voix Piper Norman ----------
RUN mkdir -p /opt/hermes/.venv/share/piper/voices && \
/opt/hermes/.venv/bin/python3 /dev/stdin << 'PYEOF' && rm -f /tmp/dl_voice.py
import urllib.request
base = '/opt/hermes/.venv/share/piper/voices'
url = 'https://huggingface.co/rhasspy/piper-voices/resolve/main/en/en_US/ryan/high/en_US-ryan-high.onnx'
urllib.request.urlretrieve(url, base + '/en_US-ryan-high.onnx')
urllib.request.urlretrieve(url + '.json', base + '/en_US-ryan-high.onnx.json')
url = 'https://huggingface.co/rhasspy/piper-voices/resolve/main/en/en_US/norman/medium/en_US-norman-medium.onnx'
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 ----------