Skip to content

Commit

Permalink
Node rpi5 support (#779)
Browse files Browse the repository at this point in the history
  • Loading branch information
laves authored Feb 2, 2024
1 parent 2a2c689 commit adb7433
Show file tree
Hide file tree
Showing 11 changed files with 125 additions and 268 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/nodejs-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
strategy:
fail-fast: false
matrix:
machine: [rpi2, rpi3-32, rpi3-64, rpi4-32, rpi4-64, jetson, beaglebone]
machine: [rpi2, rpi3-32, rpi3-64, rpi4-32, rpi4-64, rpi5-64, jetson, beaglebone]
include:
- machine: rpi2
platform: raspberry-pi
Expand All @@ -74,6 +74,8 @@ jobs:
platform: raspberry-pi
- machine: rpi4-64
platform: raspberry-pi
- machine: rpi5-64
platform: raspberry-pi
- machine: jetson
platform: jetson
- machine: beaglebone
Expand All @@ -84,9 +86,6 @@ jobs:
with:
submodules: recursive

- name: Pre-build dependencies
run: npm install --global yarn

- name: Install dependencies
run: yarn install

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
strategy:
fail-fast: false
matrix:
machine: [rpi2, rpi3-32, rpi3-64, rpi4-32, rpi4-64, jetson, beaglebone]
machine: [rpi2, rpi3-32, rpi3-64, rpi4-32, rpi4-64, rpi5-64, jetson, beaglebone]

steps:
- uses: actions/checkout@v3
Expand Down
8 changes: 4 additions & 4 deletions demo/nodejs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ Picovoice is an end-to-end platform for building voice products on your terms. I

## Compatibility

These demos run Rhino on **NodeJS 12+** on the following platforms:
These demos run Rhino on **NodeJS 16+** on the following platforms:

- Windows (x86_64)
- Linux (x86_64)
- macOS (x86_64, arm64)
- Raspberry Pi (2,3,4)
- Raspberry Pi (2, 3, 4, 5)
- NVIDIA Jetson (Nano)
- BeagleBone

Expand Down Expand Up @@ -54,7 +54,7 @@ npm install -g @picovoice/picovoice-node-demo

Here is an example which will understand commands from the "Smart Lighting" demo from the [Rhino GitHub repository](https://github.com/Picovoice/rhino/blob/master/resources/contexts/) (note that context files are platform-dependent; choose the appropriate one for the platform you are using; this demo uses the "mac" version)

Using the 'global' install methods above should add `pv-mic-demo` to your system path, which we can use to run the mic demo.
Using the 'global' install methods above should add `pv-mic-demo` to your system path, which we can use to run the mic demo.

Use `pv-mic-demo` to run the mic demo. First select an input audio device to start recording audio and provide your Picovoice AccessKey with `--access_key`.

Expand All @@ -70,7 +70,7 @@ index: 1, device name: MacBook Air Microphone
```

Specify the input audio device with `--audio_device_index` (this may be empty if you
wish to use system default microphone). In this example we will use USB Audio Device.
wish to use system default microphone). In this example we will use USB Audio Device.

Specify the Wake Word (.ppn) with `--keyword_file_path` and the Speech-to-Intent context (.rhn file) with `--context_file_path`.

Expand Down
6 changes: 3 additions & 3 deletions demo/nodejs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@picovoice/picovoice-node-demo",
"version": "3.0.0",
"version": "3.0.2",
"description": "Picovoice SDK for NodeJS 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/picovoice-node": "~3.0.1",
"@picovoice/pvrecorder-node": "~1.2.1",
"@picovoice/picovoice-node": "~3.0.2",
"@picovoice/pvrecorder-node": "~1.2.2",
"commander": "^6.1.0",
"wavefile": "^11.0.0"
},
Expand Down
36 changes: 18 additions & 18 deletions demo/nodejs/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,28 @@
# yarn lockfile v1


"@picovoice/picovoice-node@~3.0.1":
version "3.0.1"
resolved "https://registry.yarnpkg.com/@picovoice/picovoice-node/-/picovoice-node-3.0.1.tgz#ab346a3c022938200e8da73c4d7d12aa93c18777"
integrity sha512-DG99e+qpQES4QC3D9hHQcQYORgur0UHpOeLQ5D4IHTECSOw9NB5uyO9i0Iu6j8ahl5Mt7YjyguZ248eMFpiyng==
"@picovoice/picovoice-node@~3.0.2":
version "3.0.2"
resolved "https://registry.yarnpkg.com/@picovoice/picovoice-node/-/picovoice-node-3.0.2.tgz#6afcec113813094bae05368dfcb43140791e289d"
integrity sha512-WzWjbetg9QbeqecrzLJLZhfVUpSASMPQCFGEbA8Tkdf/BkMyUfb7WJvfyY3MOu12II/k2cfrBOfhX/OOij/KgA==
dependencies:
"@picovoice/porcupine-node" "=3.0.1"
"@picovoice/rhino-node" "=3.0.2"
"@picovoice/porcupine-node" "=3.0.2"
"@picovoice/rhino-node" "=3.0.3"

"@picovoice/porcupine-node@=3.0.1":
version "3.0.1"
resolved "https://registry.yarnpkg.com/@picovoice/porcupine-node/-/porcupine-node-3.0.1.tgz#331a55b7f5c45f5f3e62c88f3ce2604feebd82ff"
integrity sha512-Vzg1fGAXwSJ6tio6uz5AOqWKODbb4+TpTYNNGdNatSpSkdn01nQNoDlWZB3Ut3oT5cccKWWfMlZcXRXrVpZzkQ==
"@picovoice/porcupine-node@=3.0.2":
version "3.0.2"
resolved "https://registry.yarnpkg.com/@picovoice/porcupine-node/-/porcupine-node-3.0.2.tgz#9084c61b12531a406ecab3fab20d159a48b5ac19"
integrity sha512-Fkl/UwUT5y8tZ4a53N/grYcP2mftJAsjySucHRqPmVM6zSszYdAB71NggNZ13wZwAZ/2qhNVr7Q73gdQTE4/jQ==

"@picovoice/pvrecorder-node@~1.2.1":
version "1.2.1"
resolved "https://registry.yarnpkg.com/@picovoice/pvrecorder-node/-/pvrecorder-node-1.2.1.tgz#8e112ecc7a4836aa4fa92d62ac7942d8a2366db8"
integrity sha512-7TtRMh04PSVn542Oq1v/MGLFuNPdUrrv+f7qbCGOWRc8y6ox+FATigdQqLRbRey4kZWf40dNHQFdVPCk5ZcXnQ==
"@picovoice/pvrecorder-node@~1.2.2":
version "1.2.2"
resolved "https://registry.yarnpkg.com/@picovoice/pvrecorder-node/-/pvrecorder-node-1.2.2.tgz#41c39719b408e29c581b3094a9ff4c59f282b026"
integrity sha512-GuzZhWslbR4TLE3VxTiqjax8Mc8f1nB69bY5jag4ETlCxo7q/KpeUbWRvojhtNVPvpFLbospZAb6vfgxkEqgJQ==

"@picovoice/rhino-node@=3.0.2":
version "3.0.2"
resolved "https://registry.yarnpkg.com/@picovoice/rhino-node/-/rhino-node-3.0.2.tgz#9e0b34d97a4eb3550270914f4b564eebe331347d"
integrity sha512-0pFxkFkMHKhFsZ/iIo7fW6zTpQgvLPUn+soGucfzU6Gd3GrAw/7MjqQwpps2c/rW62WFcPBghB7m+fcAe22bmQ==
"@picovoice/rhino-node@=3.0.3":
version "3.0.3"
resolved "https://registry.yarnpkg.com/@picovoice/rhino-node/-/rhino-node-3.0.3.tgz#3faac1088a6de016c38d9535572c34e497c3ba63"
integrity sha512-a9JyvBggbmhsV8Z5iV6dYlLzhy2ZSR9NNNG/whbK8SnSLSUEjWEkHufVNQTRkOg1BRq1D4OIVPz2kvwJfanYQQ==

commander@^6.1.0:
version "6.2.1"
Expand Down
2 changes: 1 addition & 1 deletion sdk/nodejs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ This binding is for running Picovoice on **NodeJS 16+** on the following platfor
- Windows (x86_64)
- Linux (x86_64)
- macOS (x86_64, arm64)
- Raspberry Pi (2,3,4)
- Raspberry Pi (2, 3, 4, 5)
- NVIDIA Jetson (Nano)
- BeagleBone

Expand Down
6 changes: 3 additions & 3 deletions sdk/nodejs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@picovoice/picovoice-node",
"version": "3.0.1",
"version": "3.0.2",
"description": "Picovoice SDK for NodeJS",
"main": "dist/index.js",
"types": "dist/index.d.js",
Expand Down Expand Up @@ -39,8 +39,8 @@
"lint": "eslint . --ext .js,.ts"
},
"dependencies": {
"@picovoice/porcupine-node": "=3.0.1",
"@picovoice/rhino-node": "=3.0.2"
"@picovoice/porcupine-node": "=3.0.2",
"@picovoice/rhino-node": "=3.0.3"
},
"devDependencies": {
"@types/jest": "^27.4.1",
Expand Down
224 changes: 0 additions & 224 deletions sdk/nodejs/src/platforms.ts

This file was deleted.

Loading

0 comments on commit adb7433

Please sign in to comment.