danemyers
06/14/2024, 1:03 AM\\b${filler}\\b
, "gi");
const matches = transcript.match(regex);
if (matches) {
fillerCount += matches.length;
}
});
// Log the filler count
if (fillerCount > 0) {
console.log(Filler words count: ${fillerCount}
);
setTotalFillerWords((prevCount) => prevCount + fillerCount);
But since the transcriber logs the transcript iteratively like this:
transcript user Um hi.
index.jsx:568 transcript user Um hi there.
index.jsx:568 transcript user Um hi there. How
index.jsx:568 transcript user Um hi there. How's
3index.jsx:568 transcript user Um hi there. How's it going?
fillerCount is going way higher than it should be. Is there some other way I can count filler words?Vapi
06/14/2024, 1:04 AMdanemyers
06/14/2024, 1:11 AMSahil
06/14/2024, 8:08 AMSahil
06/14/2024, 8:09 AMdanemyers
06/14/2024, 4:22 PMdanemyers
06/14/2024, 4:23 PMSahil
06/14/2024, 5:05 PMdanemyers
06/17/2024, 11:05 PMSahil
06/18/2024, 2:30 PMdanemyers
12/05/2024, 9:30 PMSahil
12/06/2024, 6:36 PMSahil
12/06/2024, 6:36 PMdanemyers
12/06/2024, 7:39 PM