Commit e282b311 authored by 赵文静's avatar 赵文静

增加换一首歌

parent 27c3f916
Pipeline #5473 passed with stage
in 0 seconds
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
- 修改日志打印 - 修改日志打印
- 故事返回增加专辑字段 - 故事返回增加专辑字段
- http入口新增需要AppKey校验 - http入口新增需要AppKey校验
- 增加换一首歌
## [0.0.1-beta.3] - 2025.6.19 ## [0.0.1-beta.3] - 2025.6.19
### Changed ### Changed
......
...@@ -10,7 +10,7 @@ Content-Type: application/json ...@@ -10,7 +10,7 @@ Content-Type: application/json
}, },
"nluRet": { "nluRet": {
"asr_recongize": "", "asr_recongize": "",
"text": "暂停闹钟" "text": "合肥今天几点下雨"
} }
}, },
"version": "v0" "version": "v0"
...@@ -19,12 +19,13 @@ Content-Type: application/json ...@@ -19,12 +19,13 @@ Content-Type: application/json
### ###
POST https://testnlu.gree.com/semantic/unisoundc2c/speech-nlu-parse POST https://testnlu.gree.com/semantic/unisoundc2c/speech-nlu-parse
Content-Type: application/json Content-Type: application/json
X-AppKey: 391b50b5ed634fc49a3db7cfd6bc40db
{ {
"ip": "14.215.222.17", "ip": "14.215.222.17",
"mac": "ece154a865eb", "mac": "ece154a865eb",
"mid": "11011", "mid": "11011",
"query":"暂停闹钟", "query":"换一首歌",
"requestId": "123456111" "requestId": "123456111"
} }
...@@ -38,7 +39,7 @@ X-AppKey: 391b50b5ed634fc49a3db7cfd6bc40db ...@@ -38,7 +39,7 @@ X-AppKey: 391b50b5ed634fc49a3db7cfd6bc40db
"ip": "14.215.222.17", "ip": "14.215.222.17",
"mac": "ece154a865eb", "mac": "ece154a865eb",
"mid": "11011", "mid": "11011",
"query":"播放故事", "query":"播放正版",
"requestId": "123456111" "requestId": "123456111"
} }
...@@ -59,7 +60,7 @@ Content-Type: application/json ...@@ -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;" "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": { "nluRet": {
"text": "暂停闹钟" "text": "哈萨克斯坦的全称"
}, },
"postProc": {} "postProc": {}
} }
...@@ -100,7 +101,7 @@ Content-Type: application/json ...@@ -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;" "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": { "nluRet": {
"text": "暂停闹钟" "text": "换一首歌"
}, },
"postProc": {} "postProc": {}
} }
......
...@@ -780,7 +780,7 @@ func playCtrlDomain(params *model.SpeechDomainParams) []byte { ...@@ -780,7 +780,7 @@ func playCtrlDomain(params *model.SpeechDomainParams) []byte {
return transformGreeProtocolReply(query, "PlayControl", "control_resume", nil) return transformGreeProtocolReply(query, "PlayControl", "control_resume", nil)
case "DUI.MediaController.Stop": case "DUI.MediaController.Stop":
return transformGreeProtocolReply(query, "PlayControl", "control_stop", nil) 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) return transformGreeProtocolReply(query, "PlayControl", "control_next", nil)
case "DUI.MediaController.Prev": case "DUI.MediaController.Prev":
return transformGreeProtocolReply(query, "PlayControl", "control_previous", nil) return transformGreeProtocolReply(query, "PlayControl", "control_previous", nil)
......
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