Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hy17_hds
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
hy17_hds
Commits
961f5134
Commit
961f5134
authored
Jul 13, 2023
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
916bfab6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
hy17_hds.ts
assets/hy17_hds/scene/hy17_hds.ts
+13
-3
No files found.
assets/hy17_hds/scene/hy17_hds.ts
View file @
961f5134
...
...
@@ -274,14 +274,24 @@ export default class SceneComponent extends MyCocosSceneComponent {
courseware
&&
courseware
.
stopTestConvert
((
res
)
=>
{
this
.
log
(
"
---------------stopTestConvert:
"
+
res
)
res
=
JSON
.
parse
(
res
);
this
.
recrodEnd
(
res
);
this
.
tempRes
=
res
this
.
recordCheck
();
},
covert
=>
{
this
.
log
(
"
---------------convertUrl:
"
+
covert
.
convertUrl
)
this
.
log
(
"
---------------convertUrl:
"
+
covert
)
covert
=
JSON
.
parse
(
covert
);
this
.
recordAudio
=
covert
.
convertUrl
;
this
.
recordCheck
();
// 变声返回结果,结构为 {convertUrl: ‘http://jliasldfjsdfi.mp3'}
});
//结束录音
}
async
recrodEnd
(
data
)
{
private
tempRes
:
any
;
recordCheck
()
{
this
.
log
(
"
---------------recordCheck:
"
+
this
.
recordAudio
+
"
|
"
+
this
.
tempRes
)
if
(
this
.
recordAudio
&&
this
.
tempRes
)
{
this
.
recrodEnd
(
this
.
tempRes
);
}
}
async
recrodEnd
(
data
?:
any
)
{
this
.
hideVoiceFlash
();
let
score
=
data
.
result
.
overall
;
pg
.
event
.
emit
(
'
layer_record_score
'
,
score
);
...
...
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