feat(voice-recognition): add speech recognition and emotion-based video switching

Implement voice recognition functionality that displays transcript in a styled container. Add emotion analysis to switch videos based on detected positive/negative keywords in speech. Includes UI updates for transcript display and microphone interaction.
This commit is contained in:
你的名字
2025-07-16 17:37:34 +08:00
parent 2ea922f9db
commit 6275414186
3 changed files with 142 additions and 20 deletions

View File

@@ -38,6 +38,11 @@
</div>
</header>
<!-- 语音识别结果显示区域 -->
<div class="transcript-container">
<p id="transcript"></p>
</div>
<!-- 底部麦克风和链接 -->
<footer class="bottom-bar">
<button class="mic-button" id="mic-button" aria-label="Start Listening">