eou-probability-checker
v1.0.9
Published
Simple End of Utterance (EOU) detection using LiveKit's ML model. Tells you the probability that someone is done speaking.
Maintainers
Readme
EOU (End of utterance) Probability Checker
Simple End of Utterance (EOU) detection using LiveKit's ML model. Tells you the probability that someone is done speaking.
Install
npm install eou-probability-checkerDownloading the ML Model
If the model isnt in the src directory then you can download it using:
npm run download-modelUsage
import getEOU from 'eou-probability-checker';
const chat = [
{ role: "user", content: "Hello, how are you?" },
{ role: "assistant", content: "Hi! I'm good, thanks. How can I help you today?" },
{ role: "user", content: "I was wondering if you could tell me a joke" },
];
// Gets EOU probability for the last message, uses prior messages for accurate results.
const probability = await getEOU(chat);
console.log(probability); // 0-1Higher numbers = more likely they're done speaking.
