mirror of
https://github.com/ParisNeo/lollms.git
synced 2025-02-01 08:48:19 +00:00
fix
This commit is contained in:
parent
6afd883f1b
commit
1dcbe34240
@ -362,7 +362,7 @@ class LollmsApplication(LoLLMsCom):
|
||||
self.whisper = LollmsWhisper(self, self.config.whisper_model, self.lollms_paths.personal_outputs_path)
|
||||
except Exception as ex:
|
||||
trace_exception(ex)
|
||||
if self.config.xtts_enable and self.xtts is None:
|
||||
if (self.config.xtts_enable or self.config.active_stt_service == "xtts") and self.xtts is None:
|
||||
try:
|
||||
from lollms.services.xtts.lollms_xtts import LollmsXTTS
|
||||
voice=self.config.xtts_current_voice
|
||||
|
@ -267,9 +267,14 @@ def tts_is_ready():
|
||||
|
||||
@router.get("/get_snd_input_devices")
|
||||
def get_snd_input_devices():
|
||||
return lollmsElfServer.stt.get_devices()
|
||||
|
||||
if lollmsElfServer.stt:
|
||||
return lollmsElfServer.stt.get_devices()
|
||||
else:
|
||||
return []
|
||||
@router.get("/get_snd_output_devices")
|
||||
def get_snd_output_devices():
|
||||
return lollmsElfServer.tts.get_devices()
|
||||
if lollmsElfServer.tts:
|
||||
return lollmsElfServer.tts.get_devices()
|
||||
else:
|
||||
return []
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user