Commit 99a167ce authored by liujiangnan's avatar liujiangnan

feat: 测试录音转文本

parent 6cc1644e
......@@ -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;
......
......@@ -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('------------------------------');
......
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