From 6aa701ae1e47f950077c0d485f5068bfb5f7db6c Mon Sep 17 00:00:00 2001 From: aoife cassidy Date: Wed, 11 Dec 2024 16:39:51 +0200 Subject: [PATCH] add(multimodal): emit user started speaking event --- agents/src/multimodal/multimodal_agent.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/agents/src/multimodal/multimodal_agent.ts b/agents/src/multimodal/multimodal_agent.ts index f0090ccc..307a18c0 100644 --- a/agents/src/multimodal/multimodal_agent.ts +++ b/agents/src/multimodal/multimodal_agent.ts @@ -284,6 +284,7 @@ export class MultimodalAgent extends EventEmitter { }); this.#session.on('input_speech_started', (ev: any) => { + this.emit('user_started_speaking'); if (this.#playingHandle && !this.#playingHandle.done) { this.#playingHandle.interrupt();