Skip to content

Commit 802cebd

Browse files
Upgrade LLM model from GPT-4.1 to GPT-5.2 and aicoustics (#58)
* Upgrade LLM model from GPT-4.1 to GPT-5.2 * Switch noise cancellation to ai-coustics QUAIL_VF_L
1 parent 95bedcd commit 802cebd

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ requires-python = ">=3.10, <3.15"
1010

1111
dependencies = [
1212
"livekit-agents[silero,turn-detector]~=1.4",
13+
"livekit-plugins-ai-coustics",
1314
"livekit-plugins-noise-cancellation~=0.2",
1415
"python-dotenv",
1516
]

src/agent.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
inference,
1313
room_io,
1414
)
15-
from livekit.plugins import noise_cancellation, silero
15+
from livekit.plugins import ai_coustics, noise_cancellation, silero
1616
from livekit.plugins.turn_detector.multilingual import MultilingualModel
1717

1818
logger = logging.getLogger("agent")
@@ -72,7 +72,7 @@ async def my_agent(ctx: JobContext):
7272
stt=inference.STT(model="deepgram/nova-3", language="multi"),
7373
# A Large Language Model (LLM) is your agent's brain, processing user input and generating a response
7474
# See all available models at https://docs.livekit.io/agents/models/llm/
75-
llm=inference.LLM(model="openai/gpt-4.1-mini"),
75+
llm=inference.LLM(model="openai/gpt-5.2-chat-latest"),
7676
# Text-to-speech (TTS) is your agent's voice, turning the LLM's text into speech that the user can hear
7777
# See all available models as well as voice selections at https://docs.livekit.io/agents/models/tts/
7878
tts=inference.TTS(
@@ -115,7 +115,9 @@ async def my_agent(ctx: JobContext):
115115
noise_cancellation.BVCTelephony()
116116
if params.participant.kind
117117
== rtc.ParticipantKind.PARTICIPANT_KIND_SIP
118-
else noise_cancellation.BVC()
118+
else ai_coustics.audio_enhancement(
119+
model=ai_coustics.EnhancerModel.QUAIL_VF_L
120+
)
119121
),
120122
),
121123
),

0 commit comments

Comments
 (0)