Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

autospeaker

flying-web-c3ISC1.0.7

<!-- let fbSpeaker = new FBSpeaker({ isKeyWord: true, siteList: ['启动', '电网'] }); fbSpeaker.init();

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()
    } -->