Skip to content

Commit

Permalink
add(multimodal): emit user started speaking event
Browse files Browse the repository at this point in the history
  • Loading branch information
nbsp committed Dec 11, 2024
1 parent 428b62e commit 6aa701a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions agents/src/multimodal/multimodal_agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 6aa701a

Please sign in to comment.