Add keyword spotting API for node-addon-api (#877)
This commit is contained in:
@@ -82,11 +82,5 @@ ai.on('data', data => {
|
||||
}
|
||||
});
|
||||
|
||||
ai.on('close', () => {
|
||||
console.log('Free resources');
|
||||
stream.free();
|
||||
recognizer.free();
|
||||
});
|
||||
|
||||
ai.start();
|
||||
console.log('Started! Please speak')
|
||||
|
||||
Reference in New Issue
Block a user