mirror of
https://github.com/SillyTavern/SillyTavern-Launcher.git
synced 2026-01-26 17:09:44 +00:00
+added ability to install alltalk v2 +added ability to uninstall alltalk v2 +added ability to launch alltalk v2 with optional features: finetune, diag +organized voice generation menus
41 lines
1.5 KiB
Batchfile
41 lines
1.5 KiB
Batchfile
@echo off
|
|
|
|
:start_xtts
|
|
REM Activate the xtts environment
|
|
call conda activate xtts
|
|
|
|
REM Start XTTS
|
|
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% XTTS launched in a new window.
|
|
|
|
REM Read modules-xtts and find the xtts_start_command line
|
|
set "xtts_start_command="
|
|
|
|
for /F "tokens=*" %%a in ('findstr /I "xtts_start_command=" "%xtts_modules_path%"') do (
|
|
set "%%a"
|
|
)
|
|
|
|
|
|
if not defined xtts_start_command (
|
|
echo %red_bg%[%time%]%reset% %red_fg_strong%[ERROR] No modules enabled.%reset%
|
|
echo %red_bg%Please make sure you enabled at least one of the modules from Edit XTTS Modules.%reset%
|
|
echo.
|
|
echo %blue_bg%We will redirect you to the Edit XTTS Modules menu.%reset%
|
|
pause
|
|
set "caller=editor_image_generation"
|
|
if exist "%editor_voice_generation_dir%\edit_xtts_modules.bat" (
|
|
call %editor_voice_generation_dir%\edit_xtts_modules.bat
|
|
goto :home
|
|
) else (
|
|
echo [%DATE% %TIME%] ERROR: edit_xtts_modules.bat not found in: editor_voice_generation_dir% >> %logs_stl_console_path%
|
|
echo %red_bg%[%time%]%reset% %red_fg_strong%[ERROR] edit_xtts_modules.bat not found in: %editor_voice_generation_dir%%reset%
|
|
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Running Automatic Repair...
|
|
git pull
|
|
pause
|
|
goto :home
|
|
)
|
|
)
|
|
|
|
|
|
set "xtts_start_command=%xtts_start_command:xtts_start_command=%"
|
|
start cmd /k "title XTTSv2 API Server && cd /d %xtts_install_path% && %xtts_start_command%"
|
|
goto :home |