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
5ca41ec9
Commit
5ca41ec9
authored
May 29, 2025
by
赵文静
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改问题
parent
293deb54
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
10 deletions
+21
-10
CHANGELOG.md
CHANGELOG.md
+5
-0
c2c.http
c2c.http
+3
-3
service/speechNlu/domain.go
service/speechNlu/domain.go
+13
-7
No files found.
CHANGELOG.md
View file @
5ca41ec9
# 更新日志
# 更新日志
## [0.0.1-beta.2] - 2025.5.29
### Changed
-
补充诗词解析兜底
-
暂停闹钟直接返回解析给整机处理
## [0.0.1-beta] - 2025.5.13
## [0.0.1-beta] - 2025.5.13
### Changed
### Changed
-
对接思必驰
-
对接思必驰
c2c.http
View file @
5ca41ec9
...
@@ -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": "
暂停
闹钟"
},
},
"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": "
城春草木深下一句
"
}
}
},
},
"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": "
后天天气
"
},
},
"postProc": {}
"postProc": {}
}
}
...
...
service/speechNlu/domain.go
View file @
5ca41ec9
...
@@ -247,13 +247,16 @@ func ancientpoemDomain(params *model.SpeechDomainParams) []byte {
...
@@ -247,13 +247,16 @@ func ancientpoemDomain(params *model.SpeechDomainParams) []byte {
if
params
.
SpeechWsResp
.
Dm
.
IntentName
==
"查询诗词释义"
{
if
params
.
SpeechWsResp
.
Dm
.
IntentName
==
"查询诗词释义"
{
res
.
Header
.
Semantic
.
Intent
=
"search_ancientpoem_meaning"
res
.
Header
.
Semantic
.
Intent
=
"search_ancientpoem_meaning"
res
.
ListItems
=
append
(
res
.
ListItems
,
map
[
string
]
interface
{}{
if
params
.
SpeechWsResp
.
Dm
.
Widget
.
Extra
.
ContentTranslation
==
""
{
//如果返回列表,整机是播放content里的消息
"content"
:
params
.
SpeechWsResp
.
Dm
.
Widget
.
Extra
.
ContentTranslation
,
}
else
{
"title"
:
params
.
SpeechWsResp
.
Dm
.
Widget
.
Extra
.
Title
,
res
.
ListItems
=
append
(
res
.
ListItems
,
map
[
string
]
interface
{}{
"type"
:
"TEXT"
,
//原来是 TEXT,看看是否能播放
"content"
:
params
.
SpeechWsResp
.
Dm
.
Widget
.
Extra
.
ContentTranslation
,
"url"
:
""
,
"title"
:
params
.
SpeechWsResp
.
Dm
.
Widget
.
Extra
.
Title
,
"mediaId"
:
""
,
"type"
:
"TEXT"
,
//原来是 TEXT,看看是否能播放
})
"url"
:
""
,
"mediaId"
:
""
,
})
}
res
.
Header
.
Semantic
.
SkillId
=
res
.
Header
.
Semantic
.
Domain
+
"."
+
res
.
Header
.
Semantic
.
Intent
res
.
Header
.
Semantic
.
SkillId
=
res
.
Header
.
Semantic
.
Domain
+
"."
+
res
.
Header
.
Semantic
.
Intent
return
Marshal
(
params
,
res
)
return
Marshal
(
params
,
res
)
}
else
if
params
.
SpeechWsResp
.
Dm
.
IntentName
==
"查询诗句"
{
}
else
if
params
.
SpeechWsResp
.
Dm
.
IntentName
==
"查询诗句"
{
...
@@ -464,6 +467,9 @@ func alarmDomain(params *model.SpeechDomainParams) []byte {
...
@@ -464,6 +467,9 @@ func alarmDomain(params *model.SpeechDomainParams) []byte {
result
.
Header
.
Semantic
.
Intent
=
"delete"
result
.
Header
.
Semantic
.
Intent
=
"delete"
}
else
if
api
==
"ai.dui.dskdm.reminder.shut"
{
}
else
if
api
==
"ai.dui.dskdm.reminder.shut"
{
result
.
Header
.
Semantic
.
Intent
=
"stop"
result
.
Header
.
Semantic
.
Intent
=
"stop"
result
.
Header
.
Semantic
.
SkillId
=
result
.
Header
.
Semantic
.
Domain
+
"."
+
result
.
Header
.
Semantic
.
Intent
result
.
ResponseText
=
"好的。"
return
Marshal
(
params
,
&
result
)
}
}
result
.
Header
.
Semantic
.
SkillId
=
result
.
Header
.
Semantic
.
Domain
+
"."
+
result
.
Header
.
Semantic
.
Intent
result
.
Header
.
Semantic
.
SkillId
=
result
.
Header
.
Semantic
.
Domain
+
"."
+
result
.
Header
.
Semantic
.
Intent
...
...
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