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
7d7afa37
Commit
7d7afa37
authored
Jun 25, 2025
by
赵文静
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加换一首歌
parent
e282b311
Pipeline
#5474
passed with stage
in 0 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
2 deletions
+22
-2
c2c.http
c2c.http
+2
-2
service/speechNlu/domain.go
service/speechNlu/domain.go
+20
-0
No files found.
c2c.http
View file @
7d7afa37
...
@@ -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"
...
@@ -39,7 +39,7 @@ X-AppKey: 391b50b5ed634fc49a3db7cfd6bc40db
...
@@ -39,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"
}
}
...
...
service/speechNlu/domain.go
View file @
7d7afa37
...
@@ -805,6 +805,26 @@ func musicDomain(params *model.SpeechDomainParams) []byte {
...
@@ -805,6 +805,26 @@ func musicDomain(params *model.SpeechDomainParams) []byte {
database
.
DeleteSession
(
params
.
Mac
)
database
.
DeleteSession
(
params
.
Mac
)
}
}
query
:=
params
.
SpeechWsResp
.
Dm
.
Input
if
!
params
.
CheckDmCommand
()
{
return
replyWithChat
(
error_reply
,
"doudi"
)
}
else
{
if
params
.
SpeechWsResp
.
Dm
.
Command
.
Api
!=
""
{
switch
params
.
SpeechWsResp
.
Dm
.
Command
.
Api
{
case
"DUI.MediaController.Pause"
:
return
transformGreeProtocolReply
(
query
,
"PlayControl"
,
"control_pause"
,
nil
)
case
"DUI.MediaController.Play"
:
return
transformGreeProtocolReply
(
query
,
"PlayControl"
,
"control_resume"
,
nil
)
case
"DUI.MediaController.Stop"
:
return
transformGreeProtocolReply
(
query
,
"PlayControl"
,
"control_stop"
,
nil
)
case
"DUI.MediaController.Next"
,
"DUI.MediaController.Switch"
:
return
transformGreeProtocolReply
(
query
,
"PlayControl"
,
"control_next"
,
nil
)
case
"DUI.MediaController.Prev"
:
return
transformGreeProtocolReply
(
query
,
"PlayControl"
,
"control_previous"
,
nil
)
}
}
}
list
,
err
:=
connect
.
MusicGrpc
(
params
)
list
,
err
:=
connect
.
MusicGrpc
(
params
)
if
err
!=
nil
{
if
err
!=
nil
{
global
.
Logger
.
WithFields
(
logger
.
Fields
{
global
.
Logger
.
WithFields
(
logger
.
Fields
{
...
...
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