Another try for lag.
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user