1 2 3 4 5 6 7 8 9 10 11 12 13 14
import threading class SharedThreadData: def __init__(self, cfg): self.transcript = "" self.preview = "" self.stream = None self.collector = None self.word_lock = threading.Lock() self.exit_event = threading.Event() self.cfg = cfg