vijjj1 commited on
Commit
4a543a0
·
verified ·
1 Parent(s): 7134485

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +36 -18
index.html CHANGED
@@ -1,19 +1,37 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  </html>
 
1
+ <!DOCTYPE html>
2
+ <html lang="zh">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <title>Sesame AI 中文语音助手</title>
6
+ <style>
7
+ body { font-family: sans-serif; padding: 20px; }
8
+ button { padding: 10px 15px; margin: 5px; font-size: 16px; cursor: pointer; }
9
+ </style>
10
+ </head>
11
+ <body>
12
+
13
+ <h2>Sesame AI 中文语音助手(实时语音 + 情绪 + 字幕)</h2>
14
+
15
+ <h4>选择情绪风格:</h4>
16
+ <button onclick="setEmotion('wenrou')">温柔</button>
17
+ <button onclick="setEmotion('sajiao')">撒娇</button>
18
+ <button onclick="setEmotion('tiaopi')">调皮</button>
19
+ <button onclick="setEmotion('nuanxin')">暖心</button>
20
+
21
+ <p>当前情绪: <span id="emotionLabel">wenrou(温柔)</span></p>
22
+
23
+ <button id="startBtn">🎤 开始讲话</button>
24
+ <button id="stopBtn">🛑 停止</button>
25
+
26
+ <h3>你的话:</h3>
27
+ <div id="userSubtitle" style="font-size:18px; color:#555;"></div>
28
+
29
+ <h3>AI:</h3>
30
+ <div id="aiSubtitle" style="font-size:20px; color:#000; font-weight:bold;"></div>
31
+
32
+ <h3>语音回复:</h3>
33
+ <audio id="player" controls></audio>
34
+
35
+ <script src="script.js"></script>
36
+ </body>
37
  </html>