This commit is contained in:
unknown
2025-12-29 04:45:38 -08:00
parent 0e6a964baa
commit cd0fee2aa6

View File

@@ -1174,7 +1174,7 @@ def build_interface(args:dict)->gr.Blocks:
if idx + 1 < len(parts):
parts[idx + 1] = session['language']
new_voice_path = str(Path(*parts))
if not any(v[1] == new_voice_path for v in voice_options) and os.path.exists(new_voice_path):
if any(v[1] == new_voice_path for v in voice_options) and os.path.exists(new_voice_path):
session['voice'] = new_voice_path
else:
parts[idx + 1] = 'eng'