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
916bfab6
Commit
916bfab6
authored
Jul 13, 2023
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dayin
parent
1ed99576
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
hy17_hds.ts
assets/hy17_hds/scene/hy17_hds.ts
+4
-3
No files found.
assets/hy17_hds/scene/hy17_hds.ts
View file @
916bfab6
...
@@ -229,7 +229,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -229,7 +229,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
showVoiceFlash
();
this
.
showVoiceFlash
();
this
.
microphoneAreaRecover
();
this
.
microphoneAreaRecover
();
this
.
log
(
"
startTestConvert
"
)
this
.
log
(
"
-----------------------
startTestConvert
"
)
cc
.
audioEngine
.
stopAllEffects
();
cc
.
audioEngine
.
stopAllEffects
();
courseware
&&
courseware
.
startTestConvert
(
this
.
letter
);
//开始录音
courseware
&&
courseware
.
startTestConvert
(
this
.
letter
);
//开始录音
...
@@ -270,12 +270,13 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -270,12 +270,13 @@ export default class SceneComponent extends MyCocosSceneComponent {
if
(
!
courseware
)
{
if
(
!
courseware
)
{
return
this
.
recrodEnd
(
testData
)
return
this
.
recrodEnd
(
testData
)
}
}
this
.
log
(
"
---------------courseware.stopTestConvert:
"
)
courseware
&&
courseware
.
stopTestConvert
((
res
)
=>
{
courseware
&&
courseware
.
stopTestConvert
((
res
)
=>
{
this
.
log
(
"
stopTestConvert:
"
+
res
)
this
.
log
(
"
---------------
stopTestConvert:
"
+
res
)
res
=
JSON
.
parse
(
res
);
res
=
JSON
.
parse
(
res
);
this
.
recrodEnd
(
res
);
this
.
recrodEnd
(
res
);
},
covert
=>
{
},
covert
=>
{
this
.
log
(
"
convertUrl:
"
+
covert
.
convertUrl
)
this
.
log
(
"
---------------
convertUrl:
"
+
covert
.
convertUrl
)
this
.
recordAudio
=
covert
.
convertUrl
;
this
.
recordAudio
=
covert
.
convertUrl
;
// 变声返回结果,结构为 {convertUrl: ‘http://jliasldfjsdfi.mp3'}
// 变声返回结果,结构为 {convertUrl: ‘http://jliasldfjsdfi.mp3'}
});
//结束录音
});
//结束录音
...
...
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