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
49d12b0d
Commit
49d12b0d
authored
Jun 24, 2025
by
赵文静
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加音乐专辑字段
parent
c3e78176
Pipeline
#5460
passed with stage
in 0 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
6 deletions
+12
-6
CHANGELOG.md
CHANGELOG.md
+4
-0
c2c.http
c2c.http
+4
-4
service/speechNlu/domain.go
service/speechNlu/domain.go
+4
-2
No files found.
CHANGELOG.md
View file @
49d12b0d
# 更新日志
# 更新日志
## [0.0.1-beta.4] - 2025.6.24
### Changed
-
增加音乐专辑字段
## [0.0.1-beta.3] - 2025.6.19
## [0.0.1-beta.3] - 2025.6.19
### Changed
### Changed
-
增加音乐兜底
-
增加音乐兜底
...
...
c2c.http
View file @
49d12b0d
...
@@ -5,7 +5,7 @@ Content-Type: application/json
...
@@ -5,7 +5,7 @@ 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"
}
}
...
@@ -17,7 +17,7 @@ Content-Type: application/json
...
@@ -17,7 +17,7 @@ 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": {}
}
}
...
@@ -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 @
49d12b0d
...
@@ -831,6 +831,7 @@ func musicDomain(params *model.SpeechDomainParams) []byte {
...
@@ -831,6 +831,7 @@ func musicDomain(params *model.SpeechDomainParams) []byte {
"mediaId"
:
list
.
Data
.
ListItems
[
i
]
.
MediaId
,
"mediaId"
:
list
.
Data
.
ListItems
[
i
]
.
MediaId
,
"singer"
:
list
.
Data
.
ListItems
[
i
]
.
Singer
,
"singer"
:
list
.
Data
.
ListItems
[
i
]
.
Singer
,
"song"
:
list
.
Data
.
ListItems
[
i
]
.
Song
,
"song"
:
list
.
Data
.
ListItems
[
i
]
.
Song
,
"album"
:
list
.
Data
.
ListItems
[
i
]
.
Album
,
})
})
}
}
//result.ResponseText = "以下音乐由网易云提供:" //params.SpeechWsResp.Dm.Nlg
//result.ResponseText = "以下音乐由网易云提供:" //params.SpeechWsResp.Dm.Nlg
...
@@ -1066,6 +1067,7 @@ func childMusicDomain(params *model.SpeechDomainParams) []byte {
...
@@ -1066,6 +1067,7 @@ func childMusicDomain(params *model.SpeechDomainParams) []byte {
res
.
ListItems
=
append
(
res
.
ListItems
,
map
[
string
]
interface
{}{
res
.
ListItems
=
append
(
res
.
ListItems
,
map
[
string
]
interface
{}{
"url"
:
con
.
LinkUrl
,
"url"
:
con
.
LinkUrl
,
"song"
:
con
.
Title
,
"song"
:
con
.
Title
,
"album"
:
con
.
Album
,
//思必驰的没有回复话术
//思必驰的没有回复话术
//"content": params.Dm.Widget.Content[i].TextContent,
//"content": params.Dm.Widget.Content[i].TextContent,
})
})
...
...
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