From ac655fc2c1e448f645e2b07af73f82e9301b44ad Mon Sep 17 00:00:00 2001 From: Mathieu Virbel Date: Tue, 26 Sep 2023 15:09:30 -0400 Subject: [PATCH] Add some debug --- www/app/transcripts/useWebSockets.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/www/app/transcripts/useWebSockets.ts b/www/app/transcripts/useWebSockets.ts index ee15540d..4251c9f0 100644 --- a/www/app/transcripts/useWebSockets.ts +++ b/www/app/transcripts/useWebSockets.ts @@ -34,6 +34,7 @@ export const useWebSockets = (transcriptId: string | null): UseWebSockets => { const WPM_READING = 200; // 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`); setTimeout(() => { setIsProcessing(false); setTextQueue((prevQueue) => prevQueue.slice(1));