From 4e78607a689d3c1c9c1e280dc78c18d843198849 Mon Sep 17 00:00:00 2001 From: Eric Mikulin Date: Mon, 5 Feb 2024 17:06:55 -0800 Subject: [PATCH] .NET RPI5 release (#353) * .NET RPI5 release * No trailing newline for some reason * Less trailing newlines --- .github/workflows/dotnet-demos.yml | 2 +- .github/workflows/dotnet.yml | 2 +- binding/dotnet/Leopard/Leopard.csproj | 6 +++--- binding/dotnet/Leopard/Utils.cs | 4 +++- binding/dotnet/README.md | 2 +- demo/dotnet/LeopardDemo/LeopardDemo.csproj | 6 +++--- demo/dotnet/README.md | 5 +++-- 7 files changed, 15 insertions(+), 12 deletions(-) diff --git a/.github/workflows/dotnet-demos.yml b/.github/workflows/dotnet-demos.yml index 8a3d9b83..c9a7e0b8 100644 --- a/.github/workflows/dotnet-demos.yml +++ b/.github/workflows/dotnet-demos.yml @@ -52,7 +52,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/dotnet.yml b/.github/workflows/dotnet.yml index e8d6d98d..7a31eed4 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -83,7 +83,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/binding/dotnet/Leopard/Leopard.csproj b/binding/dotnet/Leopard/Leopard.csproj index b5d200af..d744500f 100644 --- a/binding/dotnet/Leopard/Leopard.csproj +++ b/binding/dotnet/Leopard/Leopard.csproj @@ -2,7 +2,7 @@ net6.0;netcoreapp3.0;netstandard2.0 - 2.0.1 + 2.0.2 Picovoice Leopard Speech-to-Text Engine @@ -12,7 +12,7 @@ git Speech-to-Text, Speech Recognition, Voice Recognition, ASR See https://github.com/Picovoice/leopard/ - Picovoice 2022-2023 + Picovoice 2022-2024 Leopard is an on-device speech-to-text engine. Leopard is: @@ -132,4 +132,4 @@ - + \ No newline at end of file diff --git a/binding/dotnet/Leopard/Utils.cs b/binding/dotnet/Leopard/Utils.cs index d3eb9fbe..0dedf425 100644 --- a/binding/dotnet/Leopard/Utils.cs +++ b/binding/dotnet/Leopard/Utils.cs @@ -75,6 +75,7 @@ public static string PvLinuxMachine() case "0xd03": return "cortex-a53" + archInfo; case "0xd07": return "cortex-a57" + archInfo; case "0xd08": return "cortex-a72" + archInfo; + case "0xd0b": return "cortex-a76" + archInfo; default: throw new PlatformNotSupportedException($"This device (CPU part = {cpuPart}) is not supported by Picovoice."); } @@ -87,7 +88,8 @@ public static string PvLinuxEnv() { case "0xc07": case "0xd03": - case "0xd08": return "raspberry-pi"; + case "0xd08": + case "0xd0b": return "raspberry-pi"; case "0xd07": return "jetson"; default: throw new PlatformNotSupportedException($"This device (CPU part = {cpuPart}) is not supported by Picovoice."); diff --git a/binding/dotnet/README.md b/binding/dotnet/README.md index ff049b2f..0a38e680 100644 --- a/binding/dotnet/README.md +++ b/binding/dotnet/README.md @@ -13,7 +13,7 @@ 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 ## Requirements diff --git a/demo/dotnet/LeopardDemo/LeopardDemo.csproj b/demo/dotnet/LeopardDemo/LeopardDemo.csproj index 9e022eb9..48124eaa 100644 --- a/demo/dotnet/LeopardDemo/LeopardDemo.csproj +++ b/demo/dotnet/LeopardDemo/LeopardDemo.csproj @@ -19,7 +19,7 @@ - - + + - + \ No newline at end of file diff --git a/demo/dotnet/README.md b/demo/dotnet/README.md index 02a7315c..88941ab0 100644 --- a/demo/dotnet/README.md +++ b/demo/dotnet/README.md @@ -15,7 +15,7 @@ Leopard is an on-device speech-to-text engine. Leopard is: - Windows (x86_64) - Android - iOS - - Raspberry Pi (4, 3) + - Raspberry Pi (5, 4, 3) - NVIDIA Jetson Nano ## Requirements @@ -30,6 +30,7 @@ Leopard is an on-device speech-to-text engine. Leopard is: - Raspberry Pi: - 3 (32 and 64 bit) - 4 (32 and 64 bit) + - 5 (32 and 64 bit) - NVIDIA Jetson Nano ## Installation @@ -100,4 +101,4 @@ in the above example, you can invoke the demo application as below: dotnet run -c MicDemo.Release -- \ --access_key ${ACCESS_KEY} \ --audio_device_index 0 -``` \ No newline at end of file +```