Skip to content

Commit

Permalink
Update Node support (#235)
Browse files Browse the repository at this point in the history
  • Loading branch information
picoliu authored Feb 13, 2025
1 parent de3f714 commit 2354911
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nodejs-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [16.x, 18.x, 20.x]
node-version: [18.x, 20.x, 22.x]

steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [16.x, 18.x, 20.x]
node-version: [18.x, 20.x, 22.x]

steps:
- uses: actions/checkout@v3
Expand Down
4 changes: 2 additions & 2 deletions binding/nodejs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@picovoice/cobra-node",
"version": "2.0.3",
"version": "2.0.4",
"description": "Picovoice Cobra Node.js binding",
"main": "dist/index.js",
"types": "dist/types/index.d.ts",
Expand Down Expand Up @@ -49,7 +49,7 @@
"wavefile": "^11.0.0"
},
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"cpu": [
"!ia32",
Expand Down
2 changes: 1 addition & 1 deletion demo/nodejs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Cobra is an on-device voice activity detection engine. Cobra is:

## Compatibility

- Node.js 16+
- Node.js 18+
- Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64, arm64), and Raspberry Pi (3, 4, 5).

## Installation
Expand Down
8 changes: 4 additions & 4 deletions demo/nodejs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@picovoice/cobra-node-demo",
"version": "2.0.3",
"version": "2.0.4",
"description": "Picovoice Cobra Node.js file-based and microphone demos",
"scripts": {
"file": "node file.js",
Expand All @@ -16,8 +16,8 @@
"author": "Picovoice Inc.",
"license": "Apache-2.0",
"dependencies": {
"@picovoice/cobra-node": "=2.0.3",
"@picovoice/pvrecorder-node": "~1.2.5",
"@picovoice/cobra-node": "=2.0.4",
"@picovoice/pvrecorder-node": "~1.2.6",
"commander": "^6.1.0",
"readline": "^1.3.0",
"wavefile": "^11.0.0"
Expand All @@ -29,7 +29,7 @@
"directory": "demo/nodejs"
},
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"cpu": [
"!ia32",
Expand Down
16 changes: 8 additions & 8 deletions demo/nodejs/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
# yarn lockfile v1


"@picovoice/cobra-node@=2.0.3":
version "2.0.3"
resolved "https://registry.yarnpkg.com/@picovoice/cobra-node/-/cobra-node-2.0.3.tgz#3062a06ed6051e8d7d016eb03de577a420918316"
integrity sha512-fgLTBiLcP4OgmMmU7XFLCfDH7Ki9I+kJAKK2JTQsI/M884t49Qp0RaLfuEGB+pNl4Qo/5U4LsN/UU3uL8brOmA==
"@picovoice/cobra-node@=2.0.4":
version "2.0.4"
resolved "https://registry.yarnpkg.com/@picovoice/cobra-node/-/cobra-node-2.0.4.tgz#ae8b17e343043ba06eeb8d0fb1bcc7f018ff5957"
integrity sha512-A5ofpxQ1g1NiIbRcf+x+DJqjFuiecafBKeVFlzf56Utk03KXBMAnQWdco2H7C8X1h7GBu4y/XjUaD2RpZmKYnQ==

"@picovoice/pvrecorder-node@~1.2.5":
version "1.2.5"
resolved "https://registry.yarnpkg.com/@picovoice/pvrecorder-node/-/pvrecorder-node-1.2.5.tgz#a47e11d347979ef0f1b083657ff69dd9bd2efe5c"
integrity sha512-bnid5oInf22JRdrZ75z8ooewOza0whYI9w/oSQSZbkDvddylPPrY6x+1L1qIyf5Tb8ZtzKQL+aQ9m8SazgRHFg==
"@picovoice/pvrecorder-node@~1.2.6":
version "1.2.6"
resolved "https://registry.yarnpkg.com/@picovoice/pvrecorder-node/-/pvrecorder-node-1.2.6.tgz#6b6ea8b38892b916c9e3682342fa144c710e1aa0"
integrity sha512-AC8vqo+GWSGquMyyv0rhP68fjCxVe0kCo9QEq5mgBv7qHV2qVH5rm6ONPQQ6rmYD0SfppFaRP0yZKhPs1FhADQ==

commander@^6.1.0:
version "6.2.1"
Expand Down

0 comments on commit 2354911

Please sign in to comment.