mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-07-25 12:01:04 +02:00
feat: add custom sarvam tts voice
This commit is contained in:
parent
a2d9ed24ed
commit
7c919264f9
4 changed files with 61 additions and 18 deletions
|
|
@ -990,6 +990,7 @@ class SarvamTTSConfiguration(BaseTTSConfiguration):
|
|||
description="Sarvam voice name; must match the selected model's voice list.",
|
||||
json_schema_extra={
|
||||
"examples": SARVAM_V2_VOICES,
|
||||
"allow_custom_input": True,
|
||||
"model_options": {
|
||||
"bulbul:v2": SARVAM_V2_VOICES,
|
||||
"bulbul:v3": SARVAM_V3_VOICES,
|
||||
|
|
|
|||
|
|
@ -534,7 +534,7 @@ def create_tts_service(
|
|||
language = getattr(user_config.tts, "language", None)
|
||||
pipecat_language = language_mapping.get(language, Language.HI)
|
||||
|
||||
voice = getattr(user_config.tts, "voice", None) or "anushka"
|
||||
voice = (getattr(user_config.tts, "voice", None) or "anushka").strip().lower()
|
||||
speed = getattr(user_config.tts, "speed", None)
|
||||
settings_kwargs = {
|
||||
"model": user_config.tts.model,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue