feat: add voice selectors in elevenlabs (#88)

This commit is contained in:
Abhishek 2025-12-25 15:05:53 +05:30 committed by GitHub
parent 480e8a5f60
commit 45c5b7c304
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
22 changed files with 978 additions and 166 deletions

View file

@ -11,10 +11,8 @@ from api.db.models import UserModel
from api.schemas.user_configuration import UserConfiguration
from api.services.auth.stack_auth import stackauth
from api.services.configuration.registry import (
DograhLLMModel,
DograhSTTModel,
DograhTTSModel,
DograhVoice,
ServiceProviders,
)
@ -244,13 +242,13 @@ async def create_user_configuration_with_mps_key(
"llm": {
"provider": ServiceProviders.DOGRAH.value,
"api_key": service_key,
"model": DograhLLMModel.DEFAULT.value, # Default model
"model": "default", # Default model
},
"tts": {
"provider": ServiceProviders.DOGRAH.value,
"api_key": service_key,
"model": DograhTTSModel.DEFAULT.value, # Default model
"voice": DograhVoice.DEFAULT.value, # Default voice
"voice": "default", # Default voice
},
"stt": {
"provider": ServiceProviders.DOGRAH.value,