commcoach: unused totalWords entfernt
Made-with: Cursor
This commit is contained in:
parent
251a9ca1ea
commit
cb45ecd52b
1 changed files with 0 additions and 1 deletions
|
|
@ -182,7 +182,6 @@ export const CommcoachDossierView: React.FC = () => {
|
|||
const preview = [...transcriptPartsRef.current, currentInterim].join(' ').trim();
|
||||
setLiveTranscript(preview);
|
||||
if (preview) _resetSilenceTimer();
|
||||
const totalWords = preview.split(/\s+/).filter(Boolean).length;
|
||||
const finalizedWords = transcriptPartsRef.current.join(' ').split(/\s+/).filter(Boolean).length;
|
||||
if (coach.isTtsPlayingRef.current && finalizedWords >= MIN_WORDS_TO_INTERRUPT) {
|
||||
coach.stopTts();
|
||||
|
|
|
|||
Loading…
Reference in a new issue