Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
speech_nlu_parse
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵文静
speech_nlu_parse
Commits
42091f61
Commit
42091f61
authored
Jun 26, 2025
by
赵文静
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改历史上的今天
parent
ee5e9986
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
11 deletions
+15
-11
CHANGELOG.md
CHANGELOG.md
+4
-0
c2c.http
c2c.http
+7
-7
service/speechNlu/domain.go
service/speechNlu/domain.go
+4
-4
No files found.
CHANGELOG.md
View file @
42091f61
# 更新日志
## [0.0.1-beta.4] - 2025.6.26
### Changed
-
修改历史上的今天,修改限制判断
## [0.0.1-beta.4] - 2025.6.24
### Changed
-
增加音乐专辑字段
...
...
c2c.http
View file @
42091f61
...
...
@@ -10,7 +10,7 @@ Content-Type: application/json
},
"nluRet": {
"asr_recongize": "",
"text": "
换一首歌
"
"text": "
几点了几点了几点了
"
}
},
"version": "v0"
...
...
@@ -24,8 +24,8 @@ X-AppKey: 391b50b5ed634fc49a3db7cfd6bc40db
{
"ip": "14.215.222.17",
"mac": "ece154a865eb",
"mid": "1
1011
",
"query":"
换个故事
",
"mid": "1
0f05
",
"query":"
历史上的今天
",
"requestId": "123456111"
}
...
...
@@ -38,8 +38,8 @@ X-AppKey: 391b50b5ed634fc49a3db7cfd6bc40db
{
"ip": "14.215.222.17",
"mac": "ece154a865eb",
"mid": "1
1011
",
"query":"
换个故事
",
"mid": "1
0f05
",
"query":"
历史上的今天
",
"requestId": "123456111"
}
...
...
@@ -60,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": {}
}
...
...
@@ -101,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": {}
}
...
...
service/speechNlu/domain.go
View file @
42091f61
...
...
@@ -127,7 +127,7 @@ func calendarDomain(params *model.SpeechDomainParams) []byte {
var
l
int
//var resStrb string
if
len
(
sliceData
)
<
global
.
GetLimitedSetting
(
params
.
Mid
)
.
HistoryNum
{
if
len
(
sliceData
)
<
global
.
GetLimitedSetting
(
params
.
Mid
)
.
HistoryNum
||
global
.
GetLimitedSetting
(
params
.
Mid
)
.
HistoryNum
<
0
{
l
=
len
(
sliceData
)
}
else
{
// 使用限制的条数
l
=
global
.
GetLimitedSetting
(
params
.
Mid
)
.
HistoryNum
...
...
@@ -824,9 +824,7 @@ func musicDomain(params *model.SpeechDomainParams) []byte {
}
query
:=
params
.
SpeechWsResp
.
Dm
.
Input
if
!
params
.
CheckDmCommand
()
{
return
replyWithChat
(
error_reply
,
"doudi"
)
}
else
{
if
params
.
CheckDmCommand
()
{
if
params
.
SpeechWsResp
.
Dm
.
Command
.
Api
!=
""
{
switch
params
.
SpeechWsResp
.
Dm
.
Command
.
Api
{
case
"DUI.MediaController.Pause"
:
...
...
@@ -839,6 +837,8 @@ func musicDomain(params *model.SpeechDomainParams) []byte {
return
transformGreeProtocolReply
(
query
,
"PlayControl"
,
"control_next"
,
nil
)
case
"DUI.MediaController.Prev"
:
return
transformGreeProtocolReply
(
query
,
"PlayControl"
,
"control_previous"
,
nil
)
case
"DUI.MediaController.SetPlayMode"
:
return
transformGreeProtocolReply
(
query
,
"PlayControl"
,
"control_previous"
,
nil
)
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment