diff --git a/CHANGELOG.md b/CHANGELOG.md index 1ecd808eb750091433db2dbce57412bd121b0484..cd1e1eb7d999323bb351cd91c24d89b78be6c338 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,8 @@ # 更新日志 +## [0.0.1-beta.4] - 2025.6.24 +### Changed +- 增加音乐专辑字段 + ## [0.0.1-beta.3] - 2025.6.19 ### Changed - 增加音乐兜底 diff --git a/c2c.http b/c2c.http index 6cf132cccf3309b5304decc3b84e5cc3cab61589..7209ca3efd0564abcb1c8dcc21308e6f56e69f31 100644 --- a/c2c.http +++ b/c2c.http @@ -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": {} } diff --git a/service/speechNlu/domain.go b/service/speechNlu/domain.go index 670f1e385ddd12d06c87c50cbdb7e44761bdc06a..ba6c11116599fe221dbfa9f113b719c28b9e653b 100644 --- a/service/speechNlu/domain.go +++ b/service/speechNlu/domain.go @@ -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 @@ -1064,8 +1065,9 @@ func childMusicDomain(params *model.SpeechDomainParams) []byte { return replyWithChat(error_reply, "doudi") } res.ListItems = append(res.ListItems, map[string]interface{}{ - "url": con.LinkUrl, - "song": con.Title, + "url": con.LinkUrl, + "song": con.Title, + "album": con.Album, //思必驰的没有回复话术 //"content": params.Dm.Widget.Content[i].TextContent, })