Notification sound added. Docs updated.
This commit is contained in:
1 parent
4c9a267897
commit
81cc630319
29 files changed
+845
-57
No files matched your search
@@ -54,6 +54,14 @@ type echoSpeaker struct {
|
||||
}
|
||||
|
||||
func (s *echoSpeaker) Say(text string) {
|
||||
s.Speaker.Say(s.prepare_text(text))
|
||||
}
|
||||
|
||||
func (s *echoSpeaker) Say_after(text string, before func(context.Context)) {
|
||||
s.Speaker.Say_after(s.prepare_text(text), before)
|
||||
}
|
||||
|
||||
func (s *echoSpeaker) prepare_text(text string) string {
|
||||
if text != "" {
|
||||
s.last = text
|
||||
}
|
||||
@@ -65,7 +73,7 @@ func (s *echoSpeaker) Say(text string) {
|
||||
}
|
||||
text = s.punctuation.Process_text(text, s.punctuationLevel, options)
|
||||
}
|
||||
s.Speaker.Say(text)
|
||||
return text
|
||||
}
|
||||
|
||||
// Character feedback bypasses text expansion, including punctuation in names.
|
||||
|
||||
Reference in new issue
Block a user