感谢分享!已经在用了!
一个简单的调用实例
msg_order={}
msg_order["说"]="record"
function record(msg)
local rest = string.match(msg.fromMsg,"^说(.+)$")
if(rest == nil)then
return
else
if(msg.fromGroup ~= "0")then
local api = "http://233366.proxy.nscc-gz.cn:8888/?speaker=派蒙&noise=0&length=0.8&noisew=0.8&text="..rest
return "[CQ:record,url="..api.."]"
else
return "目前语音功能不支持私聊哦"
end
end
end