尝试短的语音功能 #45

Merged
QAQ merged 1 commits from QAQ into master 2025-05-24 11:14:06 +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)
] ]