Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove jetson, beaglebone, rpi2, and increment versions #222

Merged
merged 7 commits into from
Sep 4, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ body:
- macOS (x86_64, arm64)
- Windows (x86_64)
- Raspberry Pi
- NVIDIA Jetson
- BeagleBone
validations:
required: true
- type: input
Expand Down
21 changes: 4 additions & 17 deletions .github/workflows/c-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ on:
paths:
- 'demo/c/**'
- '!demo/c/README.md'
- 'lib/beaglebone/**'
- 'lib/jetson/**'
- 'lib/linux/**'
- 'lib/mac/**'
- 'lib/raspberry-pi/**'
Expand All @@ -19,8 +17,6 @@ on:
paths:
- 'demo/c/**'
- '!demo/c/README.md'
- 'lib/beaglebone/**'
- 'lib/jetson/**'
- 'lib/linux/**'
- 'lib/mac/**'
- 'lib/raspberry-pi/**'
Expand Down Expand Up @@ -55,7 +51,7 @@ jobs:

strategy:
matrix:
machine: [rpi2, rpi3-32, rpi3-64, rpi4-32, rpi4-64, rpi5-64, jetson, beaglebone]
machine: [rpi3-32, rpi3-64, rpi4-32, rpi4-64, rpi5-64]

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -83,7 +79,7 @@ jobs:
arch: amd64
- os: macos-latest
platform: mac
arch: x86_64
arch: arm64

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -112,11 +108,8 @@ jobs:

strategy:
matrix:
machine: [rpi2, rpi3-32, rpi3-64, rpi4-32, rpi4-64, rpi5-64, jetson, beaglebone]
machine: [rpi3-32, rpi3-64, rpi4-32, rpi4-64, rpi5-64]
include:
- machine: rpi2
platform: raspberry-pi
arch: cortex-a7
- machine: rpi3-32
platform: raspberry-pi
arch: cortex-a53
Expand All @@ -132,12 +125,6 @@ jobs:
- machine: rpi5-64
platform: raspberry-pi
arch: cortex-a76-aarch64
- machine: jetson
platform: jetson
arch: cortex-a57-aarch64
- machine: beaglebone
platform: beaglebone
arch: ''

steps:
- uses: actions/checkout@v3
Expand All @@ -154,4 +141,4 @@ jobs:
run: pip install -r test/requirements.txt

- name: Test
run: python3 test/test_cobra_c.py ${{secrets.PV_VALID_ACCESS_KEY}} ${{ matrix.platform }} ${{ matrix.arch }}
run: python3 test/test_cobra_c.py ${{secrets.PV_VALID_ACCESS_KEY}} ${{ matrix.platform }} ${{ matrix.arch }}
14 changes: 13 additions & 1 deletion .github/workflows/nodejs-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

# ************** REMOVE AFTER RELEASE ********************
- name: Build Node.js SDK
run: yarn && yarn build
working-directory: binding/nodejs
# ********************************************************

- name: Install dependencies
run: yarn install

Expand All @@ -50,11 +56,17 @@ jobs:

strategy:
matrix:
machine: [rpi2, rpi3-32, rpi3-64, rpi4-32, rpi4-64, rpi5-64, jetson, beaglebone]
machine: [rpi3-32, rpi3-64, rpi4-32, rpi4-64, rpi5-64]

steps:
- uses: actions/checkout@v3

# ************** REMOVE AFTER RELEASE ********************
- name: Build Node.js SDK
run: yarn && yarn build
working-directory: binding/nodejs
# ********************************************************

- name: Install dependencies
run: yarn install

Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/nodejs-perf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,8 @@ jobs:
strategy:
fail-fast: false
matrix:
machine: [rpi2, rpi3-32, rpi3-64, rpi4-32, rpi4-64, rpi5-64, jetson, beaglebone]
machine: [rpi3-32, rpi3-64, rpi4-32, rpi4-64, rpi5-64]
include:
- machine: rpi2
num_test_iterations: 20
- machine: rpi3-32
num_test_iterations: 50
- machine: rpi3-64
Expand All @@ -73,10 +71,6 @@ jobs:
num_test_iterations: 50
- machine: rpi5-64
num_test_iterations: 50
- machine: jetson
num_test_iterations: 50
- machine: beaglebone
num_test_iterations: 10

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 @@ -53,7 +53,7 @@ jobs:

