diff --git a/Launcher.bat b/Launcher.bat index 1532263..c0ba88e 100644 --- a/Launcher.bat +++ b/Launcher.bat @@ -192,6 +192,7 @@ set "tabbyapi_install_path=%text_completion_dir%\tabbyAPI" REM Define variables for install locations (Voice Generation) set "voice_generation_dir=%~dp0voice-generation" set "alltalk_install_path=%voice_generation_dir%\alltalk_tts" +set "alltalk_v2_install_path=%voice_generation_dir%\alltalk_tts" set "xtts_install_path=%voice_generation_dir%\xtts" set "rvc_install_path=%voice_generation_dir%\Retrieval-based-Voice-Conversion-WebUI" @@ -1657,10 +1658,9 @@ echo %blue_fg_strong% ========================================================== echo %cyan_fg_strong% ______________________________________________________________%reset% echo %cyan_fg_strong%^| What would you like to do? ^|%reset% -echo 1. Start AllTalk +echo 1. AllTalk [Launch Options] echo 2. Start XTTS -echo 3. Start RVC WEBUI -echo 4. Start RVC REALTIME [Voice Changer to use with Discord, Steam, etc...] +echo 3. RVC [Launch Options] echo %cyan_fg_strong% ______________________________________________________________%reset% echo %cyan_fg_strong%^| Menu Options: ^|%reset% echo 0. Back @@ -1676,10 +1676,137 @@ set /p "app_launcher_voice_generation_choice=%BS% Choose Your Destiny: " REM ########## APP LAUNCHER TEXT COMPLETION - BACKEND ######### if "%app_launcher_voice_generation_choice%"=="1" ( - call :start_alltalk + call :app_launcher_voice_generation_alltalk ) else if "%app_launcher_voice_generation_choice%"=="2" ( - call :start_xtts + set "caller=app_launcher_voice_generation" + if exist "%app_launcher_voice_generation_dir%\start_xtts.bat" ( + call %app_launcher_voice_generation_dir%\start_xtts.bat + goto :home + ) else ( + echo [%DATE% %TIME%] ERROR: start_xtts.bat not found in: app_launcher_voice_generation_dir% >> %logs_stl_console_path% + echo %red_bg%[%time%]%reset% %red_fg_strong%[ERROR] start_xtts.bat not found in: %app_launcher_voice_generation_dir%%reset% + echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Running Automatic Repair... + git pull + pause + goto :home + ) ) else if "%app_launcher_voice_generation_choice%"=="3" ( + call :app_launcher_voice_generation_rvc +) else if "%app_launcher_voice_generation_choice%"=="0" ( + goto :app_launcher +) else ( + echo [%DATE% %TIME%] %log_invalidinput% >> %logs_stl_console_path% + echo %red_bg%[%time%]%reset% %echo_invalidinput% + pause + goto :app_launcher_voice_generation +) + +REM ############################################################ +REM ####### APP LAUNCHER VOICE GENERATION ALLTALK - FRONTEND ### +REM ############################################################ +:app_launcher_voice_generation_alltalk +title STL [APP LAUNCHER VOICE GENERATION ALLTALK] +cls +echo %blue_fg_strong%^| ^> / Home / Toolbox / App Launcher / Voice Generation / AllTalk^|%reset% +echo %blue_fg_strong% ==============================================================%reset% +echo %cyan_fg_strong% ______________________________________________________________%reset% +echo %cyan_fg_strong%^| AllTalk V2 ^|%reset% +echo 1. Start AllTalk V2 +echo 2. Start Finetune +echo 3. Start Diagnostics +echo %cyan_fg_strong% ______________________________________________________________%reset% +echo %cyan_fg_strong%^| AllTalk V1 ^|%reset% +echo 4. Start AllTalk V1 +echo %cyan_fg_strong% ______________________________________________________________%reset% +echo %cyan_fg_strong%^| Menu Options: ^|%reset% +echo 0. Back + +echo %cyan_fg_strong% ______________________________________________________________%reset% +echo %cyan_fg_strong%^| ^|%reset% + +:: Define a variable containing a single backspace character +for /f %%A in ('"prompt $H &echo on &for %%B in (1) do rem"') do set "BS=%%A" + +:: Set the prompt with spaces +set /p "app_launcher_voice_generation_alltalk_choice=%BS% Choose Your Destiny: " + +REM ########## APP LAUNCHER TEXT COMPLETION - BACKEND ######### +if "%app_launcher_voice_generation_alltalk_choice%"=="1" ( + set "caller=app_launcher_voice_generation" + if exist "%app_launcher_voice_generation_dir%\start_alltalk_v2.bat" ( + call %app_launcher_voice_generation_dir%\start_alltalk_v2.bat + goto :home + ) else ( + echo [%DATE% %TIME%] ERROR: start_alltalk_v2.bat not found in: app_launcher_voice_generation_dir% >> %logs_stl_console_path% + echo %red_bg%[%time%]%reset% %red_fg_strong%[ERROR] start_alltalk_v2.bat not found in: %app_launcher_voice_generation_dir%%reset% + echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Running Automatic Repair... + git pull + pause + goto :home + ) +) else if "%app_launcher_voice_generation_alltalk_choice%"=="2" ( + set "caller=app_launcher_voice_generation" + if exist "%app_launcher_voice_generation_dir%\start_alltalk_v2_finetune.bat" ( + call %app_launcher_voice_generation_dir%\start_alltalk_v2_finetune.bat + goto :home + ) else ( + echo [%DATE% %TIME%] ERROR: start_alltalk_v2_finetune.bat not found in: app_launcher_voice_generation_dir% >> %logs_stl_console_path% + echo %red_bg%[%time%]%reset% %red_fg_strong%[ERROR] start_alltalk_v2_finetune.bat not found in: %app_launcher_voice_generation_dir%%reset% + echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Running Automatic Repair... + git pull + pause + goto :home + ) +) else if "%app_launcher_voice_generation_alltalk_choice%"=="3" ( + set "caller=app_launcher_voice_generation" + if exist "%app_launcher_voice_generation_dir%\start_alltalk_v2_diag.bat" ( + call %app_launcher_voice_generation_dir%\start_alltalk_v2_diag.bat + goto :home + ) else ( + echo [%DATE% %TIME%] ERROR: start_alltalk_v2_diag.bat not found in: app_launcher_voice_generation_dir% >> %logs_stl_console_path% + echo %red_bg%[%time%]%reset% %red_fg_strong%[ERROR] start_alltalk_v2_diag.bat not found in: %app_launcher_voice_generation_dir%%reset% + echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Running Automatic Repair... + git pull + pause + goto :home + ) +) else if "%app_launcher_voice_generation_alltalk_choice%"=="0" ( + goto :app_launcher_voice_generation +) else ( + echo [%DATE% %TIME%] %log_invalidinput% >> %logs_stl_console_path% + echo %red_bg%[%time%]%reset% %echo_invalidinput% + pause + goto :app_launcher_voice_generation_alltalk +) + + +REM ############################################################ +REM ####### APP LAUNCHER VOICE GENERATION RVC - FRONTEND ####### +REM ############################################################ +:app_launcher_voice_generation_rvc +title STL [APP LAUNCHER VOICE GENERATION RVC] +cls +echo %blue_fg_strong%^| ^> / Home / Toolbox / App Launcher / Voice Generation / RVC ^|%reset% +echo %blue_fg_strong% ==============================================================%reset% +echo %cyan_fg_strong% ______________________________________________________________%reset% +echo %cyan_fg_strong%^| Retrieval based Voice Conversion ^|%reset% +echo 1. Start RVC +echo 2. Start RVC REALTIME [Used with Discord, Steam, etc...] +echo %cyan_fg_strong% ______________________________________________________________%reset% +echo %cyan_fg_strong%^| Menu Options: ^|%reset% +echo 0. Back + +echo %cyan_fg_strong% ______________________________________________________________%reset% +echo %cyan_fg_strong%^| ^|%reset% + +:: Define a variable containing a single backspace character +for /f %%A in ('"prompt $H &echo on &for %%B in (1) do rem"') do set "BS=%%A" + +:: Set the prompt with spaces +set /p "app_launcher_voice_generation_rvc_choice=%BS% Choose Your Destiny: " + +REM ########## APP LAUNCHER TEXT COMPLETION - BACKEND ######### +if "%app_launcher_voice_generation_rvc_choice%"=="1" ( set "caller=app_launcher_voice_generation" if exist "%app_launcher_voice_generation_dir%\start_rvc.bat" ( call %app_launcher_voice_generation_dir%\start_rvc.bat @@ -1692,7 +1819,7 @@ if "%app_launcher_voice_generation_choice%"=="1" ( pause goto :home ) -) else if "%app_launcher_voice_generation_choice%"=="4" ( +) else if "%app_launcher_voice_generation_rvc_choice%"=="2" ( set "caller=app_launcher_voice_generation" if exist "%app_launcher_voice_generation_dir%\start_rvc_realtime.bat" ( call %app_launcher_voice_generation_dir%\start_rvc_realtime.bat @@ -1705,54 +1832,16 @@ if "%app_launcher_voice_generation_choice%"=="1" ( pause goto :home ) -) else if "%app_launcher_voice_generation_choice%"=="0" ( - goto :app_launcher +) else if "%app_launcher_voice_generation_rvc_choice%"=="0" ( + goto :app_launcher_voice_generation ) else ( echo [%DATE% %TIME%] %log_invalidinput% >> %logs_stl_console_path% echo %red_bg%[%time%]%reset% %echo_invalidinput% pause - goto :app_launcher_voice_generation + goto :app_launcher_voice_generation_rvc ) -:start_alltalk -REM Activate the alltalk environment -call conda activate alltalk - -REM Start AllTalk -echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% AllTalk launched in a new window. -start cmd /k "title AllTalk && cd /d %alltalk_install_path% && python script.py" -goto :home - - -: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 - goto :edit_xtts_modules -) - -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 - - REM ############################################################ REM ######## APP LAUNCHER IMAGE GENERATION - FRONTEND ########## REM ############################################################ @@ -2539,9 +2628,10 @@ echo %blue_fg_strong% ========================================================== echo %cyan_fg_strong% ______________________________________________________________%reset% echo %cyan_fg_strong%^| What would you like to do? ^|%reset% -echo 1. Install AllTalk -echo 2. Install XTTS -echo 3. Install RVC +echo 1. Install AllTalk V2 +echo 2. Install AllTalk +echo 3. Install XTTS +echo 4. Install RVC echo %cyan_fg_strong% ______________________________________________________________%reset% echo %cyan_fg_strong%^| Menu Options: ^|%reset% echo 0. Back @@ -2558,6 +2648,17 @@ set /p "app_installer_voice_gen_choice=%BS% Choose Your Destiny: " REM ######## APP INSTALLER VOICE GENERATION - BACKEND ######### if "%app_installer_voice_gen_choice%"=="1" ( + set "caller=app_installer_voice_generation" + if exist "%app_installer_voice_generation_dir%\install_alltalk_v2.bat" ( + call %app_installer_voice_generation_dir%\install_alltalk_v2.bat + goto :app_installer_voice_generation + ) else ( + echo [%DATE% %TIME%] ERROR: install_alltalk_v2.bat not found in: %app_installer_voice_generation_dir% >> %logs_stl_console_path% + echo %red_bg%[%time%]%reset% %red_fg_strong%[ERROR] install_alltalk_v2.bat not found in: %app_installer_voice_generation_dir%%reset% + pause + goto :app_installer_voice_generation + ) +) else if "%app_installer_voice_gen_choice%"=="2" ( set "caller=app_installer_voice_generation" if exist "%app_installer_voice_generation_dir%\install_alltalk.bat" ( call %app_installer_voice_generation_dir%\install_alltalk.bat @@ -2568,7 +2669,7 @@ if "%app_installer_voice_gen_choice%"=="1" ( pause goto :app_installer_voice_generation ) -) else if "%app_installer_voice_gen_choice%"=="2" ( +) else if "%app_installer_voice_gen_choice%"=="3" ( set "caller=app_installer_voice_generation" if exist "%app_installer_voice_generation_dir%\install_xtts.bat" ( call %app_installer_voice_generation_dir%\install_xtts.bat @@ -2579,7 +2680,7 @@ if "%app_installer_voice_gen_choice%"=="1" ( pause goto :app_installer_voice_generation ) -) else if "%app_installer_voice_gen_choice%"=="3" ( +) else if "%app_installer_voice_gen_choice%"=="4" ( set "caller=app_installer_voice_generation" if exist "%app_installer_voice_generation_dir%\install_rvc.bat" ( call %app_installer_voice_generation_dir%\install_rvc.bat @@ -3563,9 +3664,10 @@ echo %blue_fg_strong% ========================================================== echo %cyan_fg_strong% ______________________________________________________________%reset% echo %cyan_fg_strong%^| What would you like to do? ^|%reset% -echo 1. UNINSTALL AllTalk -echo 2. UNINSTALL XTTS -echo 3. UNINSTALL rvc +echo 1. UNINSTALL AllTalk V2 +echo 2. UNINSTALL AllTalk +echo 3. UNINSTALL XTTS +echo 4. UNINSTALL rvc echo %cyan_fg_strong% ______________________________________________________________%reset% echo %cyan_fg_strong%^| Menu Options: ^|%reset% @@ -3582,6 +3684,19 @@ set /p "app_uninstaller_voice_gen_choice=%BS% Choose Your Destiny: " REM ######## APP UNINSTALLER VOICE GENERATION - BACKEND ######### if "%app_uninstaller_voice_gen_choice%"=="1" ( + set "caller=app_uninstaller_voice_generation" + if exist "%app_uninstaller_voice_generation_dir%\uninstall_alltalk_v2.bat" ( + call %app_uninstaller_voice_generation_dir%\uninstall_alltalk_v2.bat + goto :app_uninstaller_voice_generation + ) else ( + echo [%DATE% %TIME%] ERROR: uninstall_alltalk_v2.bat not found in: %app_uninstaller_voice_generation_dir% >> %logs_stl_console_path% + echo %red_bg%[%time%]%reset% %red_fg_strong%[ERROR] uninstall_alltalk_v2.bat not found in: %app_uninstaller_voice_generation_dir%%reset% + echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Running Automatic Repair... + git pull + pause + goto :app_uninstaller_voice_generation + ) +) else if "%app_uninstaller_voice_gen_choice%"=="2" ( set "caller=app_uninstaller_voice_generation" if exist "%app_uninstaller_voice_generation_dir%\uninstall_alltalk.bat" ( call %app_uninstaller_voice_generation_dir%\uninstall_alltalk.bat @@ -3594,7 +3709,7 @@ if "%app_uninstaller_voice_gen_choice%"=="1" ( pause goto :app_uninstaller_voice_generation ) -) else if "%app_uninstaller_voice_gen_choice%"=="2" ( +) else if "%app_uninstaller_voice_gen_choice%"=="3" ( set "caller=app_uninstaller_voice_generation" if exist "%app_uninstaller_voice_generation_dir%\uninstall_xtts.bat" ( call %app_uninstaller_voice_generation_dir%\uninstall_xtts.bat @@ -3607,7 +3722,7 @@ if "%app_uninstaller_voice_gen_choice%"=="1" ( pause goto :app_uninstaller_voice_generation ) -) else if "%app_uninstaller_voice_gen_choice%"=="3" ( +) else if "%app_uninstaller_voice_gen_choice%"=="4" ( set "caller=app_uninstaller_voice_generation" if exist "%app_uninstaller_voice_generation_dir%\uninstall_rvc.bat" ( call %app_uninstaller_voice_generation_dir%\uninstall_rvc.bat @@ -3620,6 +3735,7 @@ if "%app_uninstaller_voice_gen_choice%"=="1" ( pause goto :app_uninstaller_voice_generation ) + ) else if "%app_uninstaller_voice_gen_choice%"=="0" ( goto :app_uninstaller ) else ( diff --git a/bin/functions/Toolbox/App_Installer/Voice_Generation/install_alltalk_v2.bat b/bin/functions/Toolbox/App_Installer/Voice_Generation/install_alltalk_v2.bat new file mode 100644 index 0000000..66144ed --- /dev/null +++ b/bin/functions/Toolbox/App_Installer/Voice_Generation/install_alltalk_v2.bat @@ -0,0 +1,138 @@ +@echo off + +:install_alltalk_v2 +title STL [INSTALL ALLTALK V2] +cls +echo %blue_fg_strong%/ Home / Toolbox / App Installer / Voice Generation / Install AllTalk V2%reset% +echo --------------------------------------------------------------- +REM GPU menu - Frontend +echo What is your GPU? +echo 1. NVIDIA +echo 2. AMD +echo 0. Cancel + +setlocal enabledelayedexpansion +chcp 65001 > nul +REM Get GPU information +for /f "skip=1 delims=" %%i in ('wmic path win32_videocontroller get caption') do ( + set "gpu_info=!gpu_info! %%i" +) + +echo. +echo %blue_bg%╔════ GPU INFO ═════════════════════════════════╗%reset% +echo %blue_bg%║ ║%reset% +echo %blue_bg%║* %gpu_info:~1% ║%reset% +echo %blue_bg%║ ║%reset% +echo %blue_bg%╚═══════════════════════════════════════════════╝%reset% +echo. + +endlocal +set /p gpu_choice=Enter number corresponding to your GPU: + +REM GPU menu - Backend +REM Set the GPU choice in an environment variable for choise callback +set "GPU_CHOICE=%gpu_choice%" + +REM Check the user's response +if "%gpu_choice%"=="1" ( + echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% GPU choice set to NVIDIA + goto :install_alltalk_v2_pre +) else if "%gpu_choice%"=="2" ( + echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% GPU choice set to AMD + goto :install_alltalk_v2_pre +) else if "%gpu_choice%"=="0" ( + goto :app_installer_voice_generation +) else ( + echo %red_bg%[%time%]%reset% %red_fg_strong%[ERROR] Invalid input. Please enter a valid number.%reset% + pause + goto :install_alltalk_v2 +) +:install_alltalk_v2_pre +echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Installing AllTalk... + +echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Downloading Visual Studio Community... +curl -o "VisualStudioSetup.exe" "https://aka.ms/vs/17/release/vs_community.exe" + +echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Installing Python C and SDK Requirements... +"VisualStudioSetup.exe" --add Microsoft.VisualStudio.Workload.NativeDesktop --includeRecommended --includeOptional --passive --wait + +REM Check if the folder exists +if not exist "%voice_generation_dir%" ( + mkdir "%voice_generation_dir%" + echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Created folder: "voice-generation" +) else ( + echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO] "voice-generation" folder already exists.%reset% +) +cd /d "%voice_generation_dir%" + +set max_retries=3 +set retry_count=0 + +:retry_install_alltalk_v2 +echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Cloning alltalk_tts repository... +git clone -b alltalkbeta https://github.com/erew123/alltalk_tts + +if %errorlevel% neq 0 ( + set /A retry_count+=1 + echo %yellow_bg%[%time%]%reset% %yellow_fg_strong%[WARN] Retry %retry_count% of %max_retries%%reset% + if %retry_count% lss %max_retries% goto :retry_install_alltalk_v2 + echo %red_bg%[%time%]%reset% %red_fg_strong%[ERROR] Failed to clone repository after %max_retries% retries.%reset% + pause + goto :home +) +cd /d "%alltalk_v2_install_path%" + +REM Activate the Miniconda installation +echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Activating Miniconda environment... +call "%miniconda_path%\Scripts\activate.bat" + +REM Create a Conda environment named alltalkv2 +echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Creating Conda environment: %cyan_fg_strong%alltalkv2%reset% +call conda create -n alltalkv2 python=3.11.9 -y + +REM Activate the alltalkv2 environment +echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Activating Conda environment: %cyan_fg_strong%alltalkv2%reset% +call conda activate alltalkv2 + +REM Use the GPU choice made earlier to install requirements for alltalkv2 +if "%GPU_CHOICE%"=="1" ( + echo %blue_bg%[%time%]%reset% %cyan_fg_strong%[alltalkv2]%reset% %blue_fg_strong%[INFO]%reset% Installing NVIDIA version of PyTorch in conda enviroment: %cyan_fg_strong%alltalkv2%reset% + call conda install -y pytorch==2.2.1 torchvision==0.17.1 torchaudio==2.2.1 pytorch-cuda=12.1 -c pytorch -c nvidia + + echo %blue_bg%[%time%]%reset% %cyan_fg_strong%[alltalkv2]%reset% %blue_fg_strong%[INFO]%reset% Installing deepspeed... + curl -LO https://github.com/erew123/alltalk_tts/releases/download/DeepSpeed-14.0/deepspeed-0.14.0+ce78a63-cp311-cp311-win_amd64.whl + pip install deepspeed-0.14.0+ce78a63-cp311-cp311-win_amd64.whl + del deepspeed-0.14.0+ce78a63-cp311-cp311-win_amd64.whl + goto :install_alltalk_v2_final +) else if "%GPU_CHOICE%"=="2" ( + echo %blue_bg%[%time%]%reset% %cyan_fg_strong%[alltalkv2]%reset% %blue_fg_strong%[INFO]%reset% Installing AMD version of PyTorch in conda enviroment: %cyan_fg_strong%alltalkv2%reset% + pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm5.6 + goto :install_alltalk_v2_final +) + + +:install_alltalk_v2_final +echo %blue_bg%[%time%]%reset% %cyan_fg_strong%[alltalkv2]%reset% %blue_fg_strong%[INFO]%reset% Installing eSpeak NG... +msiexec /i system\espeak-ng\espeak-ng-X64.msi /qn + +echo %blue_bg%[%time%]%reset% %cyan_fg_strong%[alltalkv2]%reset% %blue_fg_strong%[INFO]%reset% Installing Faiss... +call conda install -y pytorch::faiss-cpu + +echo %blue_bg%[%time%]%reset% %cyan_fg_strong%[alltalkv2]%reset% %blue_fg_strong%[INFO]%reset% Installing FFmpeg... +call conda install -y -c conda-forge "ffmpeg=*=*gpl*" +call conda install -y -c conda-forge "ffmpeg=*=h*_*" --no-deps + +echo %blue_bg%[%time%]%reset% %cyan_fg_strong%[alltalkv2]%reset% %blue_fg_strong%[INFO]%reset% Installing pip requirements from requirements_standalone.txt +pip install -r system\requirements\requirements_standalone.txt + +echo %blue_bg%[%time%]%reset% %cyan_fg_strong%[alltalkv2]%reset% %blue_fg_strong%[INFO]%reset% Updating Gradio... +pip install --upgrade gradio==4.44.1 + +echo %blue_bg%[%time%]%reset% %cyan_fg_strong%[alltalkv2]%reset% %blue_fg_strong%[INFO]%reset% Installing Parler... +pip install -r system\requirements\requirements_parler.txt +call conda clean --all --force-pkgs-dirs -y + + +echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% %green_fg_strong%AllTalk V2 installed successfully%reset% +pause +goto :app_installer_voice_generation \ No newline at end of file diff --git a/bin/functions/Toolbox/App_Launcher/Voice_Generation/start_alltalk.bat b/bin/functions/Toolbox/App_Launcher/Voice_Generation/start_alltalk.bat new file mode 100644 index 0000000..22a3137 --- /dev/null +++ b/bin/functions/Toolbox/App_Launcher/Voice_Generation/start_alltalk.bat @@ -0,0 +1,14 @@ +@echo off + +:start_alltalk +REM Activate the alltalk environment +call conda activate alltalk + +REM Start AllTalk +echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% AllTalk launched in a new window. +start cmd /k "title AllTalk && cd /d %alltalk_install_path% && python script.py" +goto :home + + + + diff --git a/bin/functions/Toolbox/App_Launcher/Voice_Generation/start_alltalk_v2.bat b/bin/functions/Toolbox/App_Launcher/Voice_Generation/start_alltalk_v2.bat new file mode 100644 index 0000000..b564506 --- /dev/null +++ b/bin/functions/Toolbox/App_Launcher/Voice_Generation/start_alltalk_v2.bat @@ -0,0 +1,10 @@ +@echo off + +:start_alltalk_v2 +REM Activate the alltalk environment +call conda activate alltalkv2 + +REM Start AllTalkV2 +echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% AllTalkV2 launched in a new window. +start cmd /k "title AllTalkV2 && cd /d %alltalk_v2_install_path% && python script.py" +goto :home \ No newline at end of file diff --git a/bin/functions/Toolbox/App_Launcher/Voice_Generation/start_alltalk_v2_diag.bat b/bin/functions/Toolbox/App_Launcher/Voice_Generation/start_alltalk_v2_diag.bat new file mode 100644 index 0000000..ef62aa6 --- /dev/null +++ b/bin/functions/Toolbox/App_Launcher/Voice_Generation/start_alltalk_v2_diag.bat @@ -0,0 +1,10 @@ +@echo off + +:start_alltalk_v2_diag +REM Activate the alltalk environment +call conda activate alltalkv2 + +REM Start AllTalkV2 +echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% AllTalkV2 Diagnostics launched in a new window. +start cmd /k "title AllTalkV2 && cd /d %alltalk_v2_install_path% && python diagnostics.py" +goto :home \ No newline at end of file diff --git a/bin/functions/Toolbox/App_Launcher/Voice_Generation/start_alltalk_v2_finetune.bat b/bin/functions/Toolbox/App_Launcher/Voice_Generation/start_alltalk_v2_finetune.bat new file mode 100644 index 0000000..9f80459 --- /dev/null +++ b/bin/functions/Toolbox/App_Launcher/Voice_Generation/start_alltalk_v2_finetune.bat @@ -0,0 +1,10 @@ +@echo off + +:start_alltalk_v2_finetune +REM Activate the alltalk environment +call conda activate alltalkv2 + +REM Start AllTalkV2 +echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% AllTalkV2 Finetune launched in a new window. +start cmd /k "title AllTalkV2 && cd /d %alltalk_v2_install_path% && python finetune.py" +goto :home \ No newline at end of file diff --git a/bin/functions/Toolbox/App_Launcher/Voice_Generation/start_xtts.bat b/bin/functions/Toolbox/App_Launcher/Voice_Generation/start_xtts.bat new file mode 100644 index 0000000..c37eae4 --- /dev/null +++ b/bin/functions/Toolbox/App_Launcher/Voice_Generation/start_xtts.bat @@ -0,0 +1,41 @@ +@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 \ No newline at end of file diff --git a/bin/functions/Toolbox/App_Uninstaller/Voice_Generation/uninstall_alltalk_v2.bat b/bin/functions/Toolbox/App_Uninstaller/Voice_Generation/uninstall_alltalk_v2.bat new file mode 100644 index 0000000..5efb227 --- /dev/null +++ b/bin/functions/Toolbox/App_Uninstaller/Voice_Generation/uninstall_alltalk_v2.bat @@ -0,0 +1,36 @@ +@echo off + +:uninstall_alltalk_v2 +title STL [UNINSTALL ALLTALK V2] +setlocal enabledelayedexpansion +chcp 65001 > nul + +REM Confirm with the user before proceeding +echo. +echo %red_bg%╔════ DANGER ZONE ══════════════════════════════════════════════════════════════════════════════╗%reset% +echo %red_bg%║ WARNING: This will delete all data of AllTalk V2 ║%reset% +echo %red_bg%║ If you want to keep any data, make sure to create a backup before proceeding. ║%reset% +echo %red_bg%╚═══════════════════════════════════════════════════════════════════════════════════════════════╝%reset% +echo. +set /p "confirmation=Are you sure you want to proceed? [Y/N]: " +if /i "%confirmation%"=="Y" ( + + REM Remove the Conda environment + echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Removing the Conda enviroment: %cyan_fg_strong%alltalk%reset% + call conda deactivate + call conda remove --name alltalkv2 --all -y + call conda clean -a -y + + REM Remove the folder + echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Removing the alltalk directory... + cd /d "%~dp0" + rmdir /s /q "%alltalk_v2_install_path%" + + echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% %green_fg_strong%AllTalk V2 has been uninstalled successfully.%reset% + pause + goto :app_uninstaller_voice_generation +) else ( + echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Uninstall canceled. + pause + goto :app_uninstaller_voice_generation +) \ No newline at end of file diff --git a/installer.bat b/installer.bat index 561f997..babc4d1 100644 --- a/installer.bat +++ b/installer.bat @@ -278,9 +278,9 @@ echo %blue_fg_strong%/ Installer%reset% echo --------------------------------------------------------------- echo What would you like to do? echo 1. Install SillyTavern -echo 2. Install Extras -echo 3. Install XTTS -echo 4. Install All Options From Above +REM echo 2. Install Extras +REM echo 3. Install XTTS +REM echo 4. Install All Options From Above echo 5. Support echo 0. Exit @@ -293,12 +293,12 @@ if not defined choice set "choice=1" REM Installer menu - Backend if "%choice%"=="1" ( call :install_sillytavern -) else if "%choice%"=="2" ( - call :install_extras -) else if "%choice%"=="3" ( - call :install_xtts -) else if "%choice%"=="4" ( - call :install_all +REM ) else if "%choice%"=="2" ( +REM call :install_extras +REM ) else if "%choice%"=="3" ( +REM call :install_xtts +REM ) else if "%choice%"=="4" ( +REM call :install_all ) else if "%choice%"=="5" ( call :support ) else if "%choice%"=="0" ( @@ -580,13 +580,12 @@ title STL [INSTALL XTTS] cls echo %blue_fg_strong%/ Installer / Install XTTS%reset% echo --------------------------------------------------------------- - REM GPU menu - Frontend echo What is your GPU? echo 1. NVIDIA echo 2. AMD -echo 3. None (CPU-only mode) -echo 0. Cancel install +echo 3. None CPU-only mode +echo 0. Cancel setlocal enabledelayedexpansion chcp 65001 > nul @@ -612,7 +611,6 @@ set "GPU_CHOICE=%gpu_choice%" REM Check the user's response if "%gpu_choice%"=="1" ( - REM Install pip requirements echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% GPU choice set to NVIDIA goto :install_xtts_pre ) else if "%gpu_choice%"=="2" ( @@ -630,13 +628,13 @@ if "%gpu_choice%"=="1" ( ) :install_xtts_pre REM Check if the folder exists -if not exist "%~dp0voice-generation" ( - mkdir "%~dp0voice-generation" +if not exist "%voice_generation_dir%" ( + mkdir "%voice_generation_dir%" echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Created folder: "voice-generation" ) else ( echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO] "voice-generation" folder already exists.%reset% ) -cd /d "%~dp0voice-generation" +cd /d "%voice_generation_dir%" echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Installing XTTS... @@ -685,16 +683,16 @@ pip install -r requirements-custom.txt REM Create folders for xtts echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Creating xtts folders... -mkdir "%~dp0voice-generation\xtts" -mkdir "%~dp0voice-generation\xtts\speakers" -mkdir "%~dp0voice-generation\xtts\output" +mkdir "%xtts_install_path%" +mkdir "%xtts_install_path%\speakers" +mkdir "%xtts_install_path%\output" echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Adding voice examples to speakers directory... -xcopy "%~dp0voice-generation\xtts-api-server\example\*" "%~dp0voice-generation\xtts\speakers\" /y /e +xcopy "%voice_generation_dir%\xtts-api-server\example\*" "%xtts_install_path%\speakers\" /y /e echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Removing the xtts-api-server directory... -cd /d "%~dp0" -rmdir /s /q "%~dp0voice-generation\xtts-api-server" +rmdir /s /q "%voice_generation_dir%\xtts-api-server" + echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% %green_fg_strong%XTTS installed successfully%reset% pause goto :installer