diff --git a/.github/workflows/python-demos.yml b/.github/workflows/python-demos.yml index cdd4892da..bbfd97456 100644 --- a/.github/workflows/python-demos.yml +++ b/.github/workflows/python-demos.yml @@ -50,7 +50,7 @@ jobs: strategy: 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/.github/workflows/python-perf.yml b/.github/workflows/python-perf.yml index 35bb7be70..856c9c606 100644 --- a/.github/workflows/python-perf.yml +++ b/.github/workflows/python-perf.yml @@ -94,6 +94,9 @@ jobs: - machine: rpi4-64 num_test_iterations: 50 performance_threshold_sec: 1.5 + - machine: rpi5-64 + num_test_iterations: 50 + performance_threshold_sec: 0.5 - machine: jetson num_test_iterations: 50 performance_threshold_sec: 2.0 diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 10acb2934..f26a30196 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -78,7 +78,7 @@ jobs: strategy: 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/README.md b/binding/python/README.md index 3a70bf4f6..fc0ba73f1 100644 --- a/binding/python/README.md +++ b/binding/python/README.md @@ -18,7 +18,7 @@ applications. It is ## Compatibility -- Python 3.5+ +- Python 3.7+ - Runs on Linux (x86_64), macOS (x86_64 and arm64), Windows (x86_64), Raspberry Pi, NVIDIA Jetson (Nano), and BeagleBone. ## Installation diff --git a/binding/python/_util.py b/binding/python/_util.py index 42a17a0e4..59ea3aada 100644 --- a/binding/python/_util.py +++ b/binding/python/_util.py @@ -49,6 +49,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 elif machine == 'armv7l': @@ -75,7 +77,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 62516e202..bcbdeca0b 100644 --- a/binding/python/setup.py +++ b/binding/python/setup.py @@ -69,7 +69,7 @@ setuptools.setup( name="pvporcupine", - version="3.0.1", + version="3.0.2", author="Picovoice", author_email="hello@picovoice.ai", description="Porcupine wake word engine.", @@ -86,6 +86,6 @@ "Programming Language :: Python :: 3", "Topic :: Multimedia :: Sound/Audio :: Speech" ], - python_requires='>=3.5', + python_requires='>=3.7', keywords="wake word engine, hotword detection, keyword spotting, wake word detection, voice commands", ) diff --git a/demo/python/README.md b/demo/python/README.md index c5a367b79..3c86c9791 100644 --- a/demo/python/README.md +++ b/demo/python/README.md @@ -17,7 +17,7 @@ applications. It is ## Compatibility -- Python 3.5+ +- Python 3.7+ - Runs on Linux (x86_64), Mac (x86_64 and arm64), Windows (x86_64), Raspberry Pi (all variants), NVIDIA Jetson (Nano), and BeagleBone. ## Installation diff --git a/demo/python/requirements.txt b/demo/python/requirements.txt index 503eb3d91..9c13c9f26 100644 --- a/demo/python/requirements.txt +++ b/demo/python/requirements.txt @@ -1,2 +1,2 @@ -pvporcupine==3.0.1 -pvrecorder==1.2.1 +pvporcupine==3.0.2 +pvrecorder==1.2.2 diff --git a/demo/python/setup.py b/demo/python/setup.py index 1ad0c2fb4..c59cff101 100644 --- a/demo/python/setup.py +++ b/demo/python/setup.py @@ -28,7 +28,7 @@ setuptools.setup( name="pvporcupinedemo", - version="3.0.1", + version="3.0.2", author="Picovoice", author_email="hello@picovoice.ai", description="Porcupine wake word engine demos", @@ -36,7 +36,7 @@ long_description_content_type="text/markdown", url="https://github.com/Picovoice/porcupine", packages=["pvporcupinedemo"], - install_requires=["pvporcupine==3.0.1", "pvrecorder==1.2.1"], + install_requires=["pvporcupine==3.0.2", "pvrecorder==1.2.2"], include_package_data=True, classifiers=[ "Development Status :: 5 - Production/Stable", @@ -52,6 +52,6 @@ 'porcupine_demo_mic=pvporcupinedemo.porcupine_demo_mic:main', ], ), - python_requires='>=3.5', + python_requires='>=3.7', keywords="wake word engine, hotword detection, keyword spotting, wake word detection, voice commands", )