From b528b51e51bc351a4705c5fec9dc08afce44f02e Mon Sep 17 00:00:00 2001 From: Pascal Aznar Date: Fri, 2 Aug 2024 13:55:06 +0200 Subject: [PATCH] Fix TTS --- core.py | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/core.py b/core.py index ade9bcf41..1508c74f2 100644 --- a/core.py +++ b/core.py @@ -199,12 +199,17 @@ def run_tts_script( os.remove(output_tts_path) command_tts = [ - python, - tts_script_path, - tts_text, - tts_voice, - tts_rate, - output_tts_path, + *map( + str, + [ + python, + tts_script_path, + tts_text, + tts_voice, + tts_rate, + output_tts_path, + ], + ), ] subprocess.run(command_tts) infer_pipeline = import_voice_converter()