From cd66a12d8f24ba68ea6c84fc0ad359180b29fc58 Mon Sep 17 00:00:00 2001 From: Colton Hill Date: Sun, 23 Feb 2025 16:51:55 -0600 Subject: [PATCH] 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. --- addon/synthDrivers/_ibmeci.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addon/synthDrivers/_ibmeci.py b/addon/synthDrivers/_ibmeci.py index f4e1ecc..5b7e2ef 100644 --- a/addon/synthDrivers/_ibmeci.py +++ b/addon/synthDrivers/_ibmeci.py @@ -472,7 +472,7 @@ def setVParam(pr, vl): param_event.clear() def setProsodyParam(pr, vl): - dll.eciSetVoiceParam(handle, 0, pr, vl) + dll.eciSetVoiceParam(handle, 0, pr, int(vl)) def setVariant(v): user32.PostThreadMessageA(eciThreadId, WM_COPYVOICE, v, 0)