-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
64 lines (54 loc) · 1.89 KB
/
index.html
File metadata and controls
64 lines (54 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AI Operator - WebSocket Client</title>
<link rel="stylesheet" href="css/styles.css">
<!-- Load protobuf library first -->
<script src="https://cdn.jsdelivr.net/npm/protobufjs@7.X.X/dist/protobuf.min.js"></script>
</head>
<body>
<div class="container">
<header>
<h1>AI Operator</h1>
<p>A voice assistant powered by your imagination!</p>
</header>
<main>
<div id="progressText">Loading, wait...</div>
<div class="controls">
<button id="startAudioBtn" class="btn primary">Start Audio</button>
<button id="stopAudioBtn" class="btn secondary">Stop Audio</button>
</div>
<div class="audio-visualizer">
<h3>Voice Visualizer</h3>
<canvas id="visualizer"></canvas>
</div>
<div class="transcript">
<h3>Conversation Transcript</h3>
<div id="transcript-container"></div>
</div>
</main>
<footer>
<p>© 2025</p>
</footer>
</div>
<!-- Make sure scripts are loaded in the correct dependency order -->
<script src="js/config.js"></script>
<script src="js/state.js"></script>
<script src="js/transcript.js"></script>
<script src="js/audio-processing.js"></script>
<script src="js/visualizer.js"></script>
<script src="js/websocket.js"></script>
<!-- Load main.js last after all other modules are defined -->
<script src="js/main.js"></script>
<script>
// Initialize after all scripts are loaded
window.addEventListener('load', function() {
if (window.AI_MAIN && typeof window.AI_MAIN.initialize === 'function') {
window.AI_MAIN.initialize();
}
});
</script>
</body>
</html>