Update index.html
Browse files- index.html +36 -18
index.html
CHANGED
|
@@ -1,19 +1,37 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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>
|