From 86391162e26664f73449b8093fb5db5ff6dbe52c Mon Sep 17 00:00:00 2001 From: Eric Mikulin Date: Mon, 5 Feb 2024 14:25:56 -0800 Subject: [PATCH 1/3] .NET RPI5 release --- .github/workflows/dotnet-demos.yml | 2 +- .github/workflows/dotnet.yml | 2 +- binding/dotnet/Leopard/Leopard.csproj | 4 ++-- binding/dotnet/Leopard/Utils.cs | 6 ++++-- binding/dotnet/README.md | 2 +- demo/dotnet/LeopardDemo/LeopardDemo.csproj | 4 ++-- demo/dotnet/README.md | 5 +++-- 7 files changed, 14 insertions(+), 11 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..83b6cbd8 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: diff --git a/binding/dotnet/Leopard/Utils.cs b/binding/dotnet/Leopard/Utils.cs index d3eb9fbe..fa16ee19 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."); @@ -131,4 +133,4 @@ private static string GetCpuPart() return cpuPart; } } -} \ No newline at end of file +} 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..a6c6cf9a 100644 --- a/demo/dotnet/LeopardDemo/LeopardDemo.csproj +++ b/demo/dotnet/LeopardDemo/LeopardDemo.csproj @@ -19,7 +19,7 @@ - - + + 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 +``` From d1a5f7418e081715d78b972652d1e385886ee9c5 Mon Sep 17 00:00:00 2001 From: Eric Mikulin Date: Mon, 5 Feb 2024 14:37:11 -0800 Subject: [PATCH 2/3] No trailing newline for some reason --- binding/dotnet/Leopard/Leopard.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binding/dotnet/Leopard/Leopard.csproj b/binding/dotnet/Leopard/Leopard.csproj index 83b6cbd8..d744500f 100644 --- a/binding/dotnet/Leopard/Leopard.csproj +++ b/binding/dotnet/Leopard/Leopard.csproj @@ -132,4 +132,4 @@ - + \ No newline at end of file From c2153aebd46362a777006b1e190494a70b27788d Mon Sep 17 00:00:00 2001 From: Eric Mikulin Date: Mon, 5 Feb 2024 14:44:21 -0800 Subject: [PATCH 3/3] Less trailing newlines --- binding/dotnet/Leopard/Utils.cs | 2 +- demo/dotnet/LeopardDemo/LeopardDemo.csproj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/binding/dotnet/Leopard/Utils.cs b/binding/dotnet/Leopard/Utils.cs index fa16ee19..0dedf425 100644 --- a/binding/dotnet/Leopard/Utils.cs +++ b/binding/dotnet/Leopard/Utils.cs @@ -133,4 +133,4 @@ private static string GetCpuPart() return cpuPart; } } -} +} \ No newline at end of file diff --git a/demo/dotnet/LeopardDemo/LeopardDemo.csproj b/demo/dotnet/LeopardDemo/LeopardDemo.csproj index a6c6cf9a..48124eaa 100644 --- a/demo/dotnet/LeopardDemo/LeopardDemo.csproj +++ b/demo/dotnet/LeopardDemo/LeopardDemo.csproj @@ -22,4 +22,4 @@ - + \ No newline at end of file