From e282b311f761b92dae21d80330335f8ff25b9522 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=96=87=E9=9D=99?= <1319697849@qq.com> Date: Wed, 25 Jun 2025 18:42:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=8D=A2=E4=B8=80=E9=A6=96?= =?UTF-8?q?=E6=AD=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 1 + c2c.http | 11 ++++++----- service/speechNlu/domain.go | 2 +- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a2eb22..592f397 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ - 修改日志打印 - 故事返回增加专辑字段 - http入口新增需要AppKey校验 +- 增加换一首歌 ## [0.0.1-beta.3] - 2025.6.19 ### Changed diff --git a/c2c.http b/c2c.http index c733167..10de800 100644 --- a/c2c.http +++ b/c2c.http @@ -10,7 +10,7 @@ Content-Type: application/json }, "nluRet": { "asr_recongize": "", - "text": "暂停闹钟" + "text": "合肥今天几点下雨" } }, "version": "v0" @@ -19,12 +19,13 @@ Content-Type: application/json ### POST https://testnlu.gree.com/semantic/unisoundc2c/speech-nlu-parse Content-Type: application/json +X-AppKey: 391b50b5ed634fc49a3db7cfd6bc40db { "ip": "14.215.222.17", "mac": "ece154a865eb", "mid": "11011", - "query":"暂停闹钟", + "query":"换一首歌", "requestId": "123456111" } @@ -38,7 +39,7 @@ X-AppKey: 391b50b5ed634fc49a3db7cfd6bc40db "ip": "14.215.222.17", "mac": "ece154a865eb", "mid": "11011", - "query":"播放故事", + "query":"播放正版", "requestId": "123456111" } @@ -59,7 +60,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": {} } @@ -100,7 +101,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 bab4a3f..13defc1 100644 --- a/service/speechNlu/domain.go +++ b/service/speechNlu/domain.go @@ -780,7 +780,7 @@ func playCtrlDomain(params *model.SpeechDomainParams) []byte { return transformGreeProtocolReply(query, "PlayControl", "control_resume", nil) case "DUI.MediaController.Stop": return transformGreeProtocolReply(query, "PlayControl", "control_stop", nil) - case "DUI.MediaController.Next": + case "DUI.MediaController.Next", "DUI.MediaController.Switch": return transformGreeProtocolReply(query, "PlayControl", "control_next", nil) case "DUI.MediaController.Prev": return transformGreeProtocolReply(query, "PlayControl", "control_previous", nil) -- GitLab