fixed xtts installer

This commit is contained in:
Saifeddine ALOUI 2024-05-23 23:48:29 +02:00
parent 4734e5f359
commit 6afd883f1b
3 changed files with 6 additions and 4 deletions
lollms

View File

@ -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:

View File

@ -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]
}

View File

@ -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