Skip to content

Commit

Permalink
Web Release (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
ErisMik authored Jan 29, 2024
1 parent 03e9c1a commit 09b3c46
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 40 deletions.
2 changes: 1 addition & 1 deletion binding/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Eagle Speaker Recognition engine for web browsers (via WebAssembly)",
"author": "Picovoice Inc",
"license": "Apache-2.0",
"version": "0.2.0",
"version": "1.0.0",
"keywords": [
"eagle",
"web",
Expand Down
34 changes: 0 additions & 34 deletions binding/web/test/eagle.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,40 +220,6 @@ describe('Eagle Profiler', async function () {
);
});

it('should detect unknown speaker during enrollment (worker)', () => {
cy.getFramesFromFile('audio_samples/speaker_1_utt_1.wav').then(
async inputPcm1 => {
cy.getFramesFromFile('audio_samples/speaker_1_utt_2.wav').then(
async inputPcm2 => {
cy.getFramesFromFile('audio_samples/speaker_2_test_utt.wav').then(
async imposterPcm => {
try {
const profiler = await EagleProfiler.create(ACCESS_KEY, {
publicPath: '/test/eagle_params.pv',
forceWrite: true,
});

await getProfile(
profiler,
[inputPcm1, inputPcm2, imposterPcm],
[
EagleProfilerEnrollFeedback.AUDIO_OK,
EagleProfilerEnrollFeedback.AUDIO_OK,
EagleProfilerEnrollFeedback.UNKNOWN_SPEAKER,
]
);
await profiler.release();
} catch (e) {
expect(e).to.be.undefined;
}
}
);
}
);
}
);
});

it(`should return correct error message stack`, async () => {
let messageStack = [];
try {
Expand Down
2 changes: 1 addition & 1 deletion demo/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"author": "Picovoice Inc",
"license": "Apache-2.0",
"dependencies": {
"@picovoice/eagle-web": "=0.2.0",
"@picovoice/eagle-web": "=1.0.0",
"@picovoice/web-voice-processor": "~4.0.8"
},
"devDependencies": {
Expand Down
8 changes: 4 additions & 4 deletions demo/web/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
# yarn lockfile v1


"@picovoice/eagle-web@=0.2.0":
version "0.2.0"
resolved "https://registry.yarnpkg.com/@picovoice/eagle-web/-/eagle-web-0.2.0.tgz#8e9734601ef7c491ecc86256b5d5cf371654c175"
integrity sha512-DUfWF8M6Z5UY5stbVuvrn7nCYAgwtu0g1DaxDJP03OM3bN9q40TywHLTXeqqvV+jrHRPPxVMciwcDA3BUDlzng==
"@picovoice/eagle-web@=1.0.0":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@picovoice/eagle-web/-/eagle-web-1.0.0.tgz#3a55eae9360842622157c1f4c8a58de12ebbefb3"
integrity sha512-2mylTzNiCsY+z+pBfWIf1nRn/TZKAjh+t4Zf93epI2o5TQ0lW1vjM90zZUcKJ23tD6dL1HAUTrlY5Gb1aRV6Yg==
dependencies:
"@picovoice/web-utils" "=1.3.2"

Expand Down

0 comments on commit 09b3c46

Please sign in to comment.