mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-07 07:55:16 +02:00
chore: add language option for Rime
This commit is contained in:
parent
e255b33813
commit
e04ce4e852
2 changed files with 17 additions and 0 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue