Lightcord/modules/discord_krisp/index.js

18 lines
394 B
JavaScript
Raw Normal View History

2020-05-16 23:24:51 +02:00
const KrispModule = require('./discord_krisp.node');
KrispModule._initialize();
KrispModule.getNcModels = function() {
return new Promise(resolve => {
KrispModule._getNcModels(models => resolve(models));
});
};
KrispModule.getVadModels = function() {
return new Promise(resolve => {
KrispModule._getVadModels(models => resolve(models));
});
};
module.exports = KrispModule;