Update outputManager.py

This commit is contained in:
chrys87 2018-03-12 11:04:05 +01:00 committed by GitHub
parent d797c16cb4
commit 50389d3f19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -93,9 +93,9 @@ class outputManager():
try: try:
cleanText = text.replace('\n',' , ') cleanText = text.replace('\n',' , ')
cleanText = re.sub(' +$',' ', cleanText)
cleanText = self.env['runtime']['headLineManager'].replaceHeadLines(cleanText) cleanText = self.env['runtime']['headLineManager'].replaceHeadLines(cleanText)
cleanText = self.env['runtime']['punctuationManager'].proceedPunctuation(cleanText, ignorePunctuation) cleanText = self.env['runtime']['punctuationManager'].proceedPunctuation(cleanText, ignorePunctuation)
cleanText = re.sub(' +$',' ', cleanText)
self.env['runtime']['speechDriver'].speak(cleanText) self.env['runtime']['speechDriver'].speak(cleanText)
self.env['runtime']['debug'].writeDebugOut("Speak: "+ cleanText,debug.debugLevel.INFO) self.env['runtime']['debug'].writeDebugOut("Speak: "+ cleanText,debug.debugLevel.INFO)
except Exception as e: except Exception as e: