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
0c2b5255
Commit
0c2b5255
authored
May 20, 2025
by
赵文静
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
补充笑话下一个
parent
c47eb849
Pipeline
#5245
passed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
service/speechNlu/domain.go
service/speechNlu/domain.go
+8
-2
No files found.
service/speechNlu/domain.go
View file @
0c2b5255
...
...
@@ -331,6 +331,12 @@ func jokeDomain(params *model.SpeechDomainParams) []byte {
return
replyWithChat
(
error_reply
,
"doudi"
)
}
if
params
.
SpeechWsResp
.
Dm
.
IntentName
==
"播放控制"
{
if
params
.
SpeechWsResp
.
Dm
.
Command
.
Api
==
"DUI.MediaController.Next"
||
params
.
SpeechWsResp
.
Dm
.
Command
.
Api
==
"DUI.MediaController.Switch"
{
return
transformGreeProtocolReply
(
params
.
SpeechWsResp
.
Dm
.
Input
,
"PlayControl"
,
"control_next"
,
nil
)
}
}
res
.
Header
.
Semantic
.
Domain
=
"joke"
res
.
Header
.
Semantic
.
Intent
=
"tell"
res
.
Header
.
Semantic
.
SkillId
=
res
.
Header
.
Semantic
.
Domain
+
"."
+
res
.
Header
.
Semantic
.
Intent
...
...
@@ -808,9 +814,9 @@ func playCtrlDomain(params *model.SpeechDomainParams) []byte {
}
else
if
params
.
SpeechWsResp
.
Dm
.
Param
.
Number
!=
""
{
switch
params
.
SpeechWsResp
.
Dm
.
Param
.
Number
{
case
"+1"
:
return
transformGreeProtocolReply
(
query
,
"
Universal
Control"
,
"control_next"
,
nil
)
return
transformGreeProtocolReply
(
query
,
"
Play
Control"
,
"control_next"
,
nil
)
case
"-1"
:
return
transformGreeProtocolReply
(
query
,
"
Universal
Control"
,
"control_previous"
,
nil
)
return
transformGreeProtocolReply
(
query
,
"
Play
Control"
,
"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