updated timeout to 80 seconds
Much older systems with low system ram are taking 70 seconds to start up (so Im told). Ive added an extra 20 seconds onto the 60 seconds for subprocess start-up. documentation updated too.
This commit is contained in:
1 parent
3e6f1bace3
commit
f25d2627cd
2 files changed
+8
-5
No files matched your search
@@ -39,8 +39,8 @@ try:
|
|||||||
except ModuleNotFoundError:
|
except ModuleNotFoundError:
|
||||||
logger.error(
|
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 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 Linux / Mac:\npip install -r /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 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."
|
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
|
raise
|
||||||
@@ -62,7 +62,9 @@ try:
|
|||||||
from modules.utils import gradio
|
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
|
# 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
|
running_in_standalone = False
|
||||||
|
output_folder_wav = params["output_folder_wav"]
|
||||||
except ModuleNotFoundError:
|
except ModuleNotFoundError:
|
||||||
|
output_folder_wav = params["output_folder_wav_standalone"]
|
||||||
print(f"[{params['branding']}Startup] Running script.py in standalone mode")
|
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
|
# 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
|
running_in_standalone = True
|
||||||
@@ -108,7 +110,6 @@ def delete_old_files(folder_path, days_to_keep):
|
|||||||
|
|
||||||
# Extract settings using params dictionary
|
# Extract settings using params dictionary
|
||||||
delete_output_wavs_setting = params["delete_output_wavs"]
|
delete_output_wavs_setting = params["delete_output_wavs"]
|
||||||
output_folder_wav = params["output_folder_wav"]
|
|
||||||
output_folder_wav = os.path.normpath(output_folder_wav)
|
output_folder_wav = os.path.normpath(output_folder_wav)
|
||||||
|
|
||||||
# Check and perform file deletion
|
# Check and perform file deletion
|
||||||
|
|||||||
+4
-2
@@ -162,7 +162,9 @@ async def setup():
|
|||||||
# Set "tts_model_loaded" to true
|
# Set "tts_model_loaded" to true
|
||||||
params["tts_model_loaded"] = True
|
params["tts_model_loaded"] = True
|
||||||
# Set the output path for wav files
|
# 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"
|
# MODEL LOADER For "API TTS"
|
||||||
@@ -1593,7 +1595,7 @@ simple_webpage = """
|
|||||||
|
|
||||||
<h2 id="debugging-and-tts-generation-information"><strong>Debugging and TTS Generation Information</strong></h2>
|
<h2 id="debugging-and-tts-generation-information"><strong>Debugging and TTS Generation Information</strong></h2>
|
||||||
<p style="padding-left: 30px; text-align: justify;">Command line outputs are more verbose to assist in understanding backend processes and debugging.</p>
|
<p style="padding-left: 30px; text-align: justify;">Command line outputs are more verbose to assist in understanding backend processes and debugging.</p>
|
||||||
<p style="padding-left: 30px; text-align: justify;">Its possible during startup you can get a warning message such as: <br /><br /><span style="color: black;"> [AllTalk Startup]</span> <span style="color: #ff0000;">Warning</span> <span style="color: black;">TTS Subprocess has NOT started up yet, Will keep trying for 60 seconds maximum</span> <br /><br />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</p>
|
<p style="padding-left: 30px; text-align: justify;">Its possible during startup you can get a warning message such as: <br /><br /><span style="color: black;"> [AllTalk Startup]</span> <span style="color: #ff0000;">Warning</span> <span style="color: black;">TTS Subprocess has NOT started up yet, Will keep trying for 80 seconds maximum</span> <br /><br />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</p>
|
||||||
<p style="padding-left: 30px; text-align: justify;">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.</p>
|
<p style="padding-left: 30px; text-align: justify;">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.</p>
|
||||||
<p style="padding-left: 30px;"><a href="#toc">Back to top of page</a></p>
|
<p style="padding-left: 30px;"><a href="#toc">Back to top of page</a></p>
|
||||||
<h2 id="references"><strong>Thanks & References</strong></h2>
|
<h2 id="references"><strong>Thanks & References</strong></h2>
|
||||||
|
|||||||
Reference in new issue
Block a user