Browse Source

removed unnecessary imports

prateekvellala 8 tháng trước cách đây
mục cha
commit
b52be1add0

+ 3 - 3
example_app/ui_openai_voice_interface.py

@@ -3,9 +3,9 @@ if __name__ == '__main__':
     from RealtimeTTS import TextToAudioStream, AzureEngine, ElevenlabsEngine, SystemEngine
     from RealtimeSTT import AudioToTextRecorder
 
-    from PyQt5.QtCore import Qt, QTimer, QRect, QEvent, pyqtSignal, QThread, QPoint, QPropertyAnimation, QVariantAnimation
-    from PyQt5.QtGui import QPalette, QColor, QPainter, QFontMetrics, QFont, QMouseEvent, QContextMenuEvent
-    from PyQt5.QtWidgets import QApplication, QLabel, QWidget, QDesktopWidget, QMenu, QAction
+    from PyQt5.QtCore import Qt, QTimer, QEvent, pyqtSignal, QThread
+    from PyQt5.QtGui import QColor, QPainter, QFontMetrics, QFont, QMouseEvent
+    from PyQt5.QtWidgets import QApplication, QWidget, QDesktopWidget, QMenu, QAction
 
     import os
     import openai

+ 1 - 1
example_webserver/client.py

@@ -1,4 +1,4 @@
-from colorama import Fore, Back, Style
+from colorama import Fore, Style
 import websockets
 import colorama
 import keyboard

+ 1 - 1
example_webserver/server.py

@@ -11,7 +11,7 @@ if __name__ == '__main__':
     print ("└─ ... ", end='', flush=True)
 
     from RealtimeSTT import AudioToTextRecorder
-    from colorama import Fore, Back, Style
+    from colorama import Fore, Style
     import websockets
     import threading
     import colorama

+ 0 - 1
tests/openwakeword_test.py

@@ -1,7 +1,6 @@
 if __name__ == '__main__':
     print("Starting...")
     from RealtimeSTT import AudioToTextRecorder
-    import logging
 
     detected = False
 

+ 1 - 1
tests/realtimestt_chinese.py

@@ -1,5 +1,5 @@
 from RealtimeSTT import AudioToTextRecorder
-from colorama import Fore, Back, Style
+from colorama import Fore, Style
 import colorama
 import os
 

+ 1 - 1
tests/realtimestt_test.py

@@ -1,5 +1,5 @@
 from RealtimeSTT import AudioToTextRecorder
-from colorama import Fore, Back, Style
+from colorama import Fore, Style
 import colorama
 import os