Commit 49d12b0d authored by 赵文静's avatar 赵文静

增加音乐专辑字段

parent c3e78176
Pipeline #5460 passed with stage
in 0 seconds
# 更新日志
## [0.0.1-beta.4] - 2025.6.24
### Changed
- 增加音乐专辑字段
## [0.0.1-beta.3] - 2025.6.19
### Changed
- 增加音乐兜底
......
......@@ -5,7 +5,7 @@ Content-Type: application/json
"ip": "14.215.222.17",
"mac": "ece154a865eb",
"mid": "11011",
"query":"水瓶座今年的运势咋样",
"query":"我想听儿歌",
"requestId": "123456111"
}
......@@ -17,7 +17,7 @@ Content-Type: application/json
"ip": "14.215.222.17",
"mac": "ece154a865eb",
"mid": "11011",
"query":"二十四节气",
"query":"播放音乐",
"requestId": "123456111"
}
......@@ -38,7 +38,7 @@ Content-Type: application/json
"trafficParameter": "mode=childxxx;macWifi=28b77c218ed1;mid=10f05;vender=7e000025;macVoice=testyuntiancloud;ver=3.0;scenario=smarthome;filterName=nlu;req_nlu_length=1;returnType=json;fullDuplex=true;appendLength=1;additionalService=geli_nlu2;version=0.5;filterUrl=https://testnlu.gree.com:443/semantic/unisoundc2c/querys;"
},
"nluRet": {
"text": "骨头属于什么垃圾"
"text": "播放音乐"
},
"postProc": {}
}
......@@ -79,7 +79,7 @@ Content-Type: application/json
"trafficParameter": "mode=childxx;macWifi=ece154a73d38;mid=11011;macVoice=testyuntiancloud;ver=3.0;scenario=smarthome;filterName=nlu;req_nlu_length=1;returnType=json;fullDuplex=true;appendLength=1;additionalService=geli_nlu2;version=0.5;filterUrl=https://testnlu.gree.com:443/semantic/unisoundc2c/querys;"
},
"nluRet": {
"text": "哪天适合结婚"
"text": "我有几个提醒"
},
"postProc": {}
}
......
......@@ -831,6 +831,7 @@ func musicDomain(params *model.SpeechDomainParams) []byte {
"mediaId": list.Data.ListItems[i].MediaId,
"singer": list.Data.ListItems[i].Singer,
"song": list.Data.ListItems[i].Song,
"album": list.Data.ListItems[i].Album,
})
}
//result.ResponseText = "以下音乐由网易云提供:" //params.SpeechWsResp.Dm.Nlg
......@@ -1066,6 +1067,7 @@ func childMusicDomain(params *model.SpeechDomainParams) []byte {
res.ListItems = append(res.ListItems, map[string]interface{}{
"url": con.LinkUrl,
"song": con.Title,
"album": con.Album,
//思必驰的没有回复话术
//"content": params.Dm.Widget.Content[i].TextContent,
})
......
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