-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathcharacter.html
More file actions
199 lines (180 loc) · 5.68 KB
/
character.html
File metadata and controls
199 lines (180 loc) · 5.68 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
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, height=device-height, user-scalable=0" />
<link rel="icon" href="common/favicon.ico" type="image/x-icon">
<title>MatesX</title>
<link href="css/material-icons.css" rel="stylesheet">
<style>
body {
font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
background-color: transparent;
color: transparent;
overflow: hidden;
height: 100vh;
display: flex;
flex-direction: column;
margin: 0;
}
.title-bar {
display: flex;
align-items: center;
gap: 15px;
padding: 12px 20px;
background-color: #f5f5f5;
border-bottom: 1px solid #e0e0e0;
font-family: Arial, sans-serif;
z-index: 10;
position: relative;
}
#api-key {
flex: 1;
padding: 8px 12px;
border: 1px solid #ccc;
border-radius: 20px;
font-size: 14px;
min-width: 55%;
}
#api-key:focus {
outline: none;
border-color: #4a90e2;
box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}
select {
padding: 8px 12px;
border: 1px solid #ccc;
border-radius: 20px;
font-size: 14px;
background-color: white;
cursor: pointer;
min-width: 35%;
}
select:focus {
outline: none;
border-color: #4a90e2;
box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}
.main-container {
background-color: transparent;
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
position: relative;
overflow: hidden;
height: 100%;
}
#background-container {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow: hidden;
z-index: 1;
}
#background-video,
#background-image {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
min-width: 100%;
min-height: 100%;
width: auto;
height: auto;
object-fit: cover;
}
#background-image {
display: none;
}
#foreground-container {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 2;
display: flex;
align-items: center;
justify-content: center;
}
#canvas_video {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: contain;
}
#canvas_gl {
position: absolute;
top: 100px;
left: 100px;
width: 180px;
height: 180px;
opacity: 0.001;
}
#screen {
position: absolute;
bottom: -1000;
right: -1000;
width: 1px;
height: 1px;
}
#screen2 {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
border: none;
z-index: 5;
/* display: none; */
}
</style>
</head>
<body>
<!-- 标题栏 -->
<div class="title-bar">
<input type="text" id="api-key" placeholder="输入您的阿里百炼API密钥">
<select id="voice-select">
<option value="longanrou">温柔闺蜜女</option>
<option value="longqiang_v2">浪漫风情女</option>
<option value="longhan_v2">温暖痴情男</option>
<option value="longxing_v2">温婉邻家女</option>
<option value="longfeifei_v2">甜美娇气女</option>
<option value="longxiaocheng_v2">磁性低音男</option>
<option value="longzhe_v2">呆板大暖男</option>
<option value="longyan_v2">温暖春风女</option>
<option value="longtian_v2">磁性理智男</option>
<option value="longze_v2">温暖元气男</option>
<option value="longshao_v2">积极向上男</option>
<option value="longhao_v2">多情忧郁男</option>
<option value="kabuleshen_v2">实力歌手男</option>
<option value="longjielidou_v2">阳光顽皮男</option>
<option value="longling_v2">稚气呆板女</option>
</select>
</div>
<div class="main-container">
<div id="background-container">
<video id="background-video" autoplay loop muted></video>
<img id="background-image" src="" alt="背景图片">
</div>
<div id="foreground-container">
<canvas id="canvas_video"></canvas>
</div>
</div>
<canvas id="canvas_gl" width="180" height="180"></canvas>
<div id="screen"></div>
<iframe id="screen2" src="dialog-realtime.html" frameborder="0"></iframe>
<script src="js/pako.min.js"></script>
<script src="js/localStorageManager.js"></script>
<script src="js/DHLiveMini2.js"></script>
<script src="js/MiniLive.js"></script>
<script src="js/MiniMateLoader_public.js"></script>
</body>
</html>