From 4f0bc98ff89a003861acc3a2109b8f353a23b793 Mon Sep 17 00:00:00 2001 From: chrys Date: Tue, 26 Feb 2019 14:57:48 +0100 Subject: [PATCH] Update outputManager.py --- src/fenrirscreenreader/core/outputManager.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/fenrirscreenreader/core/outputManager.py b/src/fenrirscreenreader/core/outputManager.py index e7450fab..034f195d 100644 --- a/src/fenrirscreenreader/core/outputManager.py +++ b/src/fenrirscreenreader/core/outputManager.py @@ -135,7 +135,12 @@ class outputManager(): else: displayText = self.getBrailleTextWithOffset(self.env['output']['messageText'], self.env['output']['messageOffset']) self.env['runtime']['brailleDriver'].writeText('flush'+displayText) - + def resetSpeechDriver(self): + try: + self.env['runtime']['speechDriver'].reset() + except Exception as e: + self.env['runtime']['debug'].writeDebugOut("reset " + str(e),debug.debugLevel.ERROR) + def getBrailleCursor(self): if self.env['runtime']['settingsManager'].getSetting('braille', 'cursorFollowMode').upper() == 'REVIEW': return self.env['runtime']['cursorManager'].getReviewOrTextCursor()