deepgram-devs / deepgram-ai-agent-demo

Deepgram Conversational AI demo
https://emilyai.deepgram.com
MIT License
349 stars 97 forks source link

Option to deactivate barge-in #27

Open eusthace811 opened 8 months ago

eusthace811 commented 8 months ago

Proposed changes

Deactivate barge-in

Context

At times (e.g. Educational content), it's necessary to ensure that the queue is processed without interruptions. Currently, adding messages to the queue can cause disruptions, leading to the current audio being interrupted and restarted.

BTW Love your work Guys.

Thanks.

eusthace811 commented 8 months ago

Let me know if you can help here, I couldn't figure out yet.

lukeocodes commented 7 months ago

I think we would need to move VAD off of the custom hook and use the vad-web library itself to be able to enable/disable it. If you're interested in figuring it out, you may want to look at ricky0123/vad for JavaScript (not React/Next.js) and see about how you might use that in our own custom hook, or see if he has a way to enable/disable the library from the options