v25.12.30

This commit is contained in:
ROBERT MCDOWELL
2025-12-29 04:48:23 -08:00
committed by GitHub

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 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'