autospeaker
v1.0.7
Published
<!-- let fbSpeaker = new FBSpeaker({ isKeyWord: true, siteList: ['启动', '电网'] }); fbSpeaker.init();
Downloads
5
Readme
<!-- let fbSpeaker = new FBSpeaker({
isKeyWord: true,
siteList: ['启动', '电网']
});
fbSpeaker.init();
fbSpeaker.addCommands([{
indexes: ["打开电网"],
action: function (i) {
// i = index of the recognized option
console.log(i);
alert('触发');
}
}]);
fbSpeaker.addCommands([{
indexes: ["打开新建监控"],
action: function (i) {
// i = index of the recognized option
console.log(i);
alert('触发');
}
}]);
fbSpeaker.addCommands([{
indexes: ["开始"],
action: function (i) {
// i = index of the recognized option
console.log(i);
alert('触发2');
}
}]);
fbSpeaker.addCommands([{
indexes: [ "你好"],
action: function (i) {
// i = index of the recognized option
console.log(i);
alert('触发3');
}
}]);
function aa() {
fbSpeaker.start();
}
function end() {
fbSpeaker.stop()
} -->