diff --git a/pyproject.toml b/pyproject.toml index 87520d3..c79ce74 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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", ] diff --git a/src/agent.py b/src/agent.py index 17e6a91..8d70488 100644 --- a/src/agent.py +++ b/src/agent.py @@ -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.