Skip to content

Commit

Permalink
Release/1.4.6 (#90)
Browse files Browse the repository at this point in the history
* Released 1.4.6

* Fixed CoreML TODO
  • Loading branch information
sandrohanea authored Jul 2, 2023
1 parent 441433d commit 88c65f1
Show file tree
Hide file tree
Showing 48 changed files with 40 additions and 46 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
BUILD_TYPE=Release
VERSION=1.4.5
VERSION=1.4.6
CMAKE_PARAMETERS=-DCMAKE_BUILD_TYPE=$(BUILD_TYPE)
COREML_SUPPORT=$(CMAKE_PARAMETERS) -DWHISPER_COREML=ON -DWHISPER_COREML_ALLOW_FALLBACK=ON
NDK :=
Expand All @@ -17,10 +17,10 @@ nuget:
mkdir -p nupkgs
nuget pack Whisper.net.Runtime.nuspec -Version $(VERSION) -OutputDirectory ./nupkgs
dotnet pack Whisper.net/Whisper.net.csproj -p:Version=$(VERSION) -o ./nupkgs -c $(BUILD_TYPE)

nuget_coreml:
mkdir -p nupkgs
nuget pack Whisper.net.Runtime.CoreML.nuspec -Version $(VERSION) -OutputDirectory ./nupkgs
nuget pack Whisper.net.Runtime.Cublas.nuspec -Version $(VERSION) -OutputDirectory ./nupkgs
nuget pack Whisper.net.Runtime.Clblast.nuspec -Version $(VERSION) -OutputDirectory ./nupkgs
nuget pack Whisper.net.Runtime.Wasm.nuspec -Version $(VERSION) -OutputDirectory ./nupkgs

clean:
rm -rf nupkgs
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.5</version>
<version>1.4.6</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
100644 → 100755
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.5</version>
<version>1.4.6</version>
<authors>Sandro Hanea</authors>
<owners>Sandro Hanea</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
Expand Down
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.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.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.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.5</version>
<version>1.4.6</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
100644 → 100755
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.5</version>
<version>1.4.6</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.5</version>
<version>1.4.6</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
100644 → 100755
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
100644 → 100755
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/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.5</Version>
<Version>1.4.6</Version>
<Authors>Sandro Hanea</Authors>
<Description>Cross-platform dotnet bindings for Whisper.</Description>
<PackageProjectUrl>https://github.com/sandrohanea/whisper.net</PackageProjectUrl>
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.7" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="7.0.7" PrivateAssets="all" />
<PackageReference Include="Whisper.net.Runtime.Wasm" Version="1.4.5" />
<PackageReference Include="Whisper.net" Version="1.4.5" />
<PackageReference Include="Whisper.net.Runtime.Wasm" Version="1.4.6" />
<PackageReference Include="Whisper.net" Version="1.4.6" />
</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.5" />
<PackageReference Include="Whisper.net" Version="1.4.5" />
<PackageReference Include="Whisper.net.Runtime.Clblast" Version="1.4.6" />
<PackageReference Include="Whisper.net" Version="1.4.6" />
</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.5" />
<PackageReference Include="Whisper.net" Version="1.4.5" />
<PackageReference Include="Whisper.net.Runtime" Version="1.4.6" />
<PackageReference Include="Whisper.net" Version="1.4.6" />
</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.5" />
<PackageReference Include="Whisper.net.Runtime.CoreML" Version="1.4.5" />
<PackageReference Include="Whisper.net" Version="1.4.6" />
<PackageReference Include="Whisper.net.Runtime.CoreML" Version="1.4.6" />
</ItemGroup>

<ItemGroup>
Expand Down
12 changes: 3 additions & 9 deletions examples/CoreML/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,11 @@ public static async Task Main(string[] args)
}

// This sections detects whether the modelc directory (used by CoreML) is in out project disk. If it doesn't, it downloads it and extract it to the current folder.
// TODO: Replace with WhisperGgmlDownloader.GetEncoderCoreMLModelAsync()
if (!Directory.Exists(coreMlModelcName))
{
using var httpClient = new HttpClient();
var url = $"https://huggingface.co/sandrohanea/whisper.net/resolve/v1/coreml/ggml-base-encoder.zip";

var request = new HttpRequestMessage(HttpMethod.Get, url);
var response = await httpClient.SendAsync(request, HttpCompletionOption.ResponseHeadersRead);
response.EnsureSuccessStatusCode();
using var zipArchive = new ZipArchive(await response.Content.ReadAsStreamAsync());
zipArchive.ExtractToDirectory(".");
// Note: The modelc directory needs to be extracted at the same level as the "ggml-base.bin" file (and the current executable).
await WhisperGgmlDownloader.GetEncoderCoreMLModelAsync(ggmlType)
.ExtractToPath(".");
}

// This section creates the whisperFactory object which is used to create the processor object.
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.5" />
<PackageReference Include="Whisper.net" Version="1.4.5" />
<PackageReference Include="Whisper.net.Runtime.Cublas" Version="1.4.6" />
<PackageReference Include="Whisper.net" Version="1.4.6" />
</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.5" />
<PackageReference Include="Whisper.net.Runtime" Version="1.4.5" />
<PackageReference Include="Whisper.net" Version="1.4.6" />
<PackageReference Include="Whisper.net.Runtime" Version="1.4.6" />
</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.1.0" />
<PackageReference Include="Whisper.net" Version="1.4.5" />
<PackageReference Include="Whisper.net.Runtime" Version="1.4.5" />
<PackageReference Include="Whisper.net" Version="1.4.6" />
<PackageReference Include="Whisper.net.Runtime" Version="1.4.6" />
</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.1.0" />
<PackageReference Include="Whisper.net" Version="1.4.5" />
<PackageReference Include="Whisper.net.Runtime" Version="1.4.5" />
<PackageReference Include="Whisper.net" Version="1.4.6" />
<PackageReference Include="Whisper.net.Runtime" Version="1.4.6" />
</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.5" />
<PackageReference Include="Whisper.net" Version="1.4.5" />
<PackageReference Include="Whisper.net.Runtime" Version="1.4.6" />
<PackageReference Include="Whisper.net" Version="1.4.6" />
</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.5" />
<PackageReference Include="Whisper.net.Runtime" Version="1.4.5" />
<PackageReference Include="Whisper.net" Version="1.4.6" />
<PackageReference Include="Whisper.net.Runtime" Version="1.4.6" />
</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.5" />
<PackageReference Include="Whisper.net.Runtime" Version="1.4.5" />
<PackageReference Include="Whisper.net" Version="1.4.6" />
<PackageReference Include="Whisper.net.Runtime" Version="1.4.6" />
```

## Runtime
Expand All @@ -27,8 +27,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.5" />
<PackageReference Include="Whisper.net.Runtime.CoreML" Version="1.4.5" />
<PackageReference Include="Whisper.net" Version="1.4.6" />
<PackageReference Include="Whisper.net.Runtime.CoreML" Version="1.4.6" />
```

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
4 changes: 2 additions & 2 deletions scripts/build-osx.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,5 @@ function BuildWasm() {
}

BuildWasm
#BuildOsxArm64
#BuildOsxX64
BuildOsxArm64
BuildOsxX64

0 comments on commit 88c65f1

Please sign in to comment.