feat: switch back to Ryan high quality voice
This commit is contained in:
@@ -43,14 +43,14 @@ COPY --chown=hermes:hermes . .
|
|||||||
RUN uv venv && \
|
RUN uv venv && \
|
||||||
uv pip install --no-cache-dir piper-tts sounddevice numpy faster-whisper
|
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 && \
|
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
|
import urllib.request
|
||||||
base = '/opt/hermes/.venv/share/piper/voices'
|
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'
|
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-norman-medium.onnx')
|
urllib.request.urlretrieve(url, base + '/en_US-ryan-high.onnx')
|
||||||
urllib.request.urlretrieve(url + '.json', base + '/en_US-norman-medium.onnx.json')
|
urllib.request.urlretrieve(url + '.json', base + '/en_US-ryan-high.onnx.json')
|
||||||
PYEOF
|
PYEOF
|
||||||
|
|
||||||
# ---------- Runtime ----------
|
# ---------- Runtime ----------
|
||||||
|
|||||||
Reference in New Issue
Block a user