enough-sunset-14907
06/06/2025, 1:55 AMtall-airline-16756
06/06/2025, 1:55 AMtall-airline-16756
06/06/2025, 1:55 AMpip install "livekit-agents[groq]~=1.0"
Then, add your Groq API key to your .env file:
GROQ_API_KEY=<your groq api key>
Here is a sample code snippet for initializing an AgentSession with Groq components:
from livekit.plugins import groq
# ...
# in your entrypoint function
session = AgentSession(
stt=groq.STT(
model="whisper-large-v3-turbo",
language="en",
),
llm=groq.LLM(
model="llama3-8b-8192"
),
tts=groq.TTS(
model="playai-tts",
voice="Arista-PlayAI",
),
# ... vad, turn_detection, etc.
)
This setup configures a complete voice AI pipeline using Groq's services for speech-to-text, language model processing, and text-to-speech capabilities. Let me know if you need further assistance! Sources: Groq integration guide | LiveKit Docsenough-sunset-14907
06/06/2025, 1:56 AMtall-airline-16756
06/06/2025, 1:57 AM