lollms-webui/scripts/python/xtts_start.py

45 lines
1.5 KiB
Python
Raw Normal View History

2024-12-19 12:48:57 +00:00
import subprocess
2023-12-31 11:43:49 +00:00
from pathlib import Path
2024-12-19 12:48:57 +00:00
2023-12-31 11:43:49 +00:00
from ascii_colors import ASCIIColors
2024-12-19 12:48:57 +00:00
from lollms.paths import LollmsPaths
2023-12-31 11:43:49 +00:00
2024-12-19 12:48:57 +00:00
global_path = Path(__file__).parent.parent.parent / "global_paths_cfg.yaml"
2023-12-31 11:43:49 +00:00
ASCIIColors.yellow(f"global_path: {global_path}")
lollms_paths = LollmsPaths(global_path)
2024-12-19 12:48:57 +00:00
output_folder = lollms_paths.personal_outputs_path / "audio_out"
2023-12-31 14:42:34 +00:00
2024-12-19 12:48:57 +00:00
ASCIIColors.red(
".____ ________ .____ .____ _____ _________ ____ __________________________________ "
)
ASCIIColors.red(
"| | \_____ \ | | | | / \ / _____/ \ \/ /\__ ___/\__ ___/ _____/ "
)
ASCIIColors.red(
"| | / | \| | | | / \ / \ \_____ \ ______ \ / | | | | \_____ \ "
)
ASCIIColors.red(
"| |___/ | \ |___| |___/ Y \/ \ /_____/ / \ | | | | / \ "
)
ASCIIColors.red(
"|_______ \_______ /_______ \_______ \____|__ /_______ / /___/\ \ |____| |____| /_______ / "
)
ASCIIColors.red(
" \/ \/ \/ \/ \/ \/ \_/ \/ "
)
2023-12-31 14:42:34 +00:00
ASCIIColors.red(" Forked from daswer123's XTTS server")
ASCIIColors.red(" Integration in lollms by ParisNeo using daswer123's webapi ")
2024-12-19 12:48:57 +00:00
subprocess.Popen(
[
"python",
"-m",
"xtts_api_server",
"-o",
f"{output_folder}",
"-sf",
f"{lollms_paths.custom_voices_path}",
]
)