diff --git a/lollms/server/endpoints/lollms_tts.py b/lollms/server/endpoints/lollms_tts.py index e446f48..63a2df5 100644 --- a/lollms/server/endpoints/lollms_tts.py +++ b/lollms/server/endpoints/lollms_tts.py @@ -191,9 +191,9 @@ def install_xtts(data:Identification): if lollmsElfServer.config.host!="localhost" and lollmsElfServer.config.host!="127.0.0.1": return {"status":False,"error":"Service installation is blocked when the server is exposed outside for very obvious reasons!"} - from lollms.services.xtts.lollms_xtts import LollmsTTS + from lollms.services.xtts.lollms_xtts import LollmsXTTS lollmsElfServer.ShowBlockingMessage("Installing xTTS api server\nPlease stand by") - LollmsTTS.install(lollmsElfServer) + LollmsXTTS.install(lollmsElfServer) lollmsElfServer.HideBlockingMessage() return {"status":True} except Exception as ex: diff --git a/lollms/stt.py b/lollms/stt.py index ce9d266..f2fe149 100644 --- a/lollms/stt.py +++ b/lollms/stt.py @@ -127,5 +127,6 @@ class LollmsSTT: print(devices) return { "status": True, - "device_names": [device['name'] for device in devices if device["max_input_channels"]>0] + "device_names": [device['name'] for device in devices if device["max_input_channels"]>0], + "device_indexes": [device['index'] for device in devices if device["max_input_channels"]>0] } \ No newline at end of file diff --git a/lollms/tts.py b/lollms/tts.py index ed8dc6f..94c92e5 100644 --- a/lollms/tts.py +++ b/lollms/tts.py @@ -147,7 +147,8 @@ class LollmsTTS: return { "status": True, - "device_names": [device['name'] for device in devices if device["max_output_channels"]>0] + "device_names": [device['name'] for device in devices if device["max_output_channels"]>0], + "device_indexes": [device['index'] for device in devices if device["max_output_channels"]>0] } @staticmethod