Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
DG_FAF
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
DG_FAF
Commits
6d58fd3f
Commit
6d58fd3f
authored
Mar 24, 2023
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复录音转写 异常
parent
46a224ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
RecordModal_DG_FAF.ts
assets/DG_FAF/prefabs/RecordModal/RecordModal_DG_FAF.ts
+7
-7
No files found.
assets/DG_FAF/prefabs/RecordModal/RecordModal_DG_FAF.ts
View file @
6d58fd3f
...
...
@@ -271,13 +271,13 @@ export default class NewClass extends cc.Component {
this
.
isRecording
=
false
;
if
(
this
.
handlerSpeach
)
{
this
.
handlerSpeach
((
e
)
=>
{
console
.
log
(
"
得到转换结果
"
,
e
)
this
.
setEditboxString
(
e
.
text
);
t
his
.
recordUrl
=
e
.
audioUrl
;
this
.
preLoadAudio
(
this
.
recordUrl
);
this
.
handlerSpeach
=
null
;
},(
e
)
=>
{
console
.
log
(
"
得到转换结果
"
,
e
)
console
.
log
(
"
Record result
"
,
e
)
let
obj
=
{
text
:
""
,
audioUrl
:
""
}
t
ry
{
obj
=
JSON
.
parse
(
e
)
}
catch
(
err
)
{
console
.
log
(
err
)
}
this
.
setEditboxString
(
e
.
text
);
this
.
recordUrl
=
e
.
audioUrl
;
this
.
preLoadAudio
(
this
.
recordUrl
);
...
...
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