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
c48895ee
Commit
c48895ee
authored
Jun 13, 2025
by
赵文静
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改播控
parent
27ee0a8a
Pipeline
#5405
passed with stage
in 0 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
13 deletions
+14
-13
CHANGELOG.md
CHANGELOG.md
+2
-0
c2c.http
c2c.http
+2
-2
service/speechNlu/domain.go
service/speechNlu/domain.go
+10
-11
No files found.
CHANGELOG.md
View file @
c48895ee
...
@@ -6,6 +6,8 @@
...
@@ -6,6 +6,8 @@
-
修改闹钟兜底回复不播报的问题
-
修改闹钟兜底回复不播报的问题
-
修改音乐技能
-
修改音乐技能
-
修改新闻title
-
修改新闻title
-
修改sessionId记录
-
修改播控
## [0.0.1-beta.2] - 2025.5.29
## [0.0.1-beta.2] - 2025.5.29
### Changed
### Changed
...
...
c2c.http
View file @
c48895ee
...
@@ -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 @
c48895ee
...
@@ -764,24 +764,23 @@ func globalCtrlDomain(params *model.SpeechDomainParams) []byte {
...
@@ -764,24 +764,23 @@ func globalCtrlDomain(params *model.SpeechDomainParams) []byte {
func
playCtrlDomain
(
params
*
model
.
SpeechDomainParams
)
[]
byte
{
func
playCtrlDomain
(
params
*
model
.
SpeechDomainParams
)
[]
byte
{
query
:=
params
.
SpeechWsResp
.
Dm
.
Input
query
:=
params
.
SpeechWsResp
.
Dm
.
Input
if
!
params
.
CheckDm
Param
()
{
if
!
params
.
CheckDm
Command
()
{
return
replyWithChat
(
error_reply
,
"doudi"
)
return
replyWithChat
(
error_reply
,
"doudi"
)
}
else
{
}
else
{
if
params
.
SpeechWsResp
.
Dm
.
Param
.
Operate
!=
""
{
if
params
.
SpeechWsResp
.
Dm
.
Command
.
Api
!=
""
{
switch
params
.
SpeechWsResp
.
Dm
.
Param
.
Operate
{
switch
params
.
SpeechWsResp
.
Dm
.
Command
.
Api
{
case
"
暂停
"
:
case
"
DUI.MediaController.Pause
"
:
return
transformGreeProtocolReply
(
query
,
"PlayControl"
,
"control_pause"
,
nil
)
return
transformGreeProtocolReply
(
query
,
"PlayControl"
,
"control_pause"
,
nil
)
case
"
继续
"
:
case
"
DUI.MediaController.Play
"
:
return
transformGreeProtocolReply
(
query
,
"PlayControl"
,
"control_resume"
,
nil
)
return
transformGreeProtocolReply
(
query
,
"PlayControl"
,
"control_resume"
,
nil
)
case
"
停止
"
:
case
"
DUI.MediaController.Stop
"
:
return
transformGreeProtocolReply
(
query
,
"PlayControl"
,
"control_stop"
,
nil
)
return
transformGreeProtocolReply
(
query
,
"PlayControl"
,
"control_stop"
,
nil
)
}
case
"DUI.MediaController.Next"
:
}
else
if
params
.
SpeechWsResp
.
Dm
.
Param
.
Number
!=
""
{
switch
params
.
SpeechWsResp
.
Dm
.
Param
.
Number
{
case
"+1"
:
return
transformGreeProtocolReply
(
query
,
"PlayControl"
,
"control_next"
,
nil
)
return
transformGreeProtocolReply
(
query
,
"PlayControl"
,
"control_next"
,
nil
)
case
"
-1
"
:
case
"
DUI.MediaController.Prev
"
:
return
transformGreeProtocolReply
(
query
,
"PlayControl"
,
"control_previous"
,
nil
)
return
transformGreeProtocolReply
(
query
,
"PlayControl"
,
"control_previous"
,
nil
)
default
:
return
replyWithChat
(
error_reply
,
"doudi"
)
}
}
}
}
}
}
...
...
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