Lightcord/modules/discord_krisp/index.js

18 lines
425 B
JavaScript

const KrispModule = require('./discord_krisp_'+process.platform+'.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;