strategy:
matrix:
machine: [rpi2, rpi3-32, rpi3-64, rpi4-32, rpi4-64, rpi5-64, jetson, beaglebone]
machine: [rpi3-32, rpi3-64, rpi4-32, rpi4-64, rpi5-64]

steps:
- uses: actions/checkout@v3
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/python-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ jobs:
- name: Pre-build dependencies
run: python -m pip install --upgrade pip

# TODO: remove after release
- name: Build dependencies
run: |
python -m pip install -U pip setuptools
pip install wheel && cd ../../binding/python && python3 setup.py sdist bdist_wheel && pip install dist/pvcobra-2.0.3-py3-none-any.whl

- name: Install dependencies
run: pip install -r requirements.txt

Expand All @@ -50,13 +56,17 @@ jobs:

strategy:
matrix:
machine: [rpi3-32, rpi3-64, rpi4-32, rpi4-64, rpi5-64, jetson]
machine: [rpi3-32, rpi3-64, rpi4-32, rpi4-64, rpi5-64]

steps:
- uses: actions/checkout@v3

# TODO: remove after release
- name: Build dependencies
run: pip install wheel && cd ../../binding/python && python3 setup.py sdist bdist_wheel && pip install dist/pvcobra-2.0.3-py3-none-any.whl

- name: Install dependencies
run: pip3 install -r requirements.txt

- name: Test
run: python3 cobra_demo_file.py --access_key ${{secrets.PV_VALID_ACCESS_KEY}} --input_wav_path ../../res/audio/sample.wav
run: python3 cobra_demo_file.py --access_key ${{secrets.PV_VALID_ACCESS_KEY}} --input_wav_path ../../res/audio/sample.wav
15 changes: 1 addition & 14 deletions .github/workflows/python-perf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ on:
paths:
- '.github/workflows/python-perf.yml'
- 'binding/python/test_cobra_perf.py'
- 'lib/beaglebone/**'
- 'lib/jetson/**'
- 'lib/linux/**'
- 'lib/mac/**'
- 'lib/raspberry-pi/**'
Expand All @@ -19,8 +17,6 @@ on:
paths:
- '.github/workflows/python-perf.yml'
- 'binding/python/test_cobra_perf.py'
- 'lib/beaglebone/**'
- 'lib/jetson/**'
- 'lib/linux/**'
- 'lib/mac/**'
- 'lib/raspberry-pi/**'
Expand Down Expand Up @@ -70,11 +66,8 @@ jobs:
strategy:
fail-fast: false
matrix:
machine: [rpi2, rpi3-32, rpi3-64, rpi4-32, rpi4-64, rpi5-64, jetson, beaglebone]
machine: [rpi3-32, rpi3-64, rpi4-32, rpi4-64, rpi5-64]
include:
- machine: rpi2
num_test_iterations: 50
performance_threshold_sec: 0.08
- machine: rpi3-32
num_test_iterations: 100
performance_threshold_sec: 0.05
Expand All @@ -90,12 +83,6 @@ jobs:
- machine: rpi5-64
num_test_iterations: 100
performance_threshold_sec: 0.011
- machine: jetson
num_test_iterations: 100
performance_threshold_sec: 0.025
- machine: beaglebone
num_test_iterations: 50
performance_threshold_sec: 0.25

steps:
- uses: actions/checkout@v3
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ on:
- '.github/workflows/python.yml'
- 'binding/python/**'
- '!binding/python/README.md'
- 'lib/beaglebone/**'
- 'lib/jetson/**'
- 'lib/linux/**'
- 'lib/mac/**'
- 'lib/raspberry-pi/**'
Expand All @@ -21,8 +19,6 @@ on:
- '.github/workflows/python.yml'
- 'binding/python/**'
- '!binding/python/README.md'
- 'lib/beaglebone/**'
- 'lib/jetson/**'
- 'lib/linux/**'
- 'lib/mac/**'
- 'lib/raspberry-pi/**'
Expand Down Expand Up @@ -65,7 +61,7 @@ jobs:
strategy:
fail-fast: false
matrix:
machine: [rpi2, rpi3-32, rpi3-64, rpi4-32, rpi4-64, rpi5-64, jetson, beaglebone]
machine: [rpi3-32, rpi3-64, rpi4-32, rpi4-64, rpi5-64]

steps:
- uses: actions/checkout@v3
Expand Down
20 changes: 19 additions & 1 deletion .github/workflows/rust-codestyle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ jobs:
toolchain: stable
override: true

