push UserStartedSpeakingFrame before interruption

This commit is contained in:
Aleix Conchillo Flaqué
2025-12-24 15:33:11 -08:00
parent ee35ea0966
commit 260b7e7959
6 changed files with 6 additions and 6 deletions

View File

@@ -98,7 +98,7 @@ async def run_bot(transport: BaseTransport, runner_args: RunnerArguments):
@stt.event_handler("on_speech_started")
async def on_speech_started(stt, *args, **kwargs):
await task.queue_frames([InterruptionFrame(), UserStartedSpeakingFrame()])
await task.queue_frames([UserStartedSpeakingFrame(), InterruptionFrame()])
@stt.event_handler("on_utterance_end")
async def on_utterance_end(stt, *args, **kwargs):