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
296dcdb6
Commit
296dcdb6
authored
Jun 19, 2025
by
赵文静
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加音乐兜底
parent
b7023845
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
7 deletions
+11
-7
c2c.http
c2c.http
+6
-6
service/speechNlu/domain.go
service/speechNlu/domain.go
+5
-1
No files found.
c2c.http
View file @
296dcdb6
...
@@ -5,19 +5,19 @@ Content-Type: application/json
...
@@ -5,19 +5,19 @@ Content-Type: application/json
"ip": "14.215.222.17",
"ip": "14.215.222.17",
"mac": "ece154a865eb",
"mac": "ece154a865eb",
"mid": "11011",
"mid": "11011",
"query":"
哈哈
",
"query":"
你喜欢吃零食吗
",
"requestId": "123456111"
"requestId": "123456111"
}
}
###
###
POST http://
localhost
:13302/semantic/unisoundc2c/speech-nlu-parse
POST http://
172.28.54.27
:13302/semantic/unisoundc2c/speech-nlu-parse
Content-Type: application/json
Content-Type: application/json
{
{
"ip": "14.215.222.17",
"ip": "14.215.222.17",
"mac": "ece154a865eb",
"mac": "ece154a865eb",
"mid": "11011",
"mid": "11011",
"query":"
天使的翅膀
",
"query":"
谁是你爸
",
"requestId": "123456111"
"requestId": "123456111"
}
}
...
@@ -38,7 +38,7 @@ Content-Type: application/json
...
@@ -38,7 +38,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": {}
}
}
...
@@ -57,7 +57,7 @@ Content-Type: application/json
...
@@ -57,7 +57,7 @@ Content-Type: application/json
},
},
"nluRet": {
"nluRet": {
"asr_recongize": "",
"asr_recongize": "",
"text": "
播放歌曲大菠萝
"
"text": "
谁是你爸
"
}
}
},
},
"version": "v0"
"version": "v0"
...
@@ -79,7 +79,7 @@ Content-Type: application/json
...
@@ -79,7 +79,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 @
296dcdb6
...
@@ -835,7 +835,11 @@ func musicDomain(params *model.SpeechDomainParams) []byte {
...
@@ -835,7 +835,11 @@ func musicDomain(params *model.SpeechDomainParams) []byte {
}
}
//result.ResponseText = "以下音乐由网易云提供:" //params.SpeechWsResp.Dm.Nlg
//result.ResponseText = "以下音乐由网易云提供:" //params.SpeechWsResp.Dm.Nlg
}
}
if
list
.
GetData
()
.
GetResponseText
()
==
""
{
return
replyWithChat
(
"网络不稳定,请稍后再试"
,
"doudi"
)
}
else
{
result
.
ResponseText
=
list
.
GetData
()
.
GetResponseText
()
result
.
ResponseText
=
list
.
GetData
()
.
GetResponseText
()
}
//else {
//else {
// return replyWithChat("抱歉,因版本限制或非会员,暂时无法播放", "doudi")
// return replyWithChat("抱歉,因版本限制或非会员,暂时无法播放", "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