average-account-59618
08/04/2025, 2:04 PMtall-airline-16756
08/04/2025, 2:04 PMtall-airline-16756
08/04/2025, 2:05 PMlanguage parameter. Setting it to "multi" enables automatic language detection.
2. Language Detection: The STT plugin detects the language of the user's speech using the underlying STT service, such as Deepgram.
3. Communication to Turn Detection Module: The detected language is passed to the MultilingualModel, which processes the text based on the identified language for accurate turn detection.
Example Configuration:
session = AgentSession(
turn_detection=MultilingualModel(),
stt=deepgram.STT(model="nova-3", language="multi"),
# ... other configurations
)
This setup ensures that the STT automatically detects the language and passes it to the MultilingualModel for effective turn detection.average-account-59618
08/04/2025, 2:07 PMtall-airline-16756
08/04/2025, 2:08 PMsession = AgentSession(
turn_detection=MultilingualModel(),
stt=deepgram.STT(model="nova-3", language="es"), # Just specify your language here
)
If you’d rather have it detect the language automatically, you can simply set the STT plugin’s language parameter to "multi".
Just a heads-up: if the language you pick isn’t supported or if the STT plugin doesn’t correctly identify the language, the turn detection might not work quite right.
Sources: LiveKit turn detector plugin | LiveKit Docs | LiveKit turn detector plugin | LiveKit Docsaverage-account-59618
08/04/2025, 3:57 PMtall-airline-16756
08/04/2025, 3:58 PM