atlury commited on
Commit
1141286
·
verified ·
1 Parent(s): 6a0d3d7

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +12 -4
index.html CHANGED
@@ -4,9 +4,13 @@
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
  <title>Voice Chat Bot with Advanced Echo Cancellation</title>
7
- <script src="https://cdn.jsdelivr.net/npm/onnxruntime-web/dist/ort.js"></script>
8
- <script src="https://cdn.jsdelivr.net/npm/@ricky0123/[email protected]/dist/bundle.min.js"></script>
9
- <script src="https://cdn.jsdelivr.net/npm/@xenova/transformers@2.17.2"></script>
 
 
 
 
10
  <style>
11
  body {
12
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
@@ -222,9 +226,13 @@
222
  const barHeight = dataArray[i] / 2;
223
  bars[i].style.height = barHeight + 'px';
224
  }
225
- animationId = requestAnimationFrame(updateVisualizer);
 
 
 
226
  }
227
 
 
228
  async function initializePipelines() {
229
  try {
230
 
 
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
  <title>Voice Chat Bot with Advanced Echo Cancellation</title>
7
+
8
+ // BELOW 3 Lines were done by RAHUL ATLURY
9
+ <link rel="preload" href="https://cdn.jsdelivr.net/npm/onnxruntime-web/dist/ort.js" as="script">
10
+ <link rel="preload" href="https://cdn.jsdelivr.net/npm/@ricky0123/[email protected]/dist/bundle.min.js" as="script">
11
+ <link rel="preload" href="https://cdn.jsdelivr.net/npm/@xenova/[email protected]" as="script">
12
+
13
+
14
  <style>
15
  body {
16
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
 
226
  const barHeight = dataArray[i] / 2;
227
  bars[i].style.height = barHeight + 'px';
228
  }
229
+ // Use setTimeout instead of requestAnimationFrame to reduce update frequency - RAHUL ATLURY
230
+ animationId = setTimeout(updateVisualizer, 50); // Update every 50ms - RAHUL ATLURY
231
+
232
+ //animationId = requestAnimationFrame(updateVisualizer);
233
  }
234
 
235
+
236
  async function initializePipelines() {
237
  try {
238