aboutsummaryrefslogtreecommitdiffstats
path: root/.env.example
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-10-28 12:00:03 +0100
committersalmonik <salmonik@tuta.io>2026-10-28 12:00:03 +0100
commit722883ab4a4583b799ce8bfd0cfad70b4b89daf9 (patch)
tree8b19ff073d3981ebc4e3a5428cd953463fa5c46e /.env.example
parentcontextual play should add to the last in the queue (diff)
downloadsenator-sperma-722883ab4a4583b799ce8bfd0cfad70b4b89daf9.tar.gz
senator-sperma-722883ab4a4583b799ce8bfd0cfad70b4b89daf9.zip
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.
Diffstat (limited to '')
-rw-r--r--.env.example15
1 files changed, 13 insertions, 2 deletions
diff --git a/.env.example b/.env.example
index 01e24b3..e67827d 100644
--- a/.env.example
+++ b/.env.example
@@ -3,17 +3,28 @@ TOKEN=
3 3
4# Optional - Bot Configuration 4# Optional - Bot Configuration
5STATUS_CHANNEL_ID= 5STATUS_CHANNEL_ID=
6SENATOR_DB_PATH=data/senator.db
6 7
7# Optional - Copyparty File Server (for music /search commands) 8# Optional - Copyparty File Server (for music /search commands)
9# No trailing slash; a trailing slash produces double slashes in built URLs.
8COPYPARTY_URL=http://localhost:8080 10COPYPARTY_URL=http://localhost:8080
9COPYPARTY_URL_UPLOAD=http://localhost:8080/uploads 11COPYPARTY_URL_UPLOAD=http://localhost:8080/uploads
10COPYPARTY_PASSWORD= 12COPYPARTY_PASSWORD=
11 13
12# Optional - AI functionality 14# Optional - AI functionality
13ASSISTANT_KEYWORD=jarvis # Keyword to trigger AI assistant 15ASSISTANT_KEYWORD=jarvis
16# Full chat-completions URL. For a local server running on the Docker host,
17# use the host's LAN IP (localhost inside the container is the container).
18LLM_API_URL=https://openrouter.ai/api/v1/chat/completions
19LLM_API_KEY=
20LLM_MODEL=
21# Legacy OpenRouter fallbacks (LLM_* takes priority)
14OPENROUTER_API_KEY= 22OPENROUTER_API_KEY=
15OPENROUTER_MODEL= 23OPENROUTER_MODEL=
16 24
17# Optional - Local TTS 25# Optional - Local TTS
18TTS_MODEL_PATH=/path/to/models # or a full path to pl_PL-bass-high.onnx 26# Directory containing <voice>.onnx, or a full path to the .onnx file.
27TTS_MODEL_PATH=/path/to/piper
19TTS_VOICE=pl_PL-bass-high 28TTS_VOICE=pl_PL-bass-high
29# Parent directory of espeak-ng-data. Docker overrides this to /usr/share.
30PIPER_ESPEAKNG_DATA_DIRECTORY=/path/to/piper