crooked-dawn-90821
10/02/2025, 12:31 PMtall-airline-16756
10/02/2025, 12:31 PMtall-airline-16756
10/02/2025, 12:32 PMfrom livekit.plugins import groq
stt = groq.STT(
model="whisper-large-v3-turbo",
language="en"
)
• Using Google Cloud STT:
from livekit.plugins import google
stt = google.STT(
model="chirp",
spoken_punctuation=False,
language="en-US"
)
2. Large Language Model (LLM):
• Using Groq LLM:
llm = groq.LLM(
model="llama3-8b-8192"
)
• Using Cerebras via OpenAI plugin:
from livekit.plugins import openai
llm = openai.LLM.with_cerebras(
model="llama3.1-8b",
temperature=0.8
)
3. Text-to-Speech (TTS):
• Using Groq TTS:
tts = groq.TTS(
model="playai-tts",
voice="Arista-PlayAI"
)
Once you've defined these components, you can easily pass them into an AgentSession like this:
session = AgentSession(
stt=stt,
llm=llm,
tts=tts
)
If you'd like to dive deeper into the available parameters and supported models, I recommend checking out the plugin documentation for each provider. Feel free to reach out if you have any questions along the way—I'm here to help!
Sources: Groq and LiveKit | LiveKit Docs | Docs::Agents | Docs::Agents | livekit-agents/livekit/agents/inference/__init__.py | agents/src/inference/stt.tscrooked-dawn-90821
10/02/2025, 12:33 PMsession = AgentSession(
stt="assemblyai/universal-streaming:en",
llm="openai/gpt-4.1-mini",
tts="cartesia/sonic-2:9626c31c-bec5-4cca-baa8-f8ba9e84c8bc",
how can I learn more about it?tall-airline-16756
10/02/2025, 12:34 PM