diff --git a/CHANGELOG.md b/CHANGELOG.md index cd1e1eb7d999323bb351cd91c24d89b78be6c338..94efd6708936c0955495189b4f9a38e15a51684f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,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 7209ca3efd0564abcb1c8dcc21308e6f56e69f31..ab4eed042f0bd2cd207ca49962a465adc18404d1 100644 --- a/c2c.http +++ b/c2c.http @@ -10,14 +10,15 @@ Content-Type: application/json } ### -POST http://172.28.54.27:13302/semantic/unisoundc2c/speech-nlu-parse +#POST http://172.28.54.27:13302/semantic/unisoundc2c/speech-nlu-parse +POST http://172.28.124.110:13302/semantic/unisoundc2c/speech-nlu-parse Content-Type: application/json { "ip": "14.215.222.17", "mac": "ece154a865eb", "mid": "11011", - "query":"播放音乐", + "query":"播放故事", "requestId": "123456111" } @@ -79,7 +80,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 ba6c11116599fe221dbfa9f113b719c28b9e653b..bab4a3f6f81c10db45167ee37caf7dfcf5083b79 100644 --- a/service/speechNlu/domain.go +++ b/service/speechNlu/domain.go @@ -673,8 +673,9 @@ func fmDomain(params *model.SpeechDomainParams) []byte { return replyWithChat(params.SpeechWsResp.Dm.Nlg, "doudi") } res.ListItems = append(res.ListItems, map[string]interface{}{ - "url": con.LinkUrl, - "title": con.Title, + "url": con.LinkUrl, + "title": con.Title, + "content": con.Album, }) } diff --git a/service/speechNlu/speech.go b/service/speechNlu/speech.go index 8699d737d19feda4f364f4318f719dcaf7f712a9..a1e07082feda06302cb4a7fb97f94de9c1920e30 100644 --- a/service/speechNlu/speech.go +++ b/service/speechNlu/speech.go @@ -162,7 +162,7 @@ func receiveMessage(conn *websocket.Conn, done chan struct{}, dataChan chan<- [] "requestId": requestId, "origin-data": string(message), "time": time.Since(start).Seconds(), - }).Info("原始消息") + }).Info("speech origin data") //思必驰nlu回复 var resp model.SpeechWsResp