feat(frontend): engine dropdown + emotion dual mode
- Replace engine buttons with <select> dropdown - Add ENGINE_CONFIG for centralized engine management - Add global/per-sentence emotion UI mode switching - Add #engine-select dark theme styles - Remove old .switch-btn and .engine-icon styles - Reset emotion state on engine switch
This commit is contained in:
+16
-15
@@ -37,24 +37,25 @@
|
||||
<div class="toolbar">
|
||||
<div class="toolbar-group">
|
||||
<span class="toolbar-label">引擎:</span>
|
||||
<button class="switch-btn active" data-engine="minimax">
|
||||
<span class="engine-icon minimax-icon">M</span>
|
||||
MiniMax
|
||||
</button>
|
||||
<button class="switch-btn" data-engine="cosyvoice">
|
||||
<span class="engine-icon cosyvoice-icon">C</span>
|
||||
CosyVoice
|
||||
</button>
|
||||
<select id="engine-select">
|
||||
<option value="minimax">MiniMax</option>
|
||||
<option value="cosyvoice">CosyVoice</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="toolbar-group emotion-group">
|
||||
<span class="toolbar-label">情绪:</span>
|
||||
<button class="emotion-btn" data-emotion="happy" title="开心愉快">😊</button>
|
||||
<button class="emotion-btn" data-emotion="sad" title="悲伤">😢</button>
|
||||
<button class="emotion-btn" data-emotion="angry" title="激昂">🔥</button>
|
||||
<button class="emotion-btn" data-emotion="surprised" title="惊讶">❗</button>
|
||||
<button class="emotion-btn" data-emotion="fearful" title="害怕">😨</button>
|
||||
<button class="emotion-btn" data-emotion="disgusted" title="厌恶">😒</button>
|
||||
<span class="toolbar-hint">← 选择整段语音的情绪风格</span>
|
||||
<div id="emotion-global">
|
||||
<button class="emotion-btn" data-emotion="happy" title="开心愉快">😊</button>
|
||||
<button class="emotion-btn" data-emotion="sad" title="悲伤">😢</button>
|
||||
<button class="emotion-btn" data-emotion="angry" title="激昂">🔥</button>
|
||||
<button class="emotion-btn" data-emotion="surprised" title="惊讶">❗</button>
|
||||
<button class="emotion-btn" data-emotion="fearful" title="害怕">😨</button>
|
||||
<button class="emotion-btn" data-emotion="disgusted" title="厌恶">😒</button>
|
||||
<span class="toolbar-hint">← 选择整段语音的情绪风格</span>
|
||||
</div>
|
||||
<div id="emotion-per-sentence" style="display:none">
|
||||
逐句标注模式:选中句子后点击情绪标签(即将支持)
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user