# ************** REMOVE AFTER RELEASE ********************
- name: Build Rust SDK
run: ./copy.sh
working-directory: binding/rust
# ********************************************************

- name: Run clippy
run: cargo clippy -- -D warnings
working-directory: binding/rust
Expand All @@ -65,6 +71,12 @@ jobs:
toolchain: stable
override: true

# ************** REMOVE AFTER RELEASE ********************
- name: Build Rust SDK
run: ./copy.sh
working-directory: binding/rust
# ********************************************************

- name: Run clippy
run: cargo clippy -- -D warnings
working-directory: demo/rust/filedemo
Expand All @@ -86,6 +98,12 @@ jobs:
toolchain: stable
override: true

# ************** REMOVE AFTER RELEASE ********************
- name: Build Rust SDK
run: ./copy.sh
working-directory: binding/rust
# ********************************************************

- name: Run clippy
run: cargo clippy -- -D warnings
working-directory: demo/rust/micdemo
working-directory: demo/rust/micdemo
17 changes: 15 additions & 2 deletions .github/workflows/rust-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ on:
defaults:
run:
working-directory: demo/rust
shell: bash

jobs:
build-github-hosted:
Expand All @@ -41,6 +42,12 @@ jobs:
toolchain: stable
override: true

# ************** REMOVE AFTER RELEASE ********************
- name: Build Rust SDK
run: ./copy.sh
working-directory: binding/rust
# ********************************************************

- name: Rust build micdemo
run: cargo build --verbose
working-directory: demo/rust/micdemo
Expand All @@ -58,7 +65,7 @@ jobs:

strategy:
matrix:
machine: [rpi3-32, rpi3-64, rpi4-32, rpi4-64, jetson]
machine: [rpi3-32, rpi3-64, rpi4-32, rpi4-64]

steps:
- uses: actions/checkout@v3
Expand All @@ -73,6 +80,12 @@ jobs:
toolchain: nightly
override: true

# ************** REMOVE AFTER RELEASE ********************
- name: Build Rust SDK
run: ./copy.sh
working-directory: binding/rust
# ********************************************************

- name: Rust build micdemo
run: cargo build --verbose
working-directory: demo/rust/micdemo
Expand All @@ -83,4 +96,4 @@ jobs:

- name: Test
run: cargo run --release -- --access_key ${{secrets.PV_VALID_ACCESS_KEY}} --input_audio_path ../../../res/audio/sample.wav
working-directory: demo/rust/filedemo
working-directory: demo/rust/filedemo
6 changes: 1 addition & 5 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ on:
- 'binding/rust/**'
- 'binding/rust/**/*.rs'
- '!binding/rust/README.md'
- 'lib/beaglebone/**'
- 'lib/jetson/**'
- 'lib/linux/**'
- 'lib/mac/**'
- 'lib/raspberry-pi/**'
Expand All @@ -21,8 +19,6 @@ on:
- 'binding/rust/**'
- 'binding/rust/**/*.rs'
- '!binding/rust/README.md'
- 'lib/beaglebone/**'
- 'lib/jetson/**'
- 'lib/linux/**'
- 'lib/mac/**'
- 'lib/raspberry-pi/**'
Expand Down Expand Up @@ -53,4 +49,4 @@ jobs:
run: cargo build --verbose

- name: Rust run tests
run: PV_ACCESS_KEY=${{secrets.PV_VALID_ACCESS_KEY}} cargo test --verbose
run: PV_ACCESS_KEY=${{secrets.PV_VALID_ACCESS_KEY}} cargo test --verbose
4 changes: 2 additions & 2 deletions binding/nodejs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ Cobra is an on-device streaming voice activity detection engine. Cobra is:
- Linux (x86_64), macOS (x86_64, arm64), and Windows (x86_64)
- Android and iOS
- Chrome, Safari, Firefox, and Edge
- Raspberry Pi (2, 3, 4, 5) NVIDIA Jetson Nano, and BeagleBone
- Raspberry Pi (3, 4, 5)

## Compatibility

- Node.js 16+
- Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64), Raspberry Pi (2, 3, 4, 5), NVIDIA Jetson Nano, and BeagleBone.
- Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64), and Raspberry Pi (3, 4, 5).

## Installation

Expand Down
2 changes: 1 addition & 1 deletion 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.1",
"version": "2.0.2",
"description": "Picovoice Cobra Node.js binding",
"main": "dist/index.js",
"types": "dist/types/index.d.ts",
Expand Down
Loading
Loading