From dda24de5aec002076ed69621f3dc831a9c11ec92 Mon Sep 17 00:00:00 2001 From: Pouya Rostam Date: Mon, 5 Feb 2024 16:40:35 -0800 Subject: [PATCH 1/2] init --- .github/workflows/python-demos.yml | 2 +- .github/workflows/python-perf.yml | 5 ++++- .github/workflows/python.yml | 2 +- README.md | 2 +- binding/python/README.md | 4 ++-- binding/python/_util.py | 10 +++++++++- binding/python/setup.py | 4 ++-- demo/python/README.md | 4 ++-- demo/python/requirements.txt | 4 ++-- demo/python/setup.py | 6 +++--- 10 files changed, 27 insertions(+), 16 deletions(-) diff --git a/.github/workflows/python-demos.yml b/.github/workflows/python-demos.yml index eb4ddc71..2d243fd0 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 5cca453c..15f6053a 100644 --- a/.github/workflows/python-perf.yml +++ b/.github/workflows/python-perf.yml @@ -71,7 +71,7 @@ jobs: strategy: fail-fast: false matrix: - machine: [rpi3-32, rpi3-64, rpi4-32, rpi4-64, jetson] + machine: [rpi3-32, rpi3-64, rpi4-32, rpi4-64, rpi5-64, jetson] include: - machine: rpi3-32 init_performance_threshold_sec: 8.5 @@ -85,6 +85,9 @@ jobs: - machine: rpi4-64 init_performance_threshold_sec: 6.5 proc_performance_threshold_sec: 2.8 + - machine: rpi5-64 + init_performance_threshold_sec: 0.1 + proc_performance_threshold_sec: 0.1 - machine: jetson init_performance_threshold_sec: 6.0 proc_performance_threshold_sec: 2.8 diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 5c83af7b..35de37e2 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -62,7 +62,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/README.md b/README.md index c8e50f33..e455b00b 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Leopard is an on-device speech-to-text engine. Leopard is: - Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64) - Android and iOS - Chrome, Safari, Firefox, and Edge - - Raspberry Pi (4, 3) and NVIDIA Jetson Nano + - Raspberry Pi (5, 4, 3) and NVIDIA Jetson Nano ## Table of Contents diff --git a/binding/python/README.md b/binding/python/README.md index 332155ee..e21c6bd2 100644 --- a/binding/python/README.md +++ b/binding/python/README.md @@ -13,11 +13,11 @@ Leopard is an on-device speech-to-text engine. Leopard is: - Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64) - Android and iOS - Chrome, Safari, Firefox, and Edge - - Raspberry Pi (4, 3) and NVIDIA Jetson Nano + - Raspberry Pi (5, 4, 3) and NVIDIA Jetson Nano ## Compatibility -- Python 3.5+ +- Python 3.7+ - Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64), Raspberry Pi (4, 3), and NVIDIA Jetson Nano. ## Installation diff --git a/binding/python/_util.py b/binding/python/_util.py index d31bdc8d..af5223de 100644 --- a/binding/python/_util.py +++ b/binding/python/_util.py @@ -41,11 +41,19 @@ def _linux_machine(): return 'cortex-a57' + arch_info elif '0xd08' == cpu_part: return 'cortex-a72' + arch_info + elif "0xd0b" == cpu_part: + return "cortex-a76" + arch_info else: raise NotImplementedError("Unsupported CPU: `%s`." % cpu_part) -_RASPBERRY_PI_MACHINES = {'cortex-a53', 'cortex-a72', 'cortex-a53-aarch64', 'cortex-a72-aarch64'} +_RASPBERRY_PI_MACHINES = { + "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 c505efb7..d4a07446 100644 --- a/binding/python/setup.py +++ b/binding/python/setup.py @@ -48,7 +48,7 @@ setuptools.setup( name="pvleopard", - version="2.0.1", + version="2.0.2", author="Picovoice", author_email="hello@picovoice.ai", description="Leopard Speech-to-Text Engine.", @@ -65,6 +65,6 @@ "Programming Language :: Python :: 3", "Topic :: Multimedia :: Sound/Audio :: Speech" ], - python_requires='>=3.5', + python_requires='>=3.7', keywords="Speech-to-Text, Speech Recognition, Voice Recognition, ASR, Automatic Speech Recognition", ) diff --git a/demo/python/README.md b/demo/python/README.md index 28295ea8..8b6065a8 100644 --- a/demo/python/README.md +++ b/demo/python/README.md @@ -13,11 +13,11 @@ Leopard is an on-device speech-to-text engine. Leopard is: - Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64) - Android and iOS - Chrome, Safari, Firefox, and Edge - - Raspberry Pi (4, 3) and NVIDIA Jetson Nano + - Raspberry Pi (5, 4, 3) and NVIDIA Jetson Nano ## Compatibility -- Python 3.5+ +- Python 3.7+ - Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64), Raspberry Pi (4, 3), and NVIDIA Jetson Nano. ## Installation diff --git a/demo/python/requirements.txt b/demo/python/requirements.txt index adc36644..a801fe5a 100644 --- a/demo/python/requirements.txt +++ b/demo/python/requirements.txt @@ -1,3 +1,3 @@ -pvleopard==2.0.1 -pvrecorder==1.2.1 +pvleopard==2.0.2 +pvrecorder==1.2.2 tabulate==0.8.10 diff --git a/demo/python/setup.py b/demo/python/setup.py index a1d22c08..18f99817 100644 --- a/demo/python/setup.py +++ b/demo/python/setup.py @@ -28,7 +28,7 @@ setuptools.setup( name="pvleoparddemo", - version="2.0.1", + version="2.0.2", author="Picovoice", author_email="hello@picovoice.ai", description="Leopard speech-to-text engine demos", @@ -36,7 +36,7 @@ long_description_content_type="text/markdown", url="https://github.com/Picovoice/leopard", packages=["pvleoparddemo"], - install_requires=["pvleopard==2.0.1", "pvrecorder==1.2.1", "tabulate==0.8.10"], + install_requires=["pvleopard==2.0.2", "pvrecorder==1.2.2", "tabulate==0.8.10"], include_package_data=True, classifiers=[ "Development Status :: 5 - Production/Stable", @@ -52,6 +52,6 @@ 'leopard_demo_mic=pvleoparddemo.leopard_demo_mic:main', ], ), - python_requires='>=3.5', + python_requires='>=3.7', keywords="Speech-to-Text, ASR, Speech Recognition, Voice Recognition, Automatic Speech Recognition", ) From 6d06db20ac9c415883313304bb01215be434923a Mon Sep 17 00:00:00 2001 From: Pouya Rostam Date: Mon, 5 Feb 2024 17:30:52 -0800 Subject: [PATCH 2/2] tune performance --- .github/workflows/python-perf.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-perf.yml b/.github/workflows/python-perf.yml index 15f6053a..313ddc68 100644 --- a/.github/workflows/python-perf.yml +++ b/.github/workflows/python-perf.yml @@ -86,8 +86,8 @@ jobs: init_performance_threshold_sec: 6.5 proc_performance_threshold_sec: 2.8 - machine: rpi5-64 - init_performance_threshold_sec: 0.1 - proc_performance_threshold_sec: 0.1 + init_performance_threshold_sec: 2.0 + proc_performance_threshold_sec: 1.0 - machine: jetson init_performance_threshold_sec: 6.0 proc_performance_threshold_sec: 2.8