bored-thailand-86490
06/26/2025, 9:50 AMtall-airline-16756
06/26/2025, 9:51 AMtall-airline-16756
06/26/2025, 9:51 AMfrom livekit.plugins import google
assistant = VoiceAssistant(
vad=silero.VAD.load(),
stt=google.STT(
model="chirp", # Choose from models like "chirp", "long", "short", etc.
spoken_punctuation=True,
languages="en-US" # Default is en-US
),
llm=openai.LLM(model=settings.OPENAI_MODEL),
tts=openai.tts.TTS(
model="gpt-4o-mini-tts",
voice="alloy",
),
chat_ctx=chat_context,
turn_detector=turn_detector.EOUModel(),
min_endpointing_delay=0.8,
)
Additional Dependencies
To ensure compatibility with your existing stack, you need to include the following additional dependency:
• livekit-plugins-google
(compatible with your current LiveKit versions).
Authentication
For Google STT to work, you need to provide Google Cloud credentials. This can be done by:
• Using the GOOGLE_APPLICATION_CREDENTIALS
environment variable to point to a JSON credentials file.
• Passing credentials directly in the credentials_info
dictionary.
• Using Application Default Credentials.
Let me know if you need further assistance!
Sources: GitHub::livekit::agents | livekit-plugins/livekit-plugins-groq/livekit/plug... | Google integration guide | LiveKit Docsbored-thailand-86490
06/26/2025, 9:52 AMtall-airline-16756
06/26/2025, 9:52 AM