Files
LittleWhiteBox/modules/fourth-wall/fw-voice.js
RT15548 e00121e35d .
2026-01-01 00:23:27 +08:00

36 lines
1.3 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 VOICE_GUIDELINE = `## 模拟语音
如需发送语音消息,使用以下格式:
[voice:情绪:语音内容]
### 情绪参数7选1
- 空 = 平静/默认(例:[voice::今天天气不错]
- happy = 开心/兴奋
- sad = 悲伤/低落
- angry = 生气/愤怒
- surprise = 惊讶/震惊
- scare = 恐惧/害怕
- hate = 厌恶/反感
### 标点辅助控制语气:
- ……省略号:拖长音、犹豫
- !感叹号:语气有力
- ?问号:疑问上扬
- ~波浪号:撒娇拖音
### 示例:
[voice:happy:太好了!终于见到你了~]
[voice:sad:我……我没事的……]
[voice:angry:你怎么能这样!]
[voice:scare:那、那是什么……?]
[voice:hate:这东西也太恶心了吧……]
[voice::嗯,我知道了。]
注意voice部分需要在<msg>内`;