mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-07-01 08:59:46 +02:00
Optimise requirements.txt and update pipecat imports
This commit is contained in:
parent
7501a3fb5a
commit
0345df6fbe
14 changed files with 536 additions and 152 deletions
|
|
@ -63,9 +63,7 @@ def create_tts_service(user_config, audio_config: "AudioConfig"):
|
|||
"""
|
||||
if user_config.tts.provider == ServiceProviders.DEEPGRAM.value:
|
||||
return DeepgramTTSService(
|
||||
api_key=user_config.tts.api_key,
|
||||
voice=user_config.tts.voice.value,
|
||||
sample_rate=24000,
|
||||
api_key=user_config.tts.api_key, voice=user_config.tts.voice.value
|
||||
)
|
||||
elif user_config.tts.provider == ServiceProviders.OPENAI.value:
|
||||
return OpenAITTSService(
|
||||
|
|
@ -91,7 +89,6 @@ def create_tts_service(user_config, audio_config: "AudioConfig"):
|
|||
api_key=user_config.tts.api_key,
|
||||
model=user_config.tts.model.value,
|
||||
voice=user_config.tts.voice.value,
|
||||
sample_rate=24000,
|
||||
)
|
||||
else:
|
||||
raise HTTPException(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue