Skip to content

Commit 63e5802

Browse files
ultrasound1372davidacm
authored andcommitted
Forcefully coerce value of prosody parameters to int, earcons add-on apparently sends the wrong type sometimes and this causes the entire thread to hang because of a ctypes exception.
1 parent 940a600 commit 63e5802

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addon/synthDrivers/_ibmeci.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ def setVParam(pr, vl):
472472
param_event.clear()
473473

474474
def setProsodyParam(pr, vl):
475-
dll.eciSetVoiceParam(handle, 0, pr, vl)
475+
dll.eciSetVoiceParam(handle, 0, pr, int(vl))
476476

477477
def setVariant(v):
478478
user32.PostThreadMessageA(eciThreadId, WM_COPYVOICE, v, 0)

0 commit comments

Comments
 (0)