Commit 916bfab6 authored by Tt's avatar Tt

dayin

parent 1ed99576
......@@ -229,7 +229,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.showVoiceFlash();
this.microphoneAreaRecover();
this.log("startTestConvert")
this.log("-----------------------startTestConvert")
cc.audioEngine.stopAllEffects();
courseware && courseware.startTestConvert(this.letter); //开始录音
......@@ -270,12 +270,13 @@ export default class SceneComponent extends MyCocosSceneComponent {
if (!courseware) {
return this.recrodEnd(testData)
}
this.log("---------------courseware.stopTestConvert:")
courseware && courseware.stopTestConvert((res) => {
this.log("stopTestConvert:" + res)
this.log("---------------stopTestConvert:" + res)
res = JSON.parse(res);
this.recrodEnd(res);
}, covert => {
this.log("convertUrl:" + covert.convertUrl)
this.log("---------------convertUrl:" + covert.convertUrl)
this.recordAudio = covert.convertUrl;
// 变声返回结果,结构为 {convertUrl: ‘http://jliasldfjsdfi.mp3'}
});//结束录音
......
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