mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-19 08:28:10 +02:00
fix: sync Smallest AI voice dropdown with selected model (#451)
Add model_options to SmallestAITTSConfiguration's voice field so the UI renders the correct voice list per model — 15 standard voices for lightning_v3.1 and 6 premium voices (meher, rhea, aviraj, cressida, willow, maverick) for lightning_v3.1_pro. All 21 voice IDs verified against the Smallest AI API. The frontend's existing model_options machinery already handles dropdown filtering and auto-reset on model change, so no UI changes are needed.
This commit is contained in:
parent
e7b67e0efb
commit
bec8a23dfb
3 changed files with 21 additions and 2 deletions
|
|
@ -44,6 +44,7 @@ from .sarvam import (
|
|||
from .smallest import (
|
||||
SMALLEST_TTS_LANGUAGES,
|
||||
SMALLEST_TTS_MODELS,
|
||||
SMALLEST_TTS_PRO_VOICES,
|
||||
SMALLEST_TTS_VOICES,
|
||||
)
|
||||
from .speechmatics import SPEECHMATICS_STT_LANGUAGES
|
||||
|
|
@ -87,6 +88,7 @@ __all__ = [
|
|||
"SARVAM_V3_VOICES",
|
||||
"SMALLEST_TTS_LANGUAGES",
|
||||
"SMALLEST_TTS_MODELS",
|
||||
"SMALLEST_TTS_PRO_VOICES",
|
||||
"SMALLEST_TTS_VOICES",
|
||||
"SPEECHMATICS_STT_LANGUAGES",
|
||||
]
|
||||
|
|
|
|||
|
|
@ -16,6 +16,15 @@ SMALLEST_TTS_VOICES = (
|
|||
"mia",
|
||||
"maithili",
|
||||
)
|
||||
# Premium voices for lightning_v3.1_pro (American, British, Indian accents; English + Hindi only)
|
||||
SMALLEST_TTS_PRO_VOICES = (
|
||||
"meher",
|
||||
"rhea",
|
||||
"aviraj",
|
||||
"cressida",
|
||||
"willow",
|
||||
"maverick",
|
||||
)
|
||||
SMALLEST_TTS_LANGUAGES = (
|
||||
"en",
|
||||
"hi",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue