Skip to content

Commit

Permalink
synthDriverHandler.setSynth: If on Windows 10 or higher, use OneCore …
Browse files Browse the repository at this point in the history
…speech by default, falling back to eSpeak if no voices are available. Previous Operating systems still use eSpeak by default. (#8176)
  • Loading branch information
michaelDCurran committed Apr 30, 2018
1 parent edfa766 commit 84d3e27
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/synthDriverHandler.py
Expand Up @@ -10,6 +10,7 @@
import pkgutil
import config
import baseObject
import winVersion
import globalVars
from logHandler import log
from synthSettingsRing import SynthSettingsRing
Expand Down Expand Up @@ -91,7 +92,8 @@ def setSynth(name,isFallback=False):
_curSynth=None
return True
if name=='auto':
name='espeak'
# Default to OneCore on Windows 10 and above, and eSpeak on previous Operating Systems
name='oneCore' if winVersion.winVersion.major>=10 else 'espeak'
if _curSynth:
_curSynth.cancel()
_curSynth.terminate()
Expand Down

0 comments on commit 84d3e27

Please sign in to comment.