diff --git a/src/tools/install.py b/src/tools/install.py index f9064f6..9398ff1 100644 --- a/src/tools/install.py +++ b/src/tools/install.py @@ -16,7 +16,7 @@ def instFiles(): '--workpath', builddir, '--onefile', '--windowed', - '--name', 'spyglass-1.6.6-RC04', + '--name', 'spyglass-1.6.6', '../spyglass.py', '--icon=../icon.ico', '--add-data=../vi/universe/*.json;./vi/universe', diff --git a/src/vi/soundmanager.py b/src/vi/soundmanager.py index e947757..9fbd5e0 100644 --- a/src/vi/soundmanager.py +++ b/src/vi/soundmanager.py @@ -52,7 +52,7 @@ def __init__(self, *args, **kwargs): self.start() def run(self): - tts_engine = pyttsx3.init("espeak-ng") + tts_engine = pyttsx3.init("sapi5" if sys.platform.startswith("win32") else "espeak-ng") tts_engine.setProperty('volume', self.soundVolume) tts_engine.say(self._args) tts_engine.runAndWait() @@ -95,8 +95,8 @@ class SoundManager(metaclass=Singleton): def __init__(self): try: - if PYTTSX3_ENABLED and not sys.platform.startswith("linux"): - self.speach_engine = pyttsx3.init() + if PYTTSX3_ENABLED and sys.platform.startswith("win32"): + self.speach_engine = pyttsx3.init("sapi5") for voice in self.speach_engine.getProperty('voices'): print(voice) if "_EN-US" in voice.id: diff --git a/src/vi/version.py b/src/vi/version.py index bd45e53..d1aa655 100644 --- a/src/vi/version.py +++ b/src/vi/version.py @@ -1,2 +1,2 @@ -VERSION = "1.6.6-RC04" -SNAPSHOT = True # set to false when releasing +VERSION = "1.6.6" +SNAPSHOT = False # set to false when releasing