diff --git a/script.py b/script.py index a641bf9..abd54f4 100644 --- a/script.py +++ b/script.py @@ -39,8 +39,8 @@ try: except ModuleNotFoundError: logger.error( f"[{params['branding']}]\033[91mWarning\033[0m Could not find the TTS module. Make sure to install the requirements for the {params['branding']} extension." - f"[{params['branding']}]\033[91mWarning\033[0m Linux / Mac:\npip install -r extensions/alltalk_tts/requirements.txt\n" - f"[{params['branding']}]\033[91mWarning\033[0m Windows:\npip install -r extensions\\alltalk_tts\\requirements.txt\n" + f"[{params['branding']}]\033[91mWarning\033[0m Linux / Mac:\npip install -r /alltalk_tts/requirements.txt\n" + f"[{params['branding']}]\033[91mWarning\033[0m Windows:\npip install -r \\alltalk_tts\\requirements.txt\n" f"[{params['branding']}]\033[91mWarning\033[0m If you used the one-click installer, paste the command above in the terminal window launched after running the cmd_ script. On Windows, that's cmd_windows.bat." ) raise @@ -62,7 +62,9 @@ try: from modules.utils import gradio # This is set to check if the script is being run within text generation webui or as a standalone script. False is running as part of text gen web ui or a gradio interface running_in_standalone = False + output_folder_wav = params["output_folder_wav"] except ModuleNotFoundError: + output_folder_wav = params["output_folder_wav_standalone"] print(f"[{params['branding']}Startup] Running script.py in standalone mode") # This is set to check if the script is being run within text generation webui or as a standalone script. true means standalone running_in_standalone = True @@ -108,7 +110,6 @@ def delete_old_files(folder_path, days_to_keep): # Extract settings using params dictionary delete_output_wavs_setting = params["delete_output_wavs"] -output_folder_wav = params["output_folder_wav"] output_folder_wav = os.path.normpath(output_folder_wav) # Check and perform file deletion diff --git a/tts_server.py b/tts_server.py index 92f07ed..c4e9899 100644 --- a/tts_server.py +++ b/tts_server.py @@ -162,7 +162,9 @@ async def setup(): # Set "tts_model_loaded" to true params["tts_model_loaded"] = True # Set the output path for wav files - Path(f'{params["output_folder_wav"]}').mkdir(parents=True, exist_ok=True) + output_directory = this_dir / params["output_folder_wav_standalone"] + output_directory.mkdir(parents=True, exist_ok=True) + #Path(f'this_folder/outputs/').mkdir(parents=True, exist_ok=True) # MODEL LOADER For "API TTS" @@ -1593,7 +1595,7 @@ simple_webpage = """
Command line outputs are more verbose to assist in understanding backend processes and debugging.
-Its possible during startup you can get a warning message such as:
[AllTalk Startup] Warning TTS Subprocess has NOT started up yet, Will keep trying for 60 seconds maximum
This is normal behavior if the subprocess is taking a while to start, however, if there is an issue starting the subprocess, you may see multiples of this message and an it will time out after 60 seconds, resulting in the TTS engine not starting. Its likely that you are not in the correct python environment or one that has a TTS engine inside, if this happens, though the system will output a warning about that ahead of this message
Its possible during startup you can get a warning message such as:
[AllTalk Startup] Warning TTS Subprocess has NOT started up yet, Will keep trying for 80 seconds maximum
This is normal behavior if the subprocess is taking a while to start, however, if there is an issue starting the subprocess, you may see multiples of this message and an it will time out after 80 seconds, resulting in the TTS engine not starting. Its likely that you are not in the correct python environment or one that has a TTS engine inside, if this happens, though the system will output a warning about that ahead of this message
Typically the command line console will output any warning or error messages. If you need to reset your default configuation, the settings are all listed above in the configuration details.