Skip to content

Commit f2cf076

Browse files
committed
Fixed a bug where the synth would sometimes insist on switching to a language such as British English or Latin American Spanish when it is reloaded
1 parent fe98ccb commit f2cf076

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

addon/synthDrivers/_ibmeci.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,9 @@ def terminate():
363363
callbackQueue= callbackThread= dll= eciQueue=eciThread= handle= idleTimer= onDoneSpeaking= onIndexReached= player = None
364364

365365
def setVoice(vl):
366-
user32.PostThreadMessageA(eciThreadId, WM_PARAM, vl, ECIParam.eciLanguageDialect)
366+
user32.PostThreadMessageA(eciThreadId, WM_PARAM, vl, ECIParam.eciLanguageDialect)
367+
param_event.wait()
368+
param_event.clear()
367369

368370
def getVParam(pr):
369371
return vparams[pr]

0 commit comments

Comments
 (0)