|
@@ -277,6 +277,11 @@ class MainWindow(QMainWindow):
|
|
|
self._voice_queue.put(msg)
|
|
self._voice_queue.put(msg)
|
|
|
|
|
|
|
|
def _voice_worker(self):
|
|
def _voice_worker(self):
|
|
|
|
|
+ try:
|
|
|
|
|
+ import pythoncom
|
|
|
|
|
+ pythoncom.CoInitialize()
|
|
|
|
|
+ except ImportError:
|
|
|
|
|
+ pass
|
|
|
while True:
|
|
while True:
|
|
|
msg = self._voice_queue.get()
|
|
msg = self._voice_queue.get()
|
|
|
if msg is None:
|
|
if msg is None:
|