From f8e95c0b85288a10f435e0edabf43defa0c303ac Mon Sep 17 00:00:00 2001 From: yum Date: Sat, 17 May 2025 23:41:20 -0700 Subject: Add STT code --- shared_thread_data.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 shared_thread_data.py (limited to 'shared_thread_data.py') diff --git a/shared_thread_data.py b/shared_thread_data.py new file mode 100644 index 0000000..ba0a419 --- /dev/null +++ b/shared_thread_data.py @@ -0,0 +1,9 @@ +import threading + +class SharedThreadData: + def __init__(self, cfg): + self.word = "" + self.word_lock = threading.Lock() + self.exit_event = threading.Event() + self.cfg = cfg + -- cgit v1.2.3