feat(hermes): Piper TTS (local US male, no cloud) #17
@@ -53,6 +53,14 @@ urllib.request.urlretrieve(url, base + '/en_US-ryan-high.onnx')
|
|||||||
urllib.request.urlretrieve(url + '.json', base + '/en_US-ryan-high.onnx.json')
|
urllib.request.urlretrieve(url + '.json', base + '/en_US-ryan-high.onnx.json')
|
||||||
PYEOF
|
PYEOF
|
||||||
|
|
||||||
|
# ---------- Patch tts_tool.py: replace Edge TTS fallback with Piper ----------
|
||||||
|
# Edge TTS calls out to Microsoft servers — we never want that.
|
||||||
|
# Piper runs locally on CPU, no cloud, no data leaving the machine.
|
||||||
|
# If the patch script can't find the Edge fallback text to replace,
|
||||||
|
# it returns a non-zero exit code and the build fails.
|
||||||
|
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
|
||||||
|
|
||||||
# ---------- Patch atomic writes to preserve file permissions ----------
|
# ---------- Patch atomic writes to preserve file permissions ----------
|
||||||
# Fixes https://github.com/NousResearch/hermes-agent/issues/14181
|
# Fixes https://github.com/NousResearch/hermes-agent/issues/14181
|
||||||
# tempfile.mkstemp() creates files as 0600; os.replace() preserves that mode,
|
# tempfile.mkstemp() creates files as 0600; os.replace() preserves that mode,
|
||||||
|
|||||||
Reference in New Issue
Block a user