From 722883ab4a4583b799ce8bfd0cfad70b4b89daf9 Mon Sep 17 00:00:00 2001 From: salmonik Date: Wed, 28 Oct 2026 12:00:03 +0100 Subject: docker: bake espeak-ng data for Piper TTS espeak-rs-sys installs espeak-ng-data into the build tree and compiles that path in as the default, so the runtime image failed with 'phontab: No such file or directory'. Copy the data from the builder to /usr/share and point PIPER_ESPEAKNG_DATA_DIRECTORY there; compose overrides the host path from .env. Also trim trailing slashes from Copyparty base URLs, document that env_file changes need --force-recreate, and clean inline comments in .env.example. --- .env.example | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to '.env.example') diff --git a/.env.example b/.env.example index 01e24b3..e67827d 100644 --- a/.env.example +++ b/.env.example @@ -3,17 +3,28 @@ TOKEN= # Optional - Bot Configuration STATUS_CHANNEL_ID= +SENATOR_DB_PATH=data/senator.db # Optional - Copyparty File Server (for music /search commands) +# No trailing slash; a trailing slash produces double slashes in built URLs. COPYPARTY_URL=http://localhost:8080 COPYPARTY_URL_UPLOAD=http://localhost:8080/uploads COPYPARTY_PASSWORD= # Optional - AI functionality -ASSISTANT_KEYWORD=jarvis # Keyword to trigger AI assistant +ASSISTANT_KEYWORD=jarvis +# Full chat-completions URL. For a local server running on the Docker host, +# use the host's LAN IP (localhost inside the container is the container). +LLM_API_URL=https://openrouter.ai/api/v1/chat/completions +LLM_API_KEY= +LLM_MODEL= +# Legacy OpenRouter fallbacks (LLM_* takes priority) OPENROUTER_API_KEY= OPENROUTER_MODEL= # Optional - Local TTS -TTS_MODEL_PATH=/path/to/models # or a full path to pl_PL-bass-high.onnx +# Directory containing .onnx, or a full path to the .onnx file. +TTS_MODEL_PATH=/path/to/piper TTS_VOICE=pl_PL-bass-high +# Parent directory of espeak-ng-data. Docker overrides this to /usr/share. +PIPER_ESPEAKNG_DATA_DIRECTORY=/path/to/piper -- cgit v1.2.3