Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion src/eva/assistant/pipeline/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
from pipecat.services.cartesia.tts import CartesiaTTSService
from pipecat.services.deepgram.flux.stt import DeepgramFluxSTTService
from pipecat.services.deepgram.stt import DeepgramSTTService
from pipecat.services.deepgram.tts import DeepgramTTSService
from pipecat.services.elevenlabs.stt import CommitStrategy, ElevenLabsRealtimeSTTService
from pipecat.services.elevenlabs.tts import ElevenLabsTTSService
from pipecat.services.llm_service import LLMService
Expand Down Expand Up @@ -343,9 +344,18 @@ def create_tts_service(
xtts_tts._settings.language = language_code
return xtts_tts

elif model_lower == "deepgram":
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think @katstankiewicz wanted to keep an alphabetical order in this file?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah ok got it. will update

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed!

logger.info(f"Using Deepgram TTS: {params['model']}")
return DeepgramTTSService(
api_key=api_key,
model=params["model"],
voice=params.get("voice", "aura-2-helena-en"),
sample_rate=SAMPLE_RATE,
)

else:
raise ValueError(
f"Unknown TTS model: {model}. Available: cartesia, chatterbox, elevenlabs, gemini, kokoro, nvidia-baseten, openai, xtts"
f"Unknown TTS model: {model}. Available: cartesia, chatterbox, deepgram, elevenlabs, gemini, kokoro, nvidia-baseten, openai, xtts"
)


Expand Down
Loading