Skip to content

Commit

Permalink
Merge pull request #1214 from Picovoice/python-rpi5
Browse files Browse the repository at this point in the history
Python release with RPI5 support
  • Loading branch information
ErisMik authored Jan 31, 2024
2 parents 8bd823d + 7285269 commit 0dd540f
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 12 deletions.
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: 11 additions & 1 deletion 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 All @@ -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'}


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",
)

0 comments on commit 0dd540f

Please sign in to comment.