mirror of
https://github.com/DrewThomasson/ebook2audiobook.git
synced 2026-01-08 21:38:12 -05:00
...
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user