From 858f394e7fda3f178d858faa9d66e5a62db2d67d Mon Sep 17 00:00:00 2001 From: Pouya Rostam Date: Tue, 30 Jan 2024 13:12:14 -0800 Subject: [PATCH 1/9] init --- .github/workflows/python-demos.yml | 2 +- .github/workflows/python-perf.yml | 3 +++ binding/python/_util.py | 9 ++++++++- binding/python/setup.py | 2 +- 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-demos.yml b/.github/workflows/python-demos.yml index cdd4892dac..bbfd974568 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 35bb7be705..fabe756925 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.1 - machine: jetson num_test_iterations: 50 performance_threshold_sec: 2.0 diff --git a/binding/python/_util.py b/binding/python/_util.py index 42a17a0e45..fc3bfa84f1 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,12 @@ 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 = { + "cortex-a53", + "cortex-a72", + "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 62516e2025..810ab9ede2 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.", From c76ee657eec03a47a1deab674465d49cd50b8c05 Mon Sep 17 00:00:00 2001 From: Pouya Rostam Date: Tue, 30 Jan 2024 13:18:01 -0800 Subject: [PATCH 2/9] minor --- binding/python/_util.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/binding/python/_util.py b/binding/python/_util.py index fc3bfa84f1..e7d3690e44 100644 --- a/binding/python/_util.py +++ b/binding/python/_util.py @@ -77,9 +77,14 @@ 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-aarch64", "cortex-a53-aarch64", "cortex-a72-aarch64", "cortex-a76-aarch64"} From 253e634c76894c7de07a556f32e9a37b31f8e793 Mon Sep 17 00:00:00 2001 From: Pouya Rostam Date: Tue, 30 Jan 2024 13:18:46 -0800 Subject: [PATCH 3/9] minor --- binding/python/_util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binding/python/_util.py b/binding/python/_util.py index e7d3690e44..976fd87127 100644 --- a/binding/python/_util.py +++ b/binding/python/_util.py @@ -84,7 +84,7 @@ def _pv_platform(): "cortex-a7", "cortex-a53", "cortex-a72", - "cortex-a76-aarch64", + "cortex-a76", "cortex-a53-aarch64", "cortex-a72-aarch64", "cortex-a76-aarch64"} From 53ca9a8440d7efd6cb4409516bdbeeea681d6cd9 Mon Sep 17 00:00:00 2001 From: Pouya Rostam Date: Tue, 30 Jan 2024 13:23:01 -0800 Subject: [PATCH 4/9] wip --- demo/python/setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/demo/python/setup.py b/demo/python/setup.py index 1ad0c2fb40..40aff36c2e 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", From 963d8a13f3af1d0b67af91dbd876064b6515e504 Mon Sep 17 00:00:00 2001 From: Pouya Rostam Date: Tue, 30 Jan 2024 13:35:29 -0800 Subject: [PATCH 5/9] wip --- .github/workflows/python-perf.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-perf.yml b/.github/workflows/python-perf.yml index fabe756925..856c9c6068 100644 --- a/.github/workflows/python-perf.yml +++ b/.github/workflows/python-perf.yml @@ -96,7 +96,7 @@ jobs: performance_threshold_sec: 1.5 - machine: rpi5-64 num_test_iterations: 50 - performance_threshold_sec: 0.1 + performance_threshold_sec: 0.5 - machine: jetson num_test_iterations: 50 performance_threshold_sec: 2.0 From 9e1cfed6e716102a864b607da87187edfd144a8e Mon Sep 17 00:00:00 2001 From: Pouya Rostam Date: Tue, 30 Jan 2024 13:36:51 -0800 Subject: [PATCH 6/9] wip --- demo/python/requirements.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/demo/python/requirements.txt b/demo/python/requirements.txt index 503eb3d918..9c13c9f261 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 From 983d162f21bb9a8f4b55cf9875d5ba6ec5d1a8ec Mon Sep 17 00:00:00 2001 From: Pouya Rostam Date: Tue, 30 Jan 2024 13:49:39 -0800 Subject: [PATCH 7/9] minor --- .github/workflows/python.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 10acb29343..f26a301966 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 From 552e1e49159f3753ef3b85df0f75743bd5b662db Mon Sep 17 00:00:00 2001 From: Pouya Rostam Date: Tue, 30 Jan 2024 16:12:02 -0800 Subject: [PATCH 8/9] wip --- binding/python/README.md | 2 +- binding/python/setup.py | 2 +- demo/python/README.md | 2 +- demo/python/setup.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/binding/python/README.md b/binding/python/README.md index 3a70bf4f6b..fc0ba73f1f 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/setup.py b/binding/python/setup.py index 810ab9ede2..bcbdeca0b5 100644 --- a/binding/python/setup.py +++ b/binding/python/setup.py @@ -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 c5a367b79a..3c86c9791c 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/setup.py b/demo/python/setup.py index 40aff36c2e..c59cff101b 100644 --- a/demo/python/setup.py +++ b/demo/python/setup.py @@ -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", ) From 7285269b430dd9b5824a428071999858c7482ead Mon Sep 17 00:00:00 2001 From: Pouya Rostam Date: Wed, 31 Jan 2024 10:20:21 -0800 Subject: [PATCH 9/9] remvoe duplicated list --- binding/python/_util.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/binding/python/_util.py b/binding/python/_util.py index 976fd87127..59ea3aada3 100644 --- a/binding/python/_util.py +++ b/binding/python/_util.py @@ -77,8 +77,6 @@ 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",