Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python release with RPI5 support #1214

Merged
merged 9 commits into from
Jan 31, 2024
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/python-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/python-perf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion binding/python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 12 additions & 0 deletions binding/python/_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down Expand Up @@ -76,6 +78,16 @@ 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"}
mrrostam marked this conversation as resolved.
Show resolved Hide resolved
_JETSON_MACHINES = {'cortex-a57-aarch64'}


Expand Down
4 changes: 2 additions & 2 deletions binding/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@

setuptools.setup(
name="pvporcupine",
version="3.0.1",
version="3.0.2",
author="Picovoice",
author_email="[email protected]",
description="Porcupine wake word engine.",
Expand All @@ -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",
)
2 changes: 1 addition & 1 deletion demo/python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions demo/python/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pvporcupine==3.0.1
pvrecorder==1.2.1
pvporcupine==3.0.2
pvrecorder==1.2.2
6 changes: 3 additions & 3 deletions demo/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@

setuptools.setup(
name="pvporcupinedemo",
version="3.0.1",
version="3.0.2",
author="Picovoice",
author_email="[email protected]",
description="Porcupine wake word engine demos",
long_description=long_description,
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",
Expand All @@ -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",
)
Loading