Skip to content

Commit 1cbca1e

Browse files
authored
Python release with RPI5 support (#208)
1 parent 5a79649 commit 1cbca1e

File tree

9 files changed

+26
-13
lines changed

9 files changed

+26
-13
lines changed

.github/workflows/python-demos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050

5151
strategy:
5252
matrix:
53-
machine: [rpi3-32, rpi3-64, rpi4-32, rpi4-64, jetson]
53+
machine: [rpi3-32, rpi3-64, rpi4-32, rpi4-64, rpi5-64, jetson]
5454

5555
steps:
5656
- uses: actions/checkout@v3

.github/workflows/python-perf.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
strategy:
7171
fail-fast: false
7272
matrix:
73-
machine: [rpi2, rpi3-32, rpi3-64, rpi4-32, rpi4-64, jetson, beaglebone]
73+
machine: [rpi2, rpi3-32, rpi3-64, rpi4-32, rpi4-64, rpi5-64, jetson, beaglebone]
7474
include:
7575
- machine: rpi2
7676
num_test_iterations: 50
@@ -87,6 +87,9 @@ jobs:
8787
- machine: rpi4-64
8888
num_test_iterations: 100
8989
performance_threshold_sec: 0.022
90+
- machine: rpi5-64
91+
num_test_iterations: 100
92+
performance_threshold_sec: 0.011
9093
- machine: jetson
9194
num_test_iterations: 100
9295
performance_threshold_sec: 0.025

.github/workflows/python.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
strategy:
6666
fail-fast: false
6767
matrix:
68-
machine: [rpi2, rpi3-32, rpi3-64, rpi4-32, rpi4-64, jetson, beaglebone]
68+
machine: [rpi2, rpi3-32, rpi3-64, rpi4-32, rpi4-64, rpi5-64, jetson, beaglebone]
6969

7070
steps:
7171
- uses: actions/checkout@v3

binding/python/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Cobra is a highly accurate and lightweight voice activity detection (VAD) engine
66

77
## Compatibility
88

9-
- Python 3.5+
9+
- Python 3.7+
1010
- Runs on Linux (x86_64), macOS (x86_64), Windows (x86_64), Raspberry Pi, NVIDIA Jetson (Nano), and BeagleBone.
1111

1212
## Installation

binding/python/_util.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ def _pv_linux_machine(machine):
4242
return 'cortex-a57' + arch_info
4343
elif '0xd08' == cpu_part:
4444
return 'cortex-a72' + arch_info
45+
elif "0xd0b" == cpu_part:
46+
return "cortex-a76" + arch_info
4547
elif '0xc08' == cpu_part:
4648
return 'beaglebone' + arch_info
4749

@@ -63,7 +65,15 @@ def _pv_platform():
6365

6466
_PV_SYSTEM, _PV_MACHINE = _pv_platform()
6567

66-
_RASPBERRY_PI_MACHINES = {'arm11', 'cortex-a7', 'cortex-a53', 'cortex-a72', 'cortex-a53-aarch64', 'cortex-a72-aarch64'}
68+
_RASPBERRY_PI_MACHINES = {
69+
"arm11",
70+
"cortex-a7",
71+
"cortex-a53",
72+
"cortex-a72",
73+
"cortex-a76",
74+
"cortex-a53-aarch64",
75+
"cortex-a72-aarch64",
76+
"cortex-a76-aarch64"}
6777
_JETSON_MACHINES = {'cortex-a57-aarch64'}
6878

6979

binding/python/setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757

5858
setuptools.setup(
5959
name="pvcobra",
60-
version="2.0.1",
60+
version="2.0.2",
6161
author="Picovoice",
6262
author_email="[email protected]",
6363
description="Cobra voice activity detection (VAD) engine",
@@ -74,6 +74,6 @@
7474
"Programming Language :: Python :: 3",
7575
"Topic :: Multimedia :: Sound/Audio :: Speech"
7676
],
77-
python_requires='>=3.5',
77+
python_requires='>=3.7',
7878
keywords="voice activity detection engine, VAD",
7979
)

demo/python/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ Cobra is a highly accurate and lightweight voice activity detection (VAD) engine
1111

1212
## Compatibility
1313

14-
- Python 3.5+
15-
- Runs on Linux (x86_64), Mac (x86_64), Windows (x86_64), Raspberry Pi (all variants), NVIDIA Jetson (Nano), and BeagleBone.
14+
- Python 3.7+
15+
- Runs on Linux (x86_64), macOS (x86_64 and arm64), Windows (x86_64), Raspberry Pi, NVIDIA Jetson (Nano), and BeagleBone.
1616

1717
## AccessKey
1818

demo/python/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
pvcobra==2.0.1
2-
pvrecorder==1.2.1
1+
pvcobra==2.0.2
2+
pvrecorder==1.2.2

demo/python/setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@
2828

2929
setuptools.setup(
3030
name="pvcobrademo",
31-
version="2.0.1",
31+
version="2.0.2",
3232
author="Picovoice",
3333
author_email="[email protected]",
3434
description="Cobra voice activity detection (VAD) engine demos.",
3535
long_description=long_description,
3636
long_description_content_type="text/markdown",
3737
url="https://github.com/Picovoice/cobra",
3838
packages=["pvcobrademo"],
39-
install_requires=["pvcobra==2.0.1", "pvrecorder==1.2.1"],
39+
install_requires=["pvcobra==2.0.2", "pvrecorder==1.2.2"],
4040
include_package_data=True,
4141
classifiers=[
4242
"Development Status :: 5 - Production/Stable",

0 commit comments

Comments
 (0)