My use case is a telephony agent, both in Spanish ...
# agents
s
My use case is a telephony agent, both in Spanish and in English. Can I support this from within one pipeline? So far, I have had to create two different agents with two different prompts (in spanish and english), and with two different pipelines (different STT and TTS language-models). Is this the way to go? I assume there has to be a more efficient way that code duplication. Thanks!
👀 1
b
I have a single agent that supports multiple languages. this is a code snippet where i pass the language parameter as a variable to the agent. my client can send the required language that the agent should speak.
Copy code
session = AgentSession(
        tts=cartesia.TTS(language=language, voice=voice, api_key="cartesian_api_key"),
        llm=openai.realtime.RealtimeModel(modalities=["text"]),
        vad=silero.VAD.load()
    )