diff --git a/ai/Dockerfile b/ai/Dockerfile index 36ca11a..c2a0b08 100644 --- a/ai/Dockerfile +++ b/ai/Dockerfile @@ -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 Norman ---------- +# ---------- Télécharger la voix Piper Ryan (high quality) ---------- RUN mkdir -p /opt/hermes/.venv/share/piper/voices && \ - /opt/hermes/.venv/bin/python3 /dev/stdin << 'PYEOF' && rm -f /tmp/dl_voice.py + /opt/hermes/.venv/bin/python3 /dev/stdin << 'PYEOF' import urllib.request base = '/opt/hermes/.venv/share/piper/voices' -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') +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') PYEOF # ---------- Runtime ----------