Commit 963fe620 authored by 范雪寒's avatar 范雪寒
parents 504cf1e4 99a167ce
...@@ -96,6 +96,7 @@ export function initAir(_this) { ...@@ -96,6 +96,7 @@ export function initAir(_this) {
gameEnd() { gameEnd() {
_this.log(`===成功调用gameEnd===`); _this.log(`===成功调用gameEnd===`);
}, },
// isSpeechToText 1: 录音转文本,0:纯录音
startRecord(isSpeechToText) { startRecord(isSpeechToText) {
_this.log(`===成功调用startRecord=== isSpeechToText == ${isSpeechToText}`); _this.log(`===成功调用startRecord=== isSpeechToText == ${isSpeechToText}`);
window.courseware.hasCalledStartRecord = true; window.courseware.hasCalledStartRecord = true;
......
...@@ -303,11 +303,11 @@ cc.Class({ ...@@ -303,11 +303,11 @@ cc.Class({
}); });
cc.find('middleLayer/ui/BtnOpenRecord').on('click', () => { cc.find('middleLayer/ui/BtnOpenRecord').on('click', () => {
window.courseware.startRecord(''); window.courseware.startRecord(1);
}); });
cc.find('middleLayer/ui/BtnCloseRecord').on('click', () => { cc.find('middleLayer/ui/BtnCloseRecord').on('click', () => {
window.courseware.stopRecord(0, res => { window.courseware.stopRecord(res => {
this.log('--------录音返回结果 stopRecord ------------'); this.log('--------录音返回结果 stopRecord ------------');
this.log(JSON.stringify(res)) this.log(JSON.stringify(res))
this.log('------------------------------'); this.log('------------------------------');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment