Files
LittleWhiteBox/modules/fourth-wall/fw-voice.js

44 lines
1.9 KiB
JavaScript
Raw Normal View History

// ════════════════════════════════════════════════════════════════════════════
// 语音模块 - 常量与提示词指南
2026-01-01 00:23:27 +08:00
// ════════════════════════════════════════════════════════════════════════════
export const DEFAULT_VOICE = 'female_1';
export const DEFAULT_SPEED = 1.0;
2026-01-01 14:45:24 +08:00
export const VALID_EMOTIONS = ['happy', 'sad', 'angry', 'surprise', 'scare', 'hate'];
export const EMOTION_ICONS = {
happy: '😄', sad: '😢', angry: '😠', surprise: '😮', scare: '😨', hate: '🤢'
};
// ════════════════════════════════════════════════════════════════════════════
// 提示词指南
// ════════════════════════════════════════════
2026-01-01 14:45:24 +08:00
2026-01-01 00:23:27 +08:00
export const VOICE_GUIDELINE = `## 模拟语音
如需发送语音消息使用以下格式
[voice:情绪:语音内容]
### 情绪参数7选1
- = 平静/默认[voice::今天天气不错]
- happy = 开心/兴奋
- sad = 悲伤/低落
- angry = 生气/愤怒
- surprise = 惊讶/震惊
- scare = 恐惧/害怕
- hate = 厌恶/反感
### 标点辅助控制语气
2026-01-04 16:44:55 +08:00
- 拖长犹豫伤感
- 有力激动
- 更激动
- 疑问上扬
- 惊讶质问
- 撒娇轻快
- 拉长戏剧化
- 惊叫强烈
- 正常停顿
2026-01-01 00:23:27 +08:00
### 示例
[voice:happy:太好了终于见到你了]
2026-01-01 14:45:24 +08:00
[voice::不要]
2026-01-01 00:23:27 +08:00
注意voice部分需要在<msg>`;