fix outputManager, pass ignorePunctuation

This commit is contained in:
chrys 2016-09-28 22:25:21 +02:00
parent e3e79d097e
commit 80dbc0f271

View File

@ -25,7 +25,7 @@ class outputManager():
if self.playSoundIcon(soundIcon, interrupt): if self.playSoundIcon(soundIcon, interrupt):
self.env['runtime']['debug'].writeDebugOut("soundIcon found" ,debug.debugLevel.INFO) self.env['runtime']['debug'].writeDebugOut("soundIcon found" ,debug.debugLevel.INFO)
return return
self.speakText(text, interrupt) self.speakText(text, interrupt, ignorePunctuation)
self.brailleText(text, interrupt) self.brailleText(text, interrupt)
def speakText(self, text, interrupt=True, ignorePunctuation=False): def speakText(self, text, interrupt=True, ignorePunctuation=False):
@ -75,6 +75,7 @@ class outputManager():
try: try:
text = self.env['runtime']['punctuationManager'].proceedPunctuation(text,ignorePunctuation) text = self.env['runtime']['punctuationManager'].proceedPunctuation(text,ignorePunctuation)
self.env['runtime']['speechDriver'].speak(text) self.env['runtime']['speechDriver'].speak(text)
except Exception as e: except Exception as e:
print(e) print(e)