Skip to content

Commit

Permalink
.NET rpi5 support (#1217)
Browse files Browse the repository at this point in the history
  • Loading branch information
laves authored Jan 31, 2024
1 parent 0dd540f commit 6dc5581
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dotnet-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,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 .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,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
4 changes: 2 additions & 2 deletions binding/dotnet/Porcupine/Porcupine.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFrameworks>net6.0;netcoreapp3.0;netstandard2.0</TargetFrameworks>
<Version>3.0.1</Version>
<Version>3.0.2</Version>
<Authors>Picovoice</Authors>
<Company />
<Product>Porcupine Wake Word Engine</Product>
Expand All @@ -12,7 +12,7 @@
<RepositoryType>git</RepositoryType>
<PackageTags>porcupine, picovoice, wake word, hotword, trigger word, offline, private, voice ai, speech recognition</PackageTags>
<PackageReleaseNotes>See https://github.com/Picovoice/porcupine/ </PackageReleaseNotes>
<Copyright>Picovoice 2020-2023</Copyright>
<Copyright>Picovoice 2020-2024</Copyright>
<Description>
Porcupine is a highly-accurate and lightweight wake word engine. It enables building always-listening voice-enabled applications.

Expand Down
6 changes: 4 additions & 2 deletions binding/dotnet/Porcupine/Utils.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2020-2022 Picovoice Inc.
Copyright 2020-2024 Picovoice Inc.
You may not use this file except in compliance with the license. A copy of the license is located in the "LICENSE"
file accompanying this source.
Expand Down Expand Up @@ -91,6 +91,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;
case "0xc08": return "";
default:
throw new PlatformNotSupportedException($"This device (CPU part = {cpuPart}) is not supported by Picovoice.");
Expand All @@ -104,7 +105,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";
case "0xc08": return "beaglebone";
default:
Expand Down
5 changes: 3 additions & 2 deletions binding/dotnet/PorcupineTest/MainTest.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2020-2023 Picovoice Inc.
Copyright 2020-2024 Picovoice Inc.
You may not use this file except in compliance with the license. A copy of the license is located in the "LICENSE"
file accompanying this source.
Expand Down Expand Up @@ -57,7 +57,8 @@ private static string PvLinuxEnv()
{
case "0xc07":
case "0xd03":
case "0xd08": return "raspberry-pi";
case "0xd08":
case "0xd0b": return "raspberry-pi";
case "0xd07": return "jetson";
case "0xc08": return "beaglebone";
default:
Expand Down
1 change: 1 addition & 0 deletions binding/dotnet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ Platforms compatible with .NET Core 3.0+:
- 2
- 3 (32 and 64 bit)
- 4 (32 and 64 bit)
- 5 (32 and 64 bit)
- NVIDIA Jetson Nano
- BeagleBone

Expand Down
4 changes: 2 additions & 2 deletions demo/dotnet-vui/AvaloniaVUI/AvaloniaVUI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<PackageReference Include="Avalonia" Version="0.9.12" />
<PackageReference Include="Avalonia.Desktop" Version="0.9.12" />
<PackageReference Include="Avalonia.ReactiveUI" Version="0.9.12" />
<PackageReference Include="PvRecorder" Version="1.2.4" />
<PackageReference Include="Porcupine" Version="3.0.1" />
<PackageReference Include="PvRecorder" Version="1.2.5" />
<PackageReference Include="Porcupine" Version="3.0.2" />
</ItemGroup>
</Project>
4 changes: 2 additions & 2 deletions demo/dotnet/PorcupineDemo/PorcupineDemo.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Porcupine" Version="3.0.1" />
<PackageReference Include="PvRecorder" Version="1.2.4" />
<PackageReference Include="Porcupine" Version="3.0.2" />
<PackageReference Include="PvRecorder" Version="1.2.5" />
</ItemGroup>
</Project>
1 change: 1 addition & 0 deletions demo/dotnet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Porcupine is:
- 2
- 3 (32 and 64 bit)
- 4 (32 and 64 bit)
- 5 (32 and 64 bit)
- NVIDIA Jetson Nano
- BeagleBone

Expand Down

0 comments on commit 6dc5581

Please sign in to comment.