How can I change agent language to latvian? I need...
# ask-ai
f
How can I change agent language to latvian? I need a Full speech to speech solution.
t
Thanks for reaching out, Edgar. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
To create a complete speech-to-speech solution in Latvian, here’s a helpful setup you can consider: • Speech-to-Text (STT): Deepgram's Nova-2 model is a great choice as it explicitly supports Latvian (language code: "lv"). You might also explore Google and Azure STT services, which support Latvian too. • Text-to-Speech (TTS): ElevenLabs could be a good option for Latvian TTS, although I’d recommend testing its Latvian capabilities to make sure it fits your needs. • Language Switching: You can configure your agent to switch to Latvian by dynamically updating the STT and TTS language settings. For example, set the STT language to "lv" and adjust the TTS language accordingly. Make sure you have valid API keys for LiveKit, Deepgram, ElevenLabs, and OpenAI. If you’d like, I’m here to guide you through detailed implementation steps or help with any configuration questions you might have! Sources: pipeline-tts/changing_language/elevenlabs_change_language.py | Deepgram STT | LiveKit docs | livekit-plugins/livekit-plugins-azure/livekit/plugins/azure/stt.py | Models | LiveKit Docs
f
I have installed agent-starter-python - can I use it as a basis for our Latvian speech to speech project?
t
I'm glad you're considering the
agent-starter-python
repository for your Latvian speech-to-speech project! It’s a great starting point that offers a flexible framework to bring together STT (Speech-to-Text), LLM (Language Model), and TTS (Text-to-Speech) components tailored to your needs. Here’s how you can move forward: • First, make sure the STT and TTS providers you choose support Latvian. For instance, Deepgram supports Latvian for STT, and ElevenLabs might be a good option for TTS—though it’s a good idea to test it out. • Remember to set the
language
parameter to "lv" (Latvian) in both your STT and TTS components to ensure everything runs smoothly. • If you find that there aren’t any built-in plugins for Latvian, don’t worry—you can always create a custom STT or TTS plugin to fit your project. If you’d like any help configuring specific plugins or want to double-check language support, please don’t hesitate to reach out. I’m here to support you every step of the way! Sources: Template System & Project Scaffolding | livekit/livekit_composite | DeepWik... | Spitch TTS plugin guide | LiveKit Docs | livekit-plugins/livekit-plugins-cartesia/livekit/plugins/cartesia/stt.py | Text-to-speech (TTS) models | LiveKit Docs | Voice AI quickstart | LiveKit docs
f
Ok let’s proceed with deepgram and eleven labs - can you tell me exactly which files to change and what should be my new code?
t
I'd love to help you set up
agent-starter-python
for Deepgram STT and ElevenLabs TTS with Latvian language support! To get started, could you please let me know: • Are you working with the default configuration files from the repository, or have you already made some custom changes? • Do you have your API keys ready for both Deepgram and ElevenLabs? Once I have these details, I’ll be able to guide you step-by-step on which files to update and what code changes to make. Looking forward to helping you get this up and running smoothly!
f
Yes I have my api keys and I’m working with default configuration files - no changes made
t
I don't have the answer you're looking for. You could also try asking your question: • in one of the other Slack channels or • to https://deepwiki.com/livekit/livekit_composite which is trained on all LiveKit source code If you find the answer, please post it here to help others!
f
I have installed agent-starter-python - can I use it as a basis for our Latvian speech to speech project?