From 1eb0d0a10398215f507135b74439395a84163067 Mon Sep 17 00:00:00 2001 From: erew123 <35898566+erew123@users.noreply.github.com> Date: Fri, 8 Dec 2023 15:43:39 +0000 Subject: [PATCH] Spelling corrections --- config.json | 2 +- script.py | 2 +- tts_server.py | 37 +++++++++++++++++++------------------ 3 files changed, 21 insertions(+), 20 deletions(-) diff --git a/config.json b/config.json index cd6371e..51246e6 100644 --- a/config.json +++ b/config.json @@ -1 +1 @@ -{"activate": true, "autoplay": true, "branding": "AllTalk ", "deepspeed_activate": false, "delete_output_wavs": "Disabled", "ip_address": "127.0.0.1", "language": "English", "low_vram": false, "model_loaded": true, "model_name": "tts_models/multilingual/multi-dataset/xtts_v2", "output_folder_wav": "extensions/coqui_tts/outputs/", "port_number": "7851", "remove_trailing_dots": false, "show_text": true, "tts_method_api_local": false, "tts_method_api_tts": false, "tts_method_xtts_local": true, "voice": "female_01.wav"} \ No newline at end of file +{"activate": true, "autoplay": true, "branding": "AllTalk ", "deepspeed_activate": false, "delete_output_wavs": "Disabled", "ip_address": "127.0.0.1", "language": "English", "low_vram": false, "model_loaded": true, "model_name": "tts_models/multilingual/multi-dataset/xtts_v2", "output_folder_wav": "extensions/alltalk_tts/outputs/", "port_number": "7851", "remove_trailing_dots": false, "show_text": true, "tts_method_api_local": false, "tts_method_api_tts": false, "tts_method_xtts_local": true, "voice": "female_01.wav"} \ No newline at end of file diff --git a/script.py b/script.py index 454bac1..bdd9b73 100644 --- a/script.py +++ b/script.py @@ -349,7 +349,7 @@ deepspeed_condition = params["tts_method_xtts_local"] == "True" and deepspeed_in ######################## # PREVIEW VOICE - Generate Random Sentence if Voice Preview box is empty def random_sentence(): - with open(Path("extensions/alltalk_tts/harvard_sentences.txt")) as f: + with open(this_dir / "harvard_sentences.txt") as f: return random.choice(list(f)) diff --git a/tts_server.py b/tts_server.py index 538ac6a..3007b2c 100644 --- a/tts_server.py +++ b/tts_server.py @@ -76,7 +76,7 @@ if modeldownload_config_file_path.exists(): else: # Default settings if the JSON file doesn't exist or is empty print( - f"[{params['branding']}Startup] \033[91mWarning\033[0m modeldownload.config is missing so please re-download it and save it in the coquii_tts main folder." + f"[{params['branding']}Startup] \033[91mWarning\033[0m modeldownload.config is missing so please re-download it and save it in the alltalk_tts main folder." ) @@ -165,7 +165,8 @@ async def setup(): # Set "model_loaded" to true params["model_loaded"] = True # Set the output path for wav files - Path(f'{params["output_folder_wav"]}outputs/').mkdir(parents=True, exist_ok=True) + Path(f'{params["output_folder_wav"]}').mkdir(parents=True, exist_ok=True) + # MODEL LOADER For "API TTS" @@ -551,7 +552,7 @@ simple_webpage = """
-