mirror of
https://github.com/EyeTrackVR/EyeTrackVR.git
synced 2025-11-04 14:39:42 +08:00
Remove dead code
This commit is contained in:
parent
f3ab82b12e
commit
e898bcb151
@ -1 +0,0 @@
|
||||
{"version": 1, "right_eye": {"threshold": 60, "rotation_angle": 334, "roi_window_x": 134, "roi_window_y": 104, "roi_window_w": 132, "roi_window_h": 77, "focal_length": 30, "capture_source": "http://192.168.0.238/", "vrc_eye_position_scalar": 3000, "show_color_image": false, "gui_flip_x_axis": false}, "left_eye": {"threshold": 82, "rotation_angle": 37, "roi_window_x": 146, "roi_window_y": 108, "roi_window_w": 115, "roi_window_h": 110, "focal_length": 30, "capture_source": "http://192.168.0.62", "vrc_eye_position_scalar": 3000, "show_color_image": false, "gui_flip_x_axis": false}, "settings": {"threshold": 0, "rotation_angle": 50, "roi_window_x": 0, "roi_window_y": 0, "roi_window_w": 0, "roi_window_h": 0, "focal_length": 30, "capture_source": null, "vrc_eye_position_scalar": 3000, "show_color_image": false, "gui_flip_x_axis": false}, "eye_display_id": 0}
|
||||
@ -1,26 +0,0 @@
|
||||
import pyttsx3
|
||||
import queue
|
||||
import threading
|
||||
|
||||
|
||||
class SpeechEngine:
|
||||
def __init__(self, queue: "queue.Queue[str | None]"):
|
||||
self.engine = pyttsx3.init()
|
||||
self.queue = queue
|
||||
|
||||
def say(self, item):
|
||||
self.engine.say(item)
|
||||
|
||||
def force_stop(self):
|
||||
self.engine.stop()
|
||||
|
||||
def run(self):
|
||||
while True:
|
||||
print("Waiting for speech item")
|
||||
item = self.queue.get()
|
||||
if item is None:
|
||||
print("Stopping speech engine")
|
||||
self.engine.stop()
|
||||
return
|
||||
self.engine.say(item)
|
||||
self.engine.runAndWait()
|
||||
Loading…
Reference in New Issue
Block a user