diff options
| author | salmonik <salmonik@tuta.io> | 2026-08-18 23:18:37 +0200 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-08-18 23:18:37 +0200 |
| commit | b252c39517b9fce181d1a0fe4761404c7d981397 (patch) | |
| tree | 564cf01aed601f1974e0de8801d4452215ec05f5 /.env.example | |
| parent | fir auto completion and send file in the response body upon grajcuj file (diff) | |
| download | senator-sperma-b252c39517b9fce181d1a0fe4761404c7d981397.tar.gz senator-sperma-b252c39517b9fce181d1a0fe4761404c7d981397.zip | |
feat: local TTS via piper subprocess with Google fallback
- New src/tts.rs: centralize TTS in synthesize(config, http_client, text)
Piper subprocess primary, Google Translate fallback on error/missing
- TTS_MODEL_PATH/TTS_VOICE env config (defaults to pl_PL-bass-high)
- Fix Unknown interaction errors: spawn play_tts_in_channel in background
so voice-state TTS no longer blocks the shard event loop (3s Discord limit)
- Best-effort confirmation replies in /tts to prevent error cascade
- Custom on_error handler: graceful interaction-expired error handling
- Comprehensive tracing logging (engine, model, duration, stderr)
Diffstat (limited to '.env.example')
| -rw-r--r-- | .env.example | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/.env.example b/.env.example index fe76c05..01e24b3 100644 --- a/.env.example +++ b/.env.example | |||
| @@ -3,13 +3,17 @@ TOKEN= | |||
| 3 | 3 | ||
| 4 | # Optional - Bot Configuration | 4 | # Optional - Bot Configuration |
| 5 | STATUS_CHANNEL_ID= | 5 | STATUS_CHANNEL_ID= |
| 6 | ASSISTANT_KEYWORD=jarvis # Keyword to trigger AI assistant | ||
| 7 | 6 | ||
| 8 | # Optional - Copyparty File Server (for music /search commands) | 7 | # Optional - Copyparty File Server (for music /search commands) |
| 9 | COPYPARTY_URL=http://localhost:8080 | 8 | COPYPARTY_URL=http://localhost:8080 |
| 10 | COPYPARTY_URL_UPLOAD=http://localhost:8080/uploads | 9 | COPYPARTY_URL_UPLOAD=http://localhost:8080/uploads |
| 11 | COPYPARTY_PASSWORD= | 10 | COPYPARTY_PASSWORD= |
| 12 | 11 | ||
| 13 | # Optional - AI commands | 12 | # Optional - AI functionality |
| 13 | ASSISTANT_KEYWORD=jarvis # Keyword to trigger AI assistant | ||
| 14 | OPENROUTER_API_KEY= | 14 | OPENROUTER_API_KEY= |
| 15 | OPENROUTER_MODEL= | 15 | OPENROUTER_MODEL= |
| 16 | |||
| 17 | # Optional - Local TTS | ||
| 18 | TTS_MODEL_PATH=/path/to/models # or a full path to pl_PL-bass-high.onnx | ||
| 19 | TTS_VOICE=pl_PL-bass-high | ||
