Commit ·
3f09bdf
1
Parent(s): 841b7c4
add pyttsx3 using espeak
Browse files- operators/idefics2_op.py +1 -7
- requirements.txt +2 -1
operators/idefics2_op.py
CHANGED
|
@@ -1,25 +1,19 @@
|
|
| 1 |
from dora import DoraStatus
|
| 2 |
-
import os
|
| 3 |
import pyarrow as pa
|
| 4 |
|
| 5 |
|
| 6 |
import cv2
|
| 7 |
|
| 8 |
from idefics2_utils import ask_vlm
|
|
|
|
| 9 |
|
| 10 |
|
| 11 |
-
from RealtimeTTS import TextToAudioStream, SystemEngine
|
| 12 |
-
|
| 13 |
-
engine = SystemEngine()
|
| 14 |
-
stream = TextToAudioStream(engine)
|
| 15 |
-
|
| 16 |
CAMERA_WIDTH = 960
|
| 17 |
CAMERA_HEIGHT = 540
|
| 18 |
|
| 19 |
|
| 20 |
FONT = cv2.FONT_HERSHEY_SIMPLEX
|
| 21 |
|
| 22 |
-
import pyttsx3
|
| 23 |
|
| 24 |
engine = pyttsx3.init("espeak")
|
| 25 |
voices = engine.getProperty("voices")
|
|
|
|
| 1 |
from dora import DoraStatus
|
|
|
|
| 2 |
import pyarrow as pa
|
| 3 |
|
| 4 |
|
| 5 |
import cv2
|
| 6 |
|
| 7 |
from idefics2_utils import ask_vlm
|
| 8 |
+
import pyttsx3
|
| 9 |
|
| 10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
CAMERA_WIDTH = 960
|
| 12 |
CAMERA_HEIGHT = 540
|
| 13 |
|
| 14 |
|
| 15 |
FONT = cv2.FONT_HERSHEY_SIMPLEX
|
| 16 |
|
|
|
|
| 17 |
|
| 18 |
engine = pyttsx3.init("espeak")
|
| 19 |
voices = engine.getProperty("voices")
|
requirements.txt
CHANGED
|
@@ -8,4 +8,5 @@ openai-whisper
|
|
| 8 |
pynput
|
| 9 |
opencv-python
|
| 10 |
Pillow
|
| 11 |
-
transformers
|
|
|
|
|
|
| 8 |
pynput
|
| 9 |
opencv-python
|
| 10 |
Pillow
|
| 11 |
+
transformers
|
| 12 |
+
pyttsx3
|