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
61abe207
Commit
61abe207
authored
Jun 03, 2025
by
赵文静
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改问题
parent
6bc22f77
Pipeline
#5362
passed with stage
in 0 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
CHANGELOG.md
CHANGELOG.md
+1
-0
c2c.http
c2c.http
+3
-3
service/speechNlu/domain.go
service/speechNlu/domain.go
+4
-1
No files found.
CHANGELOG.md
View file @
61abe207
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
### Changed
### Changed
-
补充诗词解析兜底
-
补充诗词解析兜底
-
暂停闹钟直接返回解析给整机处理
-
暂停闹钟直接返回解析给整机处理
-
补充闹钟兜底回复为第三方回复
## [0.0.1-beta] - 2025.5.13
## [0.0.1-beta] - 2025.5.13
### Changed
### Changed
...
...
c2c.http
View file @
61abe207
...
@@ -14,7 +14,7 @@ Content-Type: application/json
...
@@ -14,7 +14,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": "
设一个昨天5点的闹钟
"
},
},
"postProc": {}
"postProc": {}
}
}
...
@@ -33,7 +33,7 @@ Content-Type: application/json
...
@@ -33,7 +33,7 @@ Content-Type: application/json
},
},
"nluRet": {
"nluRet": {
"asr_recongize": "",
"asr_recongize": "",
"text": "
春望的释义
"
"text": "
设置一个昨天5点的闹钟
"
}
}
},
},
"version": "v0"
"version": "v0"
...
@@ -55,7 +55,7 @@ Content-Type: application/json
...
@@ -55,7 +55,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": "
设置一个昨天5点的闹钟
"
},
},
"postProc": {}
"postProc": {}
}
}
...
...
service/speechNlu/domain.go
View file @
61abe207
...
@@ -447,6 +447,9 @@ func alarmDomain(params *model.SpeechDomainParams) []byte {
...
@@ -447,6 +447,9 @@ func alarmDomain(params *model.SpeechDomainParams) []byte {
}
}
if
!
params
.
CheckDm
()
||
!
params
.
CheckCommandParam
()
{
if
!
params
.
CheckDm
()
||
!
params
.
CheckCommandParam
()
{
if
result
.
ResponseText
!=
""
{
return
Marshal
(
params
,
&
result
)
}
return
replyWithChat
(
error_reply
,
"doudi"
)
return
replyWithChat
(
error_reply
,
"doudi"
)
}
}
api
:=
params
.
SpeechWsResp
.
Dm
.
Command
.
Api
api
:=
params
.
SpeechWsResp
.
Dm
.
Command
.
Api
...
@@ -1074,7 +1077,7 @@ func Marshal(params *model.SpeechDomainParams, res *model.ResponseBody) []byte {
...
@@ -1074,7 +1077,7 @@ func Marshal(params *model.SpeechDomainParams, res *model.ResponseBody) []byte {
res
.
Header
.
Semantic
.
Domain
=
"chat"
res
.
Header
.
Semantic
.
Domain
=
"chat"
}
}
if
res
.
Header
.
Semantic
.
Intent
==
""
{
if
res
.
Header
.
Semantic
.
Intent
==
""
{
res
.
Header
.
Semantic
.
Domain
=
"chat"
res
.
Header
.
Semantic
.
Intent
=
"chat"
}
}
resByte
,
err
:=
json
.
Marshal
(
res
)
resByte
,
err
:=
json
.
Marshal
(
res
)
if
err
!=
nil
{
if
err
!=
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