From 67c99c0dfe5ff2425f4e7812a2f16b46eb0a6a39 Mon Sep 17 00:00:00 2001 From: chrys Date: Fri, 22 Feb 2019 16:35:16 +0100 Subject: [PATCH] Update speechdDriver.py --- src/fenrirscreenreader/speechDriver/speechdDriver.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/fenrirscreenreader/speechDriver/speechdDriver.py b/src/fenrirscreenreader/speechDriver/speechdDriver.py index c3c1c73d..5be5efc2 100644 --- a/src/fenrirscreenreader/speechDriver/speechdDriver.py +++ b/src/fenrirscreenreader/speechDriver/speechdDriver.py @@ -49,15 +49,12 @@ class driver(speechDriver): self.env['runtime']['debug'].writeDebugOut('speechDriver setModule:' + str(e),debug.debugLevel.ERROR) try: - if self.language != '': - self._sd.set_language(self.language) + self._sd.set_language(self.language) except Exception as e: self.env['runtime']['debug'].writeDebugOut('speechDriver set_language:' + str(e),debug.debugLevel.ERROR) try: - if self.voice: - if self.voice != '': - self._sd.set_synthesis_voice(self.voice) + self._sd.set_synthesis_voice(self.voice) except Exception as e: self.env['runtime']['debug'].writeDebugOut('speechDriver setVoice:' + str(e),debug.debugLevel.ERROR)