a2e9bac081588048ae0fb01abe7df2ffe9e64bcf
## 3 fixes ### 1. TTS logs not working in dashboard The stream route (/api/services/[role]/stream) had its own VALID_ROLES list that was missing 'tts'. Added 'tts' to the list. ### 2. Dashboard doesn't show voices /api/tts/voices only queried the TTS API (http://tts:8000/v1/audio/voices). If TTS was not running or the API didn't return custom voices, the list was empty. Rewrote /api/tts/voices to use 3 sources: 1. TTS API (if running) 2. voice_to_speaker.yaml (parse voice names from config file) 3. Scan gpu/tts/voices/ directory for .onnx and .wav files - .onnx files: ru_RU-irina-medium.onnx → 'irina' - .wav files: myvoice.wav → 'myvoice' 4. Always include defaults (alloy, echo, fable, onyx, nova, shimmer) ### 3. Voices not loading on page open refreshVoices() was only called when ttsRunning was true. Changed to always fetch on mount — the API now works even when TTS is stopped because it reads from config files and directory. ## Version → 0.9.2 ## After merge ```sh git pull && sh build.sh docker compose up -d --force-recreate dashboard ``` TTS tab should now show irina, denis, dmitri, ruslan in the voice dropdown (even if TTS is stopped). TTS logs should work in Logs tab.
Description
No description provided
Languages
TypeScript
82.5%
Python
8.6%
Shell
6.4%
Dockerfile
0.9%
CSS
0.9%
Other
0.7%