Text_to_Speech/assets/Test - 001.js

29 lines
714 B
JavaScript
Raw Permalink Normal View History

2022-01-21 09:50:26 +00:00
// Learn cc.Class:
// - https://docs.cocos.com/creator/manual/en/scripting/class.html
// Learn Attribute:
// - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
// - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
cc.Class({
extends: cc.Component,
properties: {
},
// LIFE-CYCLE CALLBACKS:
// onLoad () {},
start() {
var voicelist = responsiveVoice.getVoices();
responsiveVoice.speak("666", "Chinese Female", {
onend: function (EndCallback) {
// IsEnd = true;
}
});
},
// update (dt) {},
});