Skip to content

Commit 66c79a6

Browse files
committed
Switch Deepgram STT to nova-3 multi
1 parent fba3ed2 commit 66c79a6

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

src/agent.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ async def my_agent(ctx: JobContext):
6969
session = AgentSession(
7070
# Speech-to-text (STT) is your agent's ears, turning the user's speech into text that the LLM can understand
7171
# See all available models at https://docs.livekit.io/agents/models/stt/
72-
stt=inference.STT(model="deepgram/flux-general", language="en"),
72+
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/
7575
llm=inference.LLM(model="openai/gpt-4.1-mini"),
@@ -111,9 +111,12 @@ async def my_agent(ctx: JobContext):
111111
room=ctx.room,
112112
room_options=room_io.RoomOptions(
113113
audio_input=room_io.AudioInputOptions(
114-
noise_cancellation=lambda params: noise_cancellation.BVCTelephony()
115-
if params.participant.kind == rtc.ParticipantKind.PARTICIPANT_KIND_SIP
116-
else noise_cancellation.BVC(),
114+
noise_cancellation=lambda params: (
115+
noise_cancellation.BVCTelephony()
116+
if params.participant.kind
117+
== rtc.ParticipantKind.PARTICIPANT_KIND_SIP
118+
else noise_cancellation.BVC()
119+
),
117120
),
118121
),
119122
)

0 commit comments

Comments
 (0)