Skip to content

Commit 115211f

Browse files
authored
Update worker.js
1 parent 342997e commit 115211f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

worker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ self.postMessage({ status: "loading_model_ready", voices: tts.voices, device });
3838

3939
// --- THIS IS THE MEMORY-SAFE QUEUE LOGIC ---
4040
let bufferQueueSize = 0;
41-
const MAX_QUEUE_SIZE = 12; // Work ahead by 6 chunks (This is already set correctly)
41+
const MAX_QUEUE_SIZE = 6; // Work ahead by 6 chunks (This is already set correctly)
4242
let shouldStop = false;
4343
// --- END QUEUE LOGIC ---
4444

0 commit comments

Comments
 (0)