Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ description = "Simple voice AI assistant built with LiveKit Agents for Python"
requires-python = ">=3.10, <3.15"

dependencies = [
"livekit-agents>=1.6.9",
"livekit-plugins-ai-coustics~=0.2",
"livekit-agents~=1.8",
"livekit-plugins-ai-coustics~=0.3",
"python-dotenv",
]

Expand Down
7 changes: 4 additions & 3 deletions src/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,14 @@ def __init__(self) -> None:
# See all available models at https://docs.livekit.io/agents/models/llm/
llm=inference.LLM(model="google/gemma-4-31b-it"),
# To use a realtime model instead of a voice pipeline, replace the LLM
# with a RealtimeModel and remove the STT/TTS from the AgentSession
# (Note: This is for the OpenAI Realtime API. For other providers, see https://docs.livekit.io/agents/models/realtime/)
# with a realtime model and remove the STT/TTS from the AgentSession
# (Note: This is for OpenAI GPT-Live, the recommended speech-to-speech
# model. For other providers, see https://docs.livekit.io/agents/models/realtime/)
# 1. Install livekit-agents[openai]
# 2. Set OPENAI_API_KEY in .env.local
# 3. Add `from livekit.plugins import openai` to the top of this file
# 4. Replace the llm argument with:
# llm=openai.realtime.RealtimeModel(voice="marin")
# llm=openai.realtime.GPTLiveModel(voice="marin"),
instructions=textwrap.dedent(
"""\
You are a friendly, reliable voice assistant that answers questions, explains topics, and completes tasks with available tools.
Expand Down
Loading