Refactor: cleanup stt mess, config use

This commit is contained in:
Grail Finder
2025-05-18 14:32:54 +03:00
parent 2b2e45ff00
commit 441225ede8
5 changed files with 43 additions and 34 deletions

View File

@@ -42,6 +42,9 @@ type Config struct {
// TTS
TTS_URL string `toml:"TTS_URL"`
TTS_ENABLED bool `toml:"TTS_ENABLED"`
// STT
STT_URL string `toml:"STT_URL"`
STT_ENABLED bool `toml:"STT_ENABLED"`
}
func LoadConfigOrDefault(fn string) *Config {