Skip to content

Preemtive generation still not working with Soniox STT (turn detection mode=STT) #5766

@vvv-001

Description

@vvv-001

Bug Description

Hi,

Looking at this issue:
#5536

And this fix:
#5553

It seems that preemptive generation is still not working with the Soniox plugin. We keep getting this warning message and see that preemptive generation is not working:

21:30:05.112 WARNING livekit.agents preemptive generation enabled but chat context or tools have changed afteron_user_turn_completed

When for turn detection mode the livekit end of turn model is selected it works, but when STT is selected it doesn't work and the above warning keeps appearing. This should also work for STT mode actually.

Expected Behavior

We checked against our own custom Soniox STT plugin, and see correctly preemptive generation working in turn detection STT mode.

21:27:39.982 DEBUG livekit.agents using preemptive generation

Reproduction Steps

1. Use Soniox STT from livekit plugins
2. Set turn detection mode to STT

Operating System

MacOS, Linux

Models Used

Any LLM, Soniox STT

Package Versions

livekit agents and livekit plugins Soniox, OpenAI, Soniox TTS 1.5.8

Session/Room/Call IDs

No response

Proposed Solution

Additional Context

No response

Screenshots and Recordings

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions