Skip to content

Commit e5593c2

Browse files
committed
models
1 parent 8614ea8 commit e5593c2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/agent.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
inference,
1717
)
1818
from livekit.plugins import noise_cancellation, silero
19-
from livekit.plugins.turn_detector.english import EnglishModel
19+
from livekit.plugins.turn_detector.multilingual import MultilingualModel
2020

2121
logger = logging.getLogger("agent")
2222

@@ -68,13 +68,13 @@ async def entrypoint(ctx: JobContext):
6868
llm="azure/gpt-4o-mini",
6969
# Speech-to-text (STT) is your agent's ears, turning the user's speech into text that the LLM can understand
7070
# See all available models at https://docs.livekit.io/agents/models/stt/
71-
stt=inference.STT(language="en"),
71+
stt=inference.STT(language="multi"),
7272
# Text-to-speech (TTS) is your agent's voice, turning the LLM's text into speech that the user can hear
7373
# See all available models as well as voice selections at https://docs.livekit.io/agents/models/tts/
74-
tts="cartesia/sonic-2:6f84f4b8-58a2-430c-8c79-688dad597532",
74+
tts="cartesia/sonic-2:f786b574-daa5-4673-aa0c-cbe3e8534c02",
7575
# VAD and turn detection are used to determine when the user is speaking and when the agent should respond
7676
# See more at https://docs.livekit.io/agents/build/turns
77-
turn_detection=EnglishModel(),
77+
turn_detection=MultilingualModel(),
7878
vad=ctx.proc.userdata["vad"],
7979
# allow the LLM to generate a response while waiting for the end of turn
8080
# See more at https://docs.livekit.io/agents/build/audio/#preemptive-generation

0 commit comments

Comments
 (0)