how to use end of utterance model for german langu...
# ask-ai
b
how to use end of utterance model for german language?
t
Thanks for reaching out, Mohammed. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Here’s a simple way to use the End of Utterance (EOU) model for German in LiveKit. Just follow these steps: 1. Install the Required Package: Make sure you have the
livekit-plugins-turn-detector
installed. You can easily add it with pip:
pip install livekit-plugins-turn-detector
2. Import the Multilingual Model: Bring in the
MultilingualModel
from the turn detector plugin—it supports German and a bunch of other languages too:
from livekit.plugins.turn_detector.multilingual import MultilingualModel
3. Instantiate the MultilingualModel: Create an instance of
MultilingualModel
to handle German language detection smoothly:
turn_detector = MultilingualModel()
4. Integrate with Agent Session: Use the
MultilingualModel
when setting up your
AgentSession
. Just make sure your speech-to-text (STT) supports German:
Copy code
session = AgentSession(
    stt=gladia.STT(languages=["de", "en"]),  # Add German and any other languages you need
    turn_detection=MultilingualModel(),
)
5. Download Model Files: Before you run your agent, don’t forget to download the necessary model files:
python your_agent.py download-files
Follow these steps, and you’ll have the EOU model working for German in your LiveKit app in no time—making turn detection more accurate and your app even better!