Check if TTS is disabled before adding messages
This commit is contained in:
parent
5e005478f1
commit
3881803c8d
1 changed files with 5 additions and 3 deletions
|
|
@ -53,10 +53,12 @@ func main() {
|
|||
rules, eventChannel, cancel, wg := loadRules(config, pDevices, vDevicesByName, modes)
|
||||
|
||||
// initialize TTS phrases for modes
|
||||
if !ttsOps.Disabled {
|
||||
for _, m := range modes {
|
||||
tts.AddMessage(m)
|
||||
logger.LogDebugf("Added TTS message '%s'", m)
|
||||
}
|
||||
}
|
||||
|
||||
fmt.Println("Joyful Running! Press Ctrl+C to quit. Press Enter to reload rules.")
|
||||
if len(modes) > 0 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue