fix: 恢复vtb_plugin

This commit is contained in:
tcmofashi
2025-06-14 11:00:47 +08:00
parent c6755f138b
commit cb560ecd73
6 changed files with 79 additions and 21 deletions

View File

@@ -8,7 +8,7 @@ description = "文字转语音插件"
# 组件启用控制
[components]
enable_tarots = true
enable_tts = true
# 日志配置
[logging]

View File

@@ -110,13 +110,11 @@ class TTSPlugin(BasePlugin):
# 从配置获取组件启用状态
enable_tts = self.get_config("components.enable_tts", True)
components = []
# 添加Action组件
components = [] # 添加Action组件
if enable_tts:
components.append(
(
TTSAction.get_action_info(name="tarots_action", description="文字转语音插件"),
TTSAction.get_action_info(name="tts_action", description="文字转语音插件"),
TTSAction,
)
)