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
3dca8b4b
Commit
3dca8b4b
authored
May 16, 2025
by
赵文静
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加日志
parent
bae36f65
Pipeline
#5199
passed with stage
in 0 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
1 deletion
+6
-1
model/models.go
model/models.go
+1
-1
service/speechNlu/domain.go
service/speechNlu/domain.go
+1
-0
service/speechNlu/speechWs.go
service/speechNlu/speechWs.go
+4
-0
No files found.
model/models.go
View file @
3dca8b4b
...
...
@@ -270,7 +270,7 @@ type ResponseBody struct {
}
`json:"header"`
ResponseText
string
`json:"response_text"`
AsrRecongize
string
`json:"asr_recongize"`
ListItems
[]
map
[
string
]
interface
{}
`json:"listItems"`
ListItems
[]
map
[
string
]
interface
{}
`json:"listItems
,omitempty
"`
}
type
SDKExtend
struct
{
...
...
service/speechNlu/domain.go
View file @
3dca8b4b
...
...
@@ -51,6 +51,7 @@ func baseParse(params *model.SpeechDomainParams) (*model.ResponseBody, error) {
//result.Header.Semantic.SkillId = result.Header.Semantic.Domain + "." + result.Header.Semantic.Intent
result
.
ResponseText
=
params
.
SpeechWsResp
.
Dm
.
Nlg
result
.
AsrRecongize
=
params
.
SpeechWsResp
.
Dm
.
Input
//result.ListItems = make([]map[string]interface{}, 0)
if
!
params
.
SpeechWsResp
.
Dm
.
ShouldEndSession
{
fmt
.
Println
(
"保存:"
,
params
.
SpeechWsResp
.
SessionId
)
UpdateSession
(
params
.
Mac
,
params
.
SpeechWsResp
.
SessionId
)
...
...
service/speechNlu/speechWs.go
View file @
3dca8b4b
...
...
@@ -76,6 +76,10 @@ func SpeechNlpWsReq(data *model.SemanticReq, sessionId string) *SpeechWsData {
req
.
SessionId
=
sessionId
req
.
RefText
=
data
.
Query
log
.
Printf
(
"请求的sessionId: %s"
,
req
.
SessionId
)
global
.
Logger
.
WithFields
(
logger
.
Fields
{
"req"
:
req
,
"sessionId"
:
sessionId
,
})
.
Error
(
"SpeechNlpWsReq"
)
return
req
}
...
...
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