Commit 0c2b5255 authored by 赵文静's avatar 赵文静

补充笑话下一个

parent c47eb849
Pipeline #5245 passed with stage
in 0 seconds
......@@ -331,6 +331,12 @@ func jokeDomain(params *model.SpeechDomainParams) []byte {
return replyWithChat(error_reply, "doudi")
}
if params.SpeechWsResp.Dm.IntentName == "播放控制" {
if params.SpeechWsResp.Dm.Command.Api == "DUI.MediaController.Next" || params.SpeechWsResp.Dm.Command.Api == "DUI.MediaController.Switch" {
return transformGreeProtocolReply(params.SpeechWsResp.Dm.Input, "PlayControl", "control_next", nil)
}
}
res.Header.Semantic.Domain = "joke"
res.Header.Semantic.Intent = "tell"
res.Header.Semantic.SkillId = res.Header.Semantic.Domain + "." + res.Header.Semantic.Intent
......@@ -808,9 +814,9 @@ func playCtrlDomain(params *model.SpeechDomainParams) []byte {
} else if params.SpeechWsResp.Dm.Param.Number != "" {
switch params.SpeechWsResp.Dm.Param.Number {
case "+1":
return transformGreeProtocolReply(query, "UniversalControl", "control_next", nil)
return transformGreeProtocolReply(query, "PlayControl", "control_next", nil)
case "-1":
return transformGreeProtocolReply(query, "UniversalControl", "control_previous", nil)
return transformGreeProtocolReply(query, "PlayControl", "control_previous", nil)
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment