mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-20 20:29:06 +00:00
Add some debug
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user