Merge pull request #3298 from pipecat-ai/aleix/push-user-started-speaking-first

push UserStartedSpeakingFrame before interruption
This commit is contained in:
Aleix Conchillo Flaqué
2025-12-28 08:24:50 -08:00
committed by GitHub
6 changed files with 6 additions and 6 deletions

View File

@@ -104,7 +104,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):