From 3b975b2421a4e87cfb20ed2c4115908b2d027f7e Mon Sep 17 00:00:00 2001 From: Saifeddine ALOUI Date: Fri, 24 May 2024 23:45:58 +0200 Subject: [PATCH] added some stuff --- lollms/media.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lollms/media.py b/lollms/media.py index 8613a6c..d645ab0 100644 --- a/lollms/media.py +++ b/lollms/media.py @@ -388,9 +388,10 @@ class RTCom: #self.transcription_signal.update_status.emit("Listening") def get_voices(self): - if self.lc.tts: + if self.lc.tts and self.lc.tts.ready: voices = self.lc.tts.get_voices() # Assuming the response is in JSON format return voices + return [] class WebcamImageSender: