chore: add language option for Rime

This commit is contained in:
Abhishek Kumar 2026-04-07 18:32:09 +05:30
parent e255b33813
commit e04ce4e852
2 changed files with 17 additions and 0 deletions

View file

@ -591,6 +591,7 @@ class CambTTSConfiguration(BaseTTSConfiguration):
RIME_TTS_MODELS = ["arcana", "mistv3", "mistv2", "mist"]
RIME_TTS_LANGUAGES = ["en", "de", "fr", "es", "hi"]
@register_tts
@ -607,6 +608,10 @@ class RimeTTSConfiguration(BaseTTSConfiguration):
speed: float = Field(
default=1.0, ge=0.5, le=2.0, description="Speech speed multiplier"
)
language: str = Field(
default="en",
json_schema_extra={"examples": RIME_TTS_LANGUAGES, "allow_custom_input": True},
)
SPEACHES_TTS_MODELS = ["hexgrad/Kokoro-82M"]