-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.html
116 lines (104 loc) · 4.31 KB
/
index.html
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>WebRTC AI Voice Chat</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container full-height">
<div id="messagesContainer">
<div class="chat-container">
<div class="user-bar">
<div class="name d-flex">Style Guide - AI Assistant</div>
<div class="d-flex" style="float: right;">
<select class="form-control d-none" id="presets" onchange="changePreset()">
<option>v2/en_speaker_0</option>
<option>v2/en_speaker_1</option>
<option>v2/en_speaker_2</option>
<option>v2/en_speaker_3</option>
<option>v2/en_speaker_4</option>
<option>v2/en_speaker_5</option>
<option>v2/en_speaker_6</option>
<option>v2/en_speaker_7</option>
<option>v2/en_speaker_8</option>
<option>v2/en_speaker_9</option>
</select>
<select class="form-control d-none" style="display: none" id="models" onchange="changeModel()">
<option>phi3</option>
<option>mistral</option>
<option>llama3</option>
</select>
</div>
</div>
<div class="conversation">
<div class="conversation-container"></div>
<div class="status">
<div>
WebRTC Connection State: <span id="connectionStatus"></span>
</div>
</div>
<div class="conversation-compose">
<div class="emoji">
<button id="power" type="button" class="btn btn-link text-success">
<i class="fa-solid fa-power-off"></i>
</button>
</div>
<div class="input-msg">
<div class="wave d-none">
<ul>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
</div>
<div class="d-flex justify-content-center py-2">
<div class="processing d-none"></div>
</div>
</div>
<div class="photo">
<i class="fa-solid fa-camera d-none" onclick="uploadPhoto()"></i>
</div>
<div class="send">
<div class="circle start d-none" onclick="record()">
<i class="fa-solid fa-microphone"></i>
</div>
<div class="circle stop d-none" onclick="stopRecord()">
<i class="fa-solid fa-stop"></i>
</div>
<div class="circle wait">
<i class="fa-solid fa-hourglass-half"></i>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="media">
<audio id="remoteAudio" autoplay="autoplay"></audio>
</div>
<div class="option d-none">
<input id="use-stun" type="checkbox" checked/>
<label for="use-stun">Use STUN server</label>
</div>
<div class="file d-none">
<input type="file" />
</div>
<script src="client.js"></script>
</body>
</html>