From 8f6313fb45dc0b7ada9973a6c8461d80eae59927 Mon Sep 17 00:00:00 2001 From: andreas Date: Wed, 27 Sep 2023 15:39:49 +0200 Subject: [PATCH] Change requested by Matthieu --- www/app/transcripts/useWebSockets.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/app/transcripts/useWebSockets.ts b/www/app/transcripts/useWebSockets.ts index 4251c9f0..cc5a6dde 100644 --- a/www/app/transcripts/useWebSockets.ts +++ b/www/app/transcripts/useWebSockets.ts @@ -31,7 +31,7 @@ export const useWebSockets = (transcriptId: string | null): UseWebSockets => { const text = textQueue[0]; setTranscriptText(text); - const WPM_READING = 200; // words per minute to read + const WPM_READING = 200 + (textQueue.length * 10); // words per minute to read const wordCount = text.split(/\s+/).length; const delay = (wordCount / WPM_READING) * 60 * 1000; console.log(`displaying "${text}" for ${delay}ms`);