mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-19 08:28:10 +02:00
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.
45 lines
693 B
Python
45 lines
693 B
Python
SMALLEST_TTS_MODELS = ("lightning_v3.1", "lightning_v3.1_pro")
|
|
SMALLEST_TTS_VOICES = (
|
|
"sophia",
|
|
"avery",
|
|
"liam",
|
|
"lucas",
|
|
"olivia",
|
|
"ryan",
|
|
"freya",
|
|
"william",
|
|
"devansh",
|
|
"arjun",
|
|
"niharika",
|
|
"maya",
|
|
"dhruv",
|
|
"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",
|
|
"fr",
|
|
"de",
|
|
"es",
|
|
"it",
|
|
"nl",
|
|
"pl",
|
|
"ru",
|
|
"ar",
|
|
"bn",
|
|
"gu",
|
|
"he",
|
|
"kn",
|
|
"mr",
|
|
"ta",
|
|
)
|