Merge pull request #1102 from A0000Xz/dev

修复TTS action
This commit is contained in:
UnCLAS-Prommer
2025-07-08 23:20:33 +08:00
committed by GitHub

View File

@@ -59,6 +59,13 @@ class TTSAction(BaseAction):
# 发送TTS消息 # 发送TTS消息
await self.send_custom(message_type="tts_text", content=processed_text) await self.send_custom(message_type="tts_text", content=processed_text)
# 记录动作信息
await self.store_action_info(
action_build_into_prompt=True,
action_prompt_display="已经发送了语音消息。",
action_done=True
)
logger.info(f"{self.log_prefix} TTS动作执行成功文本长度: {len(processed_text)}") logger.info(f"{self.log_prefix} TTS动作执行成功文本长度: {len(processed_text)}")
return True, "TTS动作执行成功" return True, "TTS动作执行成功"