尝试语音功能
This commit is contained in:
parent
3bb631114f
commit
8f21c75592
4
main.py
4
main.py
@ -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)
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user