summaryrefslogtreecommitdiff
path: root/bot.go
diff options
context:
space:
mode:
Diffstat (limited to 'bot.go')
-rw-r--r--bot.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/bot.go b/bot.go
index 1e405c8..4d6da58 100644
--- a/bot.go
+++ b/bot.go
@@ -664,11 +664,15 @@ out:
if scrollToEndEnabled {
tv.ScrollToEnd()
}
- // Send chunk to audio stream handler
if cfg.TTS_ENABLED {
+ // Send chunk to audio stream handler
TTSTextChan <- chunk
}
}
+ if cfg.TTS_ENABLED {
+ // msg is done; flush it down
+ TTSFlushChan <- true
+ }
break out
}
}