休眠时段操作小程序加提示,博士角色语速调快一点,

刷自己卡没有留言情况下播放最后一条留言,增加角色切换提示音。
This commit is contained in:
HycJack
2026-05-26 01:50:23 +08:00
parent be58ca65b0
commit f9f1183e4b
6 changed files with 93 additions and 10 deletions

View File

@@ -112,14 +112,16 @@ class MiniMaxTTS(TTS, BaseService):
"Authorization": f"Bearer {self.api_key}",
"Content-Type": "application/json"
}
speed = 1.0
if self.selected_role and "boshi" in self.selected_role:
speed = 2.0
payload = {
"model": self.model,
"text": text,
"stream": True,
"voice_setting": {
"voice_id": self.voice_id,
"speed": 1.0,
"speed": speed,
"vol": 2.0,
"pitch": 0
},