From 463d829d5bd5b4cf6e1aad7d59584763e847d866 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=96=87=E9=9D=99?= <1319697849@qq.com> Date: Tue, 24 Jun 2025 14:20:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 2 ++ c2c.http | 7 ++++--- service/speechNlu/domain.go | 5 +++-- service/speechNlu/speech.go | 2 +- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cd1e1eb..94efd67 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 7209ca3..ab4eed0 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 ba6c111..bab4a3f 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 8699d73..a1e0708 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 -- GitLab