尝试语音功能

This commit is contained in:
“QAQ” 2025-05-24 11:05:50 +08:00
parent 4a4f151e64
commit 3bb631114f
2 changed files with 9 additions and 0 deletions

BIN
Juno.wav Normal file

Binary file not shown.

View File

@ -399,6 +399,15 @@ class MyPlugin(Star):
else: else:
yield "获取骚话失败" yield "获取骚话失败"
@filter.command("朱诺")
async def Juno(self, event: AstrMessageEvent):
path = "./Juno.wav" # 暂时只接受 wav 格式,其他格式请自行转换
chain = [
Comp.Record(file=path, url=path)
]
yield event.chain_result(chain)
@filter.command("部署") @filter.command("部署")
async def bushutest(self, event: AstrMessageEvent): async def bushutest(self, event: AstrMessageEvent):
yield event.plain_result("自动部署成功!!") yield event.plain_result("自动部署成功!!")