Skip to content

Commit

Permalink
models & error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
albho committed Feb 26, 2024
1 parent 99af742 commit f50accf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions demo/nodejs/mic.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const {
Eagle,
EagleProfiler,
EagleProfilerEnrollFeedback,
EagleActivationLimitReachedError
EagleErrors
} = require("../../binding/nodejs");

const FEEDBACK_TO_DESCRIPTIVE_MSG = {
Expand Down Expand Up @@ -166,7 +166,7 @@ async function micDemo() {
console.log(`Speaker profile is saved to ${outputProfilePath}`);
}
} catch (e) {
if (e instanceof EagleActivationLimitReachedError) {
if (e instanceof EagleErrors.EagleActivationLimitReachedError) {
console.error(`AccessKey '${accessKey}' has reached it's processing limit.`);
} else {
console.error('Failed to enroll speaker:', e);
Expand Down Expand Up @@ -218,7 +218,7 @@ async function micDemo() {

process.stdout.write("\nStopping...");
} catch (e) {
if (e instanceof EagleActivationLimitReachedError) {
if (e instanceof EagleErrors.EagleActivationLimitReachedError) {
console.error(`AccessKey '${accessKey}' has reached it's processing limit.`);
} else {
console.error('Error during testing:', e);
Expand Down
Binary file added lib/node/linux/x86_64/pv_eagle.node
Binary file not shown.

0 comments on commit f50accf

Please sign in to comment.