feat: add voice resolution to domain layer, migrate WebUI imports

- Add formula_from_profile, resolve_profile_voice, resolve_voice_setting, resolve_voice_choice to domain/voice_resolution.py
- Add build_voice_catalog, filter_voice_catalog to domain/voice_catalog.py
- Update webui/routes/utils/voice.py to import from domain
- Update webui/routes/utils/form.py and voices.py to import from domain directly
- Update synthesize.py to use domain resolve_voice
- Add 29 tests for voice resolution functions
This commit is contained in:
Artem Akymenko
2026-07-30 10:58:23 +00:00
parent f802fb2af6
commit 9bf4f8e809
8 changed files with 658 additions and 172 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ from pathlib import Path
from werkzeug.datastructures import MultiDict
from abogen.webui.routes.utils.form import apply_prepare_form
from abogen.webui.routes.utils.voice import resolve_voice_setting
from abogen.domain.voice_resolution import resolve_voice_setting
from abogen.webui.service import PendingJob