From 806bfd1635d6a3ce6e848196bc31044061b64dfd Mon Sep 17 00:00:00 2001 From: Pouya Rostam Date: Mon, 5 Feb 2024 14:06:02 -0800 Subject: [PATCH 1/6] init --- .github/workflows/python-demos.yml | 2 +- .github/workflows/python-perf.yml | 4 +++- .github/workflows/python.yml | 19 +++++++++++++++++ README.md | 34 ++++++++++++++++-------------- binding/python/README.md | 6 +++--- binding/python/_util.py | 10 ++++++++- binding/python/setup.py | 4 ++-- demo/python/README.md | 6 +++--- demo/python/requirements.txt | 4 ++-- demo/python/setup.py | 4 ++-- 10 files changed, 62 insertions(+), 31 deletions(-) diff --git a/.github/workflows/python-demos.yml b/.github/workflows/python-demos.yml index 768adf6..eaec9ac 100644 --- a/.github/workflows/python-demos.yml +++ b/.github/workflows/python-demos.yml @@ -56,7 +56,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 c3bba29..e5bf833 100644 --- a/.github/workflows/python-perf.yml +++ b/.github/workflows/python-perf.yml @@ -80,7 +80,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 proc_performance_threshold_sec: 2.5 @@ -90,6 +90,8 @@ jobs: proc_performance_threshold_sec: 2.5 - machine: rpi4-64 proc_performance_threshold_sec: 2.5 + - machine: rpi4-64 + proc_performance_threshold_sec: 0.1 - machine: jetson proc_performance_threshold_sec: 2.5 diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 9d6098c..ffb5bfe 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -60,3 +60,22 @@ jobs: - name: Test run: python test_koala.py --access-key ${{secrets.PV_VALID_ACCESS_KEY}} + + build-self-hosted: + runs-on: ${{ matrix.machine }} + + strategy: + matrix: + machine: [rpi3-32, rpi3-64, rpi4-32, rpi4-64, rpi5-64, jetson] + + steps: + - uses: actions/checkout@v3 + + - name: Pre-build dependencies + run: python3 -m pip install --upgrade pip + + - name: Install dependencies + run: pip install -r requirements.txt + + - name: Test + run: python3 test_koala.py ${{secrets.PV_VALID_ACCESS_KEY}} \ No newline at end of file diff --git a/README.md b/README.md index 5d38cf1..2be1d46 100644 --- a/README.md +++ b/README.md @@ -14,26 +14,28 @@ Koala is an on-device noise suppression engine. Koala 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 - [Koala](#koala) - - [Table of Contents](#table-of-contents) - - [AccessKey](#accesskey) - - [Demos](#demos) - - [Python](#python-demos) - - [Android](#android-demo) - - [iOS](#ios-demo) - - [C](#c-demos) - - [Web](#web-demo) - - [SDKs](#sdks) - - [Python](#python) - - [Android](#android) - - [iOS](#ios) - - [C](#c) - - [Web](#web) - - [Releases](#releases) + - [Table of Contents](#table-of-contents) + - [AccessKey](#accesskey) + - [Demos](#demos) + - [Python Demos](#python-demos) + - [Android Demo](#android-demo) + - [iOS Demo](#ios-demo) + - [C Demos](#c-demos) + - [Web Demo](#web-demo) + - [SDKs](#sdks) + - [Python](#python) + - [Android](#android) + - [iOS](#ios) + - [C](#c) + - [Web](#web) + - [Releases](#releases) + - [v2.0.0 - November 24th, 2023](#v200---november-24th-2023) + - [v1.0.0 - February 7th, 2023](#v100---february-7th-2023) ## AccessKey diff --git a/binding/python/README.md b/binding/python/README.md index 4464942..369cb0b 100644 --- a/binding/python/README.md +++ b/binding/python/README.md @@ -11,12 +11,12 @@ Koala is an on-device noise suppression engine. Koala 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 or higher -- Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64), Raspberry Pi (4, 3), and NVIDIA Jetson Nano. +- Python 3.7 or higher +- Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64), Raspberry Pi (5, 4, 3), and NVIDIA Jetson Nano. ## Installation diff --git a/binding/python/_util.py b/binding/python/_util.py index 70a542f..393d91b 100644 --- a/binding/python/_util.py +++ b/binding/python/_util.py @@ -41,11 +41,19 @@ def _linux_machine() -> str: 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 9e5cbcd..adb72a8 100644 --- a/binding/python/setup.py +++ b/binding/python/setup.py @@ -42,7 +42,7 @@ setuptools.setup( name="pvkoala", - version="2.0.0", + version="2.0.1", author="Picovoice", author_email="hello@picovoice.ai", description="Koala Noise Suppression Engine.", @@ -59,6 +59,6 @@ "Programming Language :: Python :: 3", "Topic :: Multimedia :: Sound/Audio :: Speech" ], - python_requires='>=3.5', + python_requires='>=3.7', keywords="Noise Cancellation, Noise Suppression, Noise Removal, Speech Enhancement, Speech Denoising", ) diff --git a/demo/python/README.md b/demo/python/README.md index db0a004..23167e9 100644 --- a/demo/python/README.md +++ b/demo/python/README.md @@ -11,12 +11,12 @@ Koala is an on-device noise suppression engine. Koala 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+ -- Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64), Raspberry Pi (4, 3), and NVIDIA Jetson Nano. +- Python 3.7+ +- Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64), Raspberry Pi (5, 4, 3), and NVIDIA Jetson Nano. ## Installation diff --git a/demo/python/requirements.txt b/demo/python/requirements.txt index e7508ed..160bf7e 100644 --- a/demo/python/requirements.txt +++ b/demo/python/requirements.txt @@ -1,2 +1,2 @@ -pvkoala==2.0.0 -pvrecorder==1.2.1 +pvkoala==2.0.1 +pvrecorder==1.2.2 diff --git a/demo/python/setup.py b/demo/python/setup.py index 71c482e..88ca839 100644 --- a/demo/python/setup.py +++ b/demo/python/setup.py @@ -24,7 +24,7 @@ setuptools.setup( name="pvkoalademo", - version="2.0.0", + version="2.0.1", author="Picovoice", author_email="hello@picovoice.ai", description="Koala Noise Suppression Engine demos", @@ -32,7 +32,7 @@ long_description_content_type="text/markdown", url="https://github.com/Picovoice/koala", packages=["pvkoalademo"], - install_requires=["pvkoala==2.0.0", "pvrecorder==1.2.1"], + install_requires=["pvkoala==2.0.1", "pvrecorder==1.2.2"], include_package_data=True, classifiers=[ "Development Status :: 5 - Production/Stable", From 74f7af33f2a8ea8d6614c950b4353f4ea85f0f3a Mon Sep 17 00:00:00 2001 From: Pouya Rostam Date: Mon, 5 Feb 2024 14:07:23 -0800 Subject: [PATCH 2/6] update readme --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index 2be1d46..f09f872 100644 --- a/README.md +++ b/README.md @@ -34,8 +34,6 @@ Koala is an on-device noise suppression engine. Koala is: - [C](#c) - [Web](#web) - [Releases](#releases) - - [v2.0.0 - November 24th, 2023](#v200---november-24th-2023) - - [v1.0.0 - February 7th, 2023](#v100---february-7th-2023) ## AccessKey @@ -326,4 +324,4 @@ Replace `${ACCESS_KEY}` with yours obtained from [Picovoice Console](https://con ### v1.0.0 - February 7th, 2023 -- Initial release \ No newline at end of file +- Initial release From 5cf78672aa48989a46a332e4464b2926543d269a Mon Sep 17 00:00:00 2001 From: Pouya Rostam Date: Mon, 5 Feb 2024 14:10:05 -0800 Subject: [PATCH 3/6] minor --- demo/python/setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demo/python/setup.py b/demo/python/setup.py index 88ca839..78cf525 100644 --- a/demo/python/setup.py +++ b/demo/python/setup.py @@ -48,6 +48,6 @@ 'koala_demo_mic=pvkoalademo.koala_demo_mic:main', ], ), - python_requires='>=3.5', + python_requires='>=3.7', keywords="Noise Cancellation, Noise Suppression, Noise Removal, Speech Enhancement, Speech Denoising", ) From 3e1b216538eb599a17d7ad5e4b10b52781e3e64b Mon Sep 17 00:00:00 2001 From: Pouya Rostam Date: Mon, 5 Feb 2024 14:11:09 -0800 Subject: [PATCH 4/6] minor --- .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 e5bf833..665062d 100644 --- a/.github/workflows/python-perf.yml +++ b/.github/workflows/python-perf.yml @@ -90,7 +90,7 @@ jobs: proc_performance_threshold_sec: 2.5 - machine: rpi4-64 proc_performance_threshold_sec: 2.5 - - machine: rpi4-64 + - machine: rpi5-64 proc_performance_threshold_sec: 0.1 - machine: jetson proc_performance_threshold_sec: 2.5 From 4320c1b1d26fd3e8f6a873ed3344764ee420b527 Mon Sep 17 00:00:00 2001 From: Pouya Rostam Date: Mon, 5 Feb 2024 14:35:02 -0800 Subject: [PATCH 5/6] tune performance --- .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 665062d..b79437e 100644 --- a/.github/workflows/python-perf.yml +++ b/.github/workflows/python-perf.yml @@ -91,7 +91,7 @@ jobs: - machine: rpi4-64 proc_performance_threshold_sec: 2.5 - machine: rpi5-64 - proc_performance_threshold_sec: 0.1 + proc_performance_threshold_sec: 0.5 - machine: jetson proc_performance_threshold_sec: 2.5 From db04009fa561015b6c67f382e5d31b5fde1936a1 Mon Sep 17 00:00:00 2001 From: Pouya Rostam Date: Mon, 5 Feb 2024 16:35:13 -0800 Subject: [PATCH 6/6] minor fix --- .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 ffb5bfe..4820015 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -78,4 +78,4 @@ jobs: run: pip install -r requirements.txt - name: Test - run: python3 test_koala.py ${{secrets.PV_VALID_ACCESS_KEY}} \ No newline at end of file + run: python3 test_koala.py --access-key ${{secrets.PV_VALID_ACCESS_KEY}}