mirror of
https://github.com/denizsafak/abogen.git
synced 2026-09-20 11:40:57 +02:00
fix: language enum coercion, preview logging, file picker
- form.py: convert language string to Language enum at all entry points - conversion_request.py: add _coerce_enums() for defense-in-depth - synthesize.py: fix NameError (lang -> language) in preview pipeline - voice.py: render LANGUAGE_DESCRIPTIONS keys as .value strings for Jinja - dashboard.js: open file picker on dropzone click - api.py: add logging to preview endpoint for debugging
This commit is contained in:
@@ -578,7 +578,7 @@ def template_options() -> Dict[str, Any]:
|
||||
)
|
||||
voice_catalog = build_voice_catalog()
|
||||
return {
|
||||
"languages": LANGUAGE_DESCRIPTIONS,
|
||||
"languages": {lang.value: label for lang, label in LANGUAGE_DESCRIPTIONS.items()},
|
||||
"voices": get_voices("kokoro"),
|
||||
"subtitle_formats": SUBTITLE_FORMATS,
|
||||
"supported_langs_for_subs": SUPPORTED_LANGUAGES_FOR_SUBTITLE_GENERATION,
|
||||
|
||||
Reference in New Issue
Block a user