Another try for lag.

This commit is contained in:
Storm Dragon
2026-07-26 21:42:53 -04:00
parent 17b6e6f909
commit 186512f79a
2 changed files with 23 additions and 1 deletions
@@ -18,6 +18,7 @@ class driver(dectalkDriver.driver):
immediate_endpoint = 0x04
packet_size = 64
write_timeout = 1000
buffer_timeout_command = b"[:timeout 1]"
def __init__(self):
super().__init__()
@@ -90,6 +91,11 @@ class driver(dectalkDriver.driver):
raise RuntimeError(f"DECtalk USB open failed: {error}") from error
self.usb_device = usb_device
self._write_endpoint(
self.speech_endpoint,
self.buffer_timeout_command,
"buffer timeout",
)
self._is_initialized = True
self._stop_worker = False
self.worker_thread = threading.Thread(