Skip to content

Commit

Permalink
Bumped version to 1.4.7 (#107)
Browse files Browse the repository at this point in the history
* Bumped version to 1.4.7

* Switched back to dotnet 7 in build pipeline

* Bumped ios, tvos, android and maccatalyst to net7

* Added CoreML 1.4.7

* small refactor for coreml example during test
  • Loading branch information
sandrohanea authored Sep 2, 2023
1 parent b927e36 commit 4f9a238
Show file tree
Hide file tree
Showing 54 changed files with 35 additions and 37 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
BUILD_TYPE=Release
VERSION=1.4.6
VERSION=1.4.7
CMAKE_PARAMETERS=-DCMAKE_BUILD_TYPE=$(BUILD_TYPE)
COREML_SUPPORT=$(CMAKE_PARAMETERS) -DWHISPER_COREML=ON -DWHISPER_COREML_ALLOW_FALLBACK=ON
NDK :=
Expand Down
2 changes: 1 addition & 1 deletion Whisper.net.Runtime.Clblast.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<metadata>
<id>Whisper.net.Runtime.Clblast</id>
<title>Whisper.Net.Runtime.Clblast</title>
<version>1.4.6</version>
<version>1.4.7</version>
<authors>Sandro Hanea</authors>
<owners>Sandro Hanea</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
Expand Down
Binary file modified Whisper.net.Runtime.Clblast/win-x64/whisper.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion Whisper.net.Runtime.CoreML.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<metadata>
<id>Whisper.net.Runtime.CoreML</id>
<title>Whisper.Net.Runtime.CoreML</title>
<version>1.4.6</version>
<version>1.4.7</version>
<authors>Sandro Hanea</authors>
<owners>Sandro Hanea</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
Expand Down
Binary file modified Whisper.net.Runtime.CoreML/ios-device/libwhisper.coreml.dylib
Binary file not shown.
Binary file modified Whisper.net.Runtime.CoreML/ios-device/libwhisper.dylib
Binary file not shown.
Binary file modified Whisper.net.Runtime.CoreML/ios-simulator/libwhisper.coreml.dylib
Binary file not shown.
Binary file modified Whisper.net.Runtime.CoreML/ios-simulator/libwhisper.dylib
Binary file not shown.
Binary file modified Whisper.net.Runtime.CoreML/maccatalyst/libwhisper.coreml.dylib
Binary file not shown.
Binary file modified Whisper.net.Runtime.CoreML/maccatalyst/libwhisper.dylib
Binary file not shown.
Binary file modified Whisper.net.Runtime.CoreML/macos/libwhisper.coreml.dylib
Binary file not shown.
Binary file modified Whisper.net.Runtime.CoreML/macos/libwhisper.dylib
Binary file not shown.
Binary file modified Whisper.net.Runtime.CoreML/tvos-device/libwhisper.coreml.dylib
Binary file not shown.
Binary file modified Whisper.net.Runtime.CoreML/tvos-device/libwhisper.dylib
Binary file not shown.
Binary file modified Whisper.net.Runtime.CoreML/tvos-simulator/libwhisper.coreml.dylib
Binary file not shown.
Binary file modified Whisper.net.Runtime.CoreML/tvos-simulator/libwhisper.dylib
Binary file not shown.
2 changes: 1 addition & 1 deletion Whisper.net.Runtime.Cublas.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<metadata>
<id>Whisper.net.Runtime.Cublas</id>
<title>Whisper.Net.Runtime.Cublas</title>
<version>1.4.6</version>
<version>1.4.7</version>
<authors>Sandro Hanea</authors>
<owners>Sandro Hanea</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
Expand Down
Binary file modified Whisper.net.Runtime.Cublas/win-x64/whisper.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion Whisper.net.Runtime.Wasm.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<metadata>
<id>Whisper.net.Runtime.Wasm</id>
<title>Whisper.Net.Runtime.Wasm</title>
<version>1.4.6</version>
<version>1.4.7</version>
<authors>Sandro Hanea</authors>
<owners>Sandro Hanea</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
Expand Down
Binary file modified Whisper.net.Runtime.Wasm/whisper.a
Binary file not shown.
2 changes: 1 addition & 1 deletion Whisper.net.Runtime.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<metadata>
<id>Whisper.net.Runtime</id>
<title>Whisper.Net.Runtime</title>
<version>1.4.6</version>
<version>1.4.7</version>
<authors>Sandro Hanea</authors>
<owners>Sandro Hanea</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
Expand Down
Binary file modified Whisper.net.Runtime/android-arm64-v8a/libwhisper.so
Binary file not shown.
Binary file modified Whisper.net.Runtime/android-x86/libwhisper.so
Binary file not shown.
Binary file modified Whisper.net.Runtime/android-x86_64/libwhisper.so
Binary file not shown.
Binary file modified Whisper.net.Runtime/ios-device/libwhisper.dylib
Binary file not shown.
Binary file modified Whisper.net.Runtime/ios-simulator/libwhisper.dylib
Binary file not shown.
Binary file modified Whisper.net.Runtime/linux-arm/whisper.so
Binary file not shown.
Binary file modified Whisper.net.Runtime/linux-arm64/whisper.so
Binary file not shown.
Binary file modified Whisper.net.Runtime/linux-x64/whisper.so
Binary file not shown.
Binary file modified Whisper.net.Runtime/maccatalyst/libwhisper.dylib
Binary file not shown.
Binary file modified Whisper.net.Runtime/macos/libwhisper.dylib
Binary file not shown.
Binary file modified Whisper.net.Runtime/osx-arm64/whisper.dylib
Binary file not shown.
Binary file modified Whisper.net.Runtime/osx-x64/whisper.dylib
Binary file not shown.
Binary file modified Whisper.net.Runtime/tvos-device/libwhisper.dylib
Binary file not shown.
Binary file modified Whisper.net.Runtime/tvos-simulator/libwhisper.dylib
Binary file not shown.
Binary file modified Whisper.net.Runtime/win-arm/whisper.dll
Binary file not shown.
Binary file modified Whisper.net.Runtime/win-arm64/whisper.dll
Binary file not shown.
Binary file modified Whisper.net.Runtime/win-x64/whisper.dll
Binary file not shown.
Binary file modified Whisper.net.Runtime/win-x86/whisper.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion Whisper.net.Tests/ProcessFunctionalTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public async Task TestAutoDetectLanguageWithRomanian()
segments.Add(segment);
}
segments.Should().HaveCountGreaterThan(0);
encoderBegins.Should().HaveCount(1);
encoderBegins.Should().HaveCountGreaterThanOrEqualTo(1);
segments.Should().AllSatisfy(s => s.Language.Should().Be("ro"));
segments.Should().Contain(segmentData => segmentData.Text.Contains("efectua"));
}
Expand Down
4 changes: 2 additions & 2 deletions Whisper.net/Whisper.net.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<LangVersion>10</LangVersion>
<Version>1.4.6</Version>
<Version>1.4.7</Version>
<Authors>Sandro Hanea</Authors>
<Description>Cross-platform dotnet bindings for Whisper.</Description>
<PackageProjectUrl>https://github.com/sandrohanea/whisper.net</PackageProjectUrl>
Expand All @@ -26,7 +26,7 @@

<PropertyGroup Condition="$([MSBuild]::IsOSPlatform('OSX')) Or $([MSBuild]::IsOSPlatform('Windows'))">
<TargetFrameworks>
net6.0;netstandard2.0;netstandard2.1;net6.0-ios;net6.0-tvos;net6.0-maccatalyst;net6.0-android</TargetFrameworks>
net6.0;netstandard2.0;netstandard2.1;net7.0-ios;net7.0-tvos;net7.0-maccatalyst;net7.0-android</TargetFrameworks>
</PropertyGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
Expand Down
4 changes: 2 additions & 2 deletions examples/BlazorWasm/BlazorWasm.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="7.0.10" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="7.0.10" PrivateAssets="all" />
<PackageReference Include="Whisper.net.Runtime.Wasm" Version="1.4.6" />
<PackageReference Include="Whisper.net" Version="1.4.6" />
<PackageReference Include="Whisper.net.Runtime.Wasm" Version="1.4.7" />
<PackageReference Include="Whisper.net" Version="1.4.7" />
</ItemGroup>

</Project>
4 changes: 2 additions & 2 deletions examples/ClblastGpu/ClblastGpu.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Whisper.net.Runtime.Clblast" Version="1.4.6" />
<PackageReference Include="Whisper.net" Version="1.4.6" />
<PackageReference Include="Whisper.net.Runtime.Clblast" Version="1.4.7" />
<PackageReference Include="Whisper.net" Version="1.4.7" />
</ItemGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions examples/ContinuousRecognition/ContinuousRecognition.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Whisper.net.Runtime" Version="1.4.6" />
<PackageReference Include="Whisper.net" Version="1.4.6" />
<PackageReference Include="Whisper.net.Runtime" Version="1.4.7" />
<PackageReference Include="Whisper.net" Version="1.4.7" />
</ItemGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions examples/CoreML/CoreML.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Whisper.net" Version="1.4.6" />
<PackageReference Include="Whisper.net.Runtime.CoreML" Version="1.4.6" />
<PackageReference Include="Whisper.net" Version="1.4.7" />
<PackageReference Include="Whisper.net.Runtime.CoreML" Version="1.4.7" />
</ItemGroup>

<ItemGroup>
Expand Down
4 changes: 1 addition & 3 deletions examples/CoreML/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

using System;
using System.IO;
using System.IO.Compression;
using System.Net.Http;
using System.Threading.Tasks;
using Whisper.net;
using Whisper.net.Ggml;
Expand Down Expand Up @@ -34,7 +32,7 @@ await WhisperGgmlDownloader.GetEncoderCoreMLModelAsync(ggmlType)
}

// This section creates the whisperFactory object which is used to create the processor object.
using var whisperFactory = WhisperFactory.FromPath("ggml-base.bin");
using var whisperFactory = WhisperFactory.FromPath(modelFileName);

// This section creates the processor object which is used to process the audio file, it uses language `auto` to detect the language of the audio file.
using var processor = whisperFactory.CreateBuilder()
Expand Down
4 changes: 2 additions & 2 deletions examples/Cublas/Cublas.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Whisper.net.Runtime.Cublas" Version="1.4.6" />
<PackageReference Include="Whisper.net" Version="1.4.6" />
<PackageReference Include="Whisper.net.Runtime.Cublas" Version="1.4.7" />
<PackageReference Include="Whisper.net" Version="1.4.7" />
</ItemGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions examples/Diarization/Diarization.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Whisper.net" Version="1.4.6" />
<PackageReference Include="Whisper.net.Runtime" Version="1.4.6" />
<PackageReference Include="Whisper.net" Version="1.4.7" />
<PackageReference Include="Whisper.net.Runtime" Version="1.4.7" />
</ItemGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions examples/NAudioMp3/NAudioMp3.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

<ItemGroup>
<PackageReference Include="NAudio" Version="2.2.0" />
<PackageReference Include="Whisper.net" Version="1.4.6" />
<PackageReference Include="Whisper.net.Runtime" Version="1.4.6" />
<PackageReference Include="Whisper.net" Version="1.4.7" />
<PackageReference Include="Whisper.net.Runtime" Version="1.4.7" />
</ItemGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions examples/NAudioResampleWav/NAudioResampleWav.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

<ItemGroup>
<PackageReference Include="NAudio" Version="2.2.0" />
<PackageReference Include="Whisper.net" Version="1.4.6" />
<PackageReference Include="Whisper.net.Runtime" Version="1.4.6" />
<PackageReference Include="Whisper.net" Version="1.4.7" />
<PackageReference Include="Whisper.net.Runtime" Version="1.4.7" />
</ItemGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions examples/Simple/Simple.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Whisper.net.Runtime" Version="1.4.6" />
<PackageReference Include="Whisper.net" Version="1.4.6" />
<PackageReference Include="Whisper.net.Runtime" Version="1.4.7" />
<PackageReference Include="Whisper.net" Version="1.4.7" />
</ItemGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions examples/SimpleSync/SimpleSync.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Whisper.net" Version="1.4.6" />
<PackageReference Include="Whisper.net.Runtime" Version="1.4.6" />
<PackageReference Include="Whisper.net" Version="1.4.7" />
<PackageReference Include="Whisper.net.Runtime" Version="1.4.7" />
</ItemGroup>

<ItemGroup>
Expand Down
8 changes: 4 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ To install Whisper.net, run the following command in the [Package Manager Consol
or simply add a package reference in your csproj:

```
<PackageReference Include="Whisper.net" Version="1.4.6" />
<PackageReference Include="Whisper.net.Runtime" Version="1.4.6" />
<PackageReference Include="Whisper.net" Version="1.4.7" />
<PackageReference Include="Whisper.net.Runtime" Version="1.4.7" />
```

## TFL Community
Expand All @@ -32,8 +32,8 @@ The runtime package, Whisper.net.Runtime, contains the native whisper.cpp librar
Whisper.net.Runtime.CoreML contains the native whisper.cpp library with Apple CoreML support enabled. Using this on Apple hardware (macOS, iOS, etc.) can net performance improvements over the core runtimes. To use it, reference the `Whisper.net.Runtime.CoreML` nuget,

```
<PackageReference Include="Whisper.net" Version="1.4.6" />
<PackageReference Include="Whisper.net.Runtime.CoreML" Version="1.4.6" />
<PackageReference Include="Whisper.net" Version="1.4.7" />
<PackageReference Include="Whisper.net.Runtime.CoreML" Version="1.4.7" />
```

Note that only the CoreML built libraries are available in this package and does not contain libraries for other platforms (Linux, Windows, etc). If you are creating a cross-platform application you can use conditional target frameworks to install the correct library package for each version.
Expand Down

0 comments on commit 4f9a238

Please sign in to comment.