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

Java RPI5 release #352

Merged
merged 1 commit into from
Feb 5, 2024
Merged
Show file tree
Hide file tree
Changes from all 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/java-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,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
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/java-perf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,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: 16.0
Expand All @@ -75,6 +75,9 @@ jobs:
- machine: rpi4-64
init_performance_threshold_sec: 7.0
proc_performance_threshold_sec: 2.5
- machine: rpi5-64
init_performance_threshold_sec: 7.0
proc_performance_threshold_sec: 2.5
- machine: jetson
init_performance_threshold_sec: 7.0
proc_performance_threshold_sec: 2.6
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions binding/java/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ Leopard is an on-device speech-to-text engine. Leopard is:
- Linux (x86_64), macOS (x86_64, arm64), and 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

- Java 11+
- Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64), Raspberry Pi (4, 3), and NVIDIA Jetson Nano.
- Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64), Raspberry Pi (5, 4, 3), and NVIDIA Jetson Nano.

## Installation

Expand Down
6 changes: 4 additions & 2 deletions binding/java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {

ext {
PUBLISH_GROUP_ID = 'ai.picovoice'
PUBLISH_VERSION = '2.0.1'
PUBLISH_VERSION = '2.0.2'
PUBLISH_ARTIFACT_ID = 'leopard-java'
}

Expand Down Expand Up @@ -57,7 +57,9 @@ task copyRPiLib(type: Copy) {
include('cortex-a53/libpv_leopard_jni.so',
'cortex-a53-aarch64/libpv_leopard_jni.so',
'cortex-a72/libpv_leopard_jni.so',
'cortex-a72-aarch64/libpv_leopard_jni.so')
'cortex-a72-aarch64/libpv_leopard_jni.so',
'cortex-a76/libpv_leopard_jni.so',
'cortex-a76-aarch64/libpv_leopard_jni.so')
into("${outputDir}/leopard/lib/java/raspberry-pi/")
}
task copyJetsonLib(type: Copy) {
Expand Down
3 changes: 3 additions & 0 deletions binding/java/src/ai/picovoice/leopard/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ public static String getEnvironmentName() throws RuntimeException {
switch (cpuPart) {
case "0xd03":
case "0xd08":
case "0xd0b":
return "raspberry-pi";
case "0xd07":
return "jetson";
Expand Down Expand Up @@ -180,6 +181,8 @@ private static String getArchitecture() throws RuntimeException {
return "cortex-a57" + archInfo;
case "0xd08":
return "cortex-a72" + archInfo;
case "0xd0b":
return "cortex-a76" + archInfo;
default:
throw new RuntimeException(
String.format(
Expand Down
6 changes: 3 additions & 3 deletions demo/java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ sourceSets {
}

dependencies {
implementation 'ai.picovoice:leopard-java:2.0.1'
implementation 'ai.picovoice:leopard-java:2.0.2'
implementation 'commons-cli:commons-cli:1.4'
}

jar {
manifest {
attributes "Main-Class": "ai.picovoice.leoparddemo.MicDemo",
"Class-Path": "leopard-2.0.1.jar;commons-cli-1.4.jar"
"Class-Path": "leopard-2.0.2.jar;commons-cli-1.4.jar"
}
from sourceSets.main.output
exclude "**/FileDemo.class"
Expand All @@ -33,7 +33,7 @@ jar {
task fileDemoJar(type: Jar) {
manifest {
attributes "Main-Class": "ai.picovoice.leoparddemo.FileDemo",
"Class-Path": "leopard-2.0.1.jar;commons-cli-1.4.jar"
"Class-Path": "leopard-2.0.2.jar;commons-cli-1.4.jar"
}
from sourceSets.main.output
exclude "**/MicDemo.class"
Expand Down
Loading