diff --git a/.github/workflows/python-demos.yml b/.github/workflows/python-demos.yml index 750d8c9..f58409f 100644 --- a/.github/workflows/python-demos.yml +++ b/.github/workflows/python-demos.yml @@ -50,7 +50,7 @@ jobs: strategy: matrix: - machine: [rpi3-32, rpi3-64, rpi4-32, rpi4-64, jetson] + machine: [rpi3-32, rpi3-64, rpi4-32, rpi4-64, rpi5-64, jetson] steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/python-perf.yml b/.github/workflows/python-perf.yml index 925778d..7770579 100644 --- a/.github/workflows/python-perf.yml +++ b/.github/workflows/python-perf.yml @@ -70,7 +70,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 num_test_iterations: 50 @@ -87,6 +87,9 @@ jobs: - machine: rpi4-64 num_test_iterations: 100 performance_threshold_sec: 0.022 + - machine: rpi5-64 + num_test_iterations: 100 + performance_threshold_sec: 0.011 - machine: jetson num_test_iterations: 100 performance_threshold_sec: 0.025 diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index a1ed158..fabc7d1 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -65,7 +65,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 diff --git a/binding/python/_util.py b/binding/python/_util.py index 4ab6f35..4e3923f 100644 --- a/binding/python/_util.py +++ b/binding/python/_util.py @@ -42,6 +42,8 @@ def _pv_linux_machine(machine): return 'cortex-a57' + arch_info elif '0xd08' == cpu_part: return 'cortex-a72' + arch_info + elif "0xd0b" == cpu_part: + return "cortex-a76" + arch_info elif '0xc08' == cpu_part: return 'beaglebone' + arch_info @@ -63,7 +65,15 @@ def _pv_platform(): _PV_SYSTEM, _PV_MACHINE = _pv_platform() -_RASPBERRY_PI_MACHINES = {'arm11', 'cortex-a7', 'cortex-a53', 'cortex-a72', 'cortex-a53-aarch64', 'cortex-a72-aarch64'} +_RASPBERRY_PI_MACHINES = { + "arm11", + "cortex-a7", + "cortex-a53", + "cortex-a72", + "cortex-a76", + "cortex-a53-aarch64", + "cortex-a72-aarch64", + "cortex-a76-aarch64"} _JETSON_MACHINES = {'cortex-a57-aarch64'} diff --git a/binding/python/setup.py b/binding/python/setup.py index 3947e99..574fe87 100644 --- a/binding/python/setup.py +++ b/binding/python/setup.py @@ -57,7 +57,7 @@ setuptools.setup( name="pvcobra", - version="2.0.1", + version="2.0.2", author="Picovoice", author_email="hello@picovoice.ai", description="Cobra voice activity detection (VAD) engine", @@ -74,6 +74,6 @@ "Programming Language :: Python :: 3", "Topic :: Multimedia :: Sound/Audio :: Speech" ], - python_requires='>=3.5', + python_requires='>=3.7', keywords="voice activity detection engine, VAD", ) diff --git a/demo/python/README.md b/demo/python/README.md index 61ff39f..d410e5c 100644 --- a/demo/python/README.md +++ b/demo/python/README.md @@ -11,8 +11,8 @@ Cobra is a highly accurate and lightweight voice activity detection (VAD) engine ## Compatibility -- Python 3.5+ -- Runs on Linux (x86_64), Mac (x86_64), Windows (x86_64), Raspberry Pi (all variants), NVIDIA Jetson (Nano), and BeagleBone. +- Python 3.7+ +- Runs on Linux (x86_64), macOS (x86_64 and arm64), Windows (x86_64), Raspberry Pi, NVIDIA Jetson (Nano), and BeagleBone. ## AccessKey diff --git a/demo/python/requirements.txt b/demo/python/requirements.txt index a021b43..848bac4 100644 --- a/demo/python/requirements.txt +++ b/demo/python/requirements.txt @@ -1,2 +1,2 @@ -pvcobra==2.0.1 -pvrecorder==1.2.1 +pvcobra==2.0.2 +pvrecorder==1.2.2 diff --git a/demo/python/setup.py b/demo/python/setup.py index c4cf50c..b393544 100644 --- a/demo/python/setup.py +++ b/demo/python/setup.py @@ -28,7 +28,7 @@ setuptools.setup( name="pvcobrademo", - version="2.0.1", + version="2.0.2", author="Picovoice", author_email="hello@picovoice.ai", description="Cobra voice activity detection (VAD) engine demos.", @@ -36,7 +36,7 @@ long_description_content_type="text/markdown", url="https://github.com/Picovoice/cobra", packages=["pvcobrademo"], - install_requires=["pvcobra==2.0.1", "pvrecorder==1.2.1"], + install_requires=["pvcobra==2.0.2", "pvrecorder==1.2.2"], include_package_data=True, classifiers=[ "Development Status :: 5 - Production/Stable",