Compare commits

..

2 Commits

Author SHA1 Message Date
QAQ
22c2029103 Merge pull request '尝试短的语音功能' (#45) from QAQ into master
Reviewed-on: #45
2025-05-24 11:14:06 +08:00
“QAQ”
8f21c75592 尝试语音功能 2025-05-24 11:13:35 +08:00
3 changed files with 2 additions and 2 deletions

BIN
Get.wav Normal file

Binary file not shown.

BIN
Juno.wav

Binary file not shown.

View File

@ -399,9 +399,9 @@ class MyPlugin(Star):
else: else:
yield "获取骚话失败" yield "获取骚话失败"
@filter.command("朱诺") @filter.command("语音测试")
async def Juno(self, event: AstrMessageEvent): async def Juno(self, event: AstrMessageEvent):
path = "./Juno.wav" # 暂时只接受 wav 格式,其他格式请自行转换 path = "./Get.wav" # 暂时只接受 wav 格式,其他格式请自行转换
chain = [ chain = [
Comp.Record(file=path, url=path) Comp.Record(file=path, url=path)
] ]