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

44 lines
1.9 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// ════════════════════════════════════════════════════════════════════════════
// 语音模块 - 常量与提示词指南
// ════════════════════════════════════════════════════════════════════════════
export const DEFAULT_VOICE = 'female_1';
export const DEFAULT_SPEED = 1.0;
export const VALID_EMOTIONS = ['happy', 'sad', 'angry', 'surprise', 'scare', 'hate'];
export const EMOTION_ICONS = {
happy: '😄', sad: '😢', angry: '😠', surprise: '😮', scare: '😨', hate: '🤢'
};
// ════════════════════════════════════════════════════════════════════════════
// 提示词指南
// ════════════════════════════════════════════
export const VOICE_GUIDELINE = `## 模拟语音
如需发送语音消息,使用以下格式:
[voice:情绪:语音内容]
### 情绪参数7选1
- 空 = 平静/默认(例:[voice::今天天气不错]
- happy = 开心/兴奋
- sad = 悲伤/低落
- angry = 生气/愤怒
- surprise = 惊讶/震惊
- scare = 恐惧/害怕
- hate = 厌恶/反感
### 标点辅助控制语气:
- …… 拖长、犹豫、伤感
- !有力、激动
- 更激动
- 疑问、上扬
- ?!惊讶质问
- 撒娇、轻快
- —— 拉长、戏剧化
- ——! 惊叫、强烈
- ,。 正常停顿
### 示例:
[voice:happy:太好了!终于见到你了~]
[voice::——啊!——不要!]
注意voice部分需要在<msg>内`;