18 lines
394 B
JavaScript
18 lines
394 B
JavaScript
|
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;
|