Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
middleLayer_for_debug
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
middleLayer_for_debug
Commits
99a167ce
Commit
99a167ce
authored
Feb 22, 2022
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 测试录音转文本
parent
6cc1644e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
air.js
assets/middleLayer_for_debug/script/air.js
+1
-0
middleLayer.js
assets/middleLayer_for_debug/script/middleLayer.js
+2
-2
No files found.
assets/middleLayer_for_debug/script/air.js
View file @
99a167ce
...
...
@@ -96,6 +96,7 @@ export function initAir(_this) {
gameEnd
()
{
_this
.
log
(
`===成功调用gameEnd===`
);
},
// isSpeechToText 1: 录音转文本,0:纯录音
startRecord
(
isSpeechToText
)
{
_this
.
log
(
`===成功调用startRecord=== isSpeechToText ==
${
isSpeechToText
}
`
);
window
.
courseware
.
hasCalledStartRecord
=
true
;
...
...
assets/middleLayer_for_debug/script/middleLayer.js
View file @
99a167ce
...
...
@@ -303,11 +303,11 @@ cc.Class({
});
cc
.
find
(
'
middleLayer/ui/BtnOpenRecord
'
).
on
(
'
click
'
,
()
=>
{
window
.
courseware
.
startRecord
(
''
);
window
.
courseware
.
startRecord
(
1
);
});
cc
.
find
(
'
middleLayer/ui/BtnCloseRecord
'
).
on
(
'
click
'
,
()
=>
{
window
.
courseware
.
stopRecord
(
0
,
res
=>
{
window
.
courseware
.
stopRecord
(
res
=>
{
this
.
log
(
'
--------录音返回结果 stopRecord ------------
'
);
this
.
log
(
JSON
.
stringify
(
res
))
this
.
log
(
'
------------------------------
'
);
...
...
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