Skip to content

Commit

Permalink
Drop message handling from the voice module
Browse files Browse the repository at this point in the history
  • Loading branch information
M4rtinK committed Jan 2, 2022
1 parent 7a09ccd commit 4f4498e
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions modules/mod_voice.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,13 @@ def getDefaultString(self, type):
else:
return ""

def handleMessage(self, message, messageType, args):
if messageType == "ms" and message == "resetStringToDefault" and "args":
self.resetStringToDefault(args)
elif message == "voiceTest":
if self.get('soundEnabled', True):
self.notify("Voice output test in progress", 3000)
self.say("test. test. Can you hear me now ? Good.", "en")
else:
self.notify("Sound output disabled, can't test", 2000)
def voice_test(self):
#TODO UI support
if self.get('soundEnabled', True):
self.notify("Voice output test in progress", 3000)
self.say("test. test. Can you hear me now ? Good.", "en")
else:
self.notify("Sound output disabled, can't test", 2000)

def espeakSay(self, plaintextMessage, distanceMeters, forceLanguageCode=False):
"""say routing messages through espeak"""
Expand Down

0 comments on commit 4f4498e

Please sign in to comment.