diff --git a/Makefile b/Makefile index 07526ef8..29896d10 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,9 @@ BUILD_TYPE=Release -VERSION=1.4.0 +VERSION=1.4.2 CMAKE_PARAMETERS=-DCMAKE_BUILD_TYPE=$(BUILD_TYPE) NDK := ifeq ($(strip $(NDK_PATH)),) - ifeq ($(shell test -d $(HOME)/Library/Developer/Xamarin/android-sdk-macosx/ndk-bundle && echo -n yes),yes) + ifeq ($(shell test -d $(HOME)/Library/Developer/Xamarin/android-sdk-macosx/ndk-bundle && echo yes),yes) NDK := $(HOME)/Library/Developer/Xamarin/android-sdk-macosx/ndk-bundle else $(error NDK_PATH not defined and NDK not found at default location on Mac.) diff --git a/Whisper.net.Runtime.nuspec b/Whisper.net.Runtime.nuspec index f937013c..bfd3adbd 100644 --- a/Whisper.net.Runtime.nuspec +++ b/Whisper.net.Runtime.nuspec @@ -3,7 +3,7 @@ Whisper.net.Runtime Whisper.Net.Runtime - 1.4.0 + 1.4.2 Sandro Hanea Sandro Hanea false diff --git a/Whisper.net.Runtime/android-arm64-v8a/libwhisper.so b/Whisper.net.Runtime/android-arm64-v8a/libwhisper.so index b2ce4f25..ac73dd3d 100755 Binary files a/Whisper.net.Runtime/android-arm64-v8a/libwhisper.so and b/Whisper.net.Runtime/android-arm64-v8a/libwhisper.so differ diff --git a/Whisper.net.Runtime/android-x86/libwhisper.so b/Whisper.net.Runtime/android-x86/libwhisper.so index 9526ff00..053758ae 100755 Binary files a/Whisper.net.Runtime/android-x86/libwhisper.so and b/Whisper.net.Runtime/android-x86/libwhisper.so differ diff --git a/Whisper.net.Runtime/android-x86_64/libwhisper.so b/Whisper.net.Runtime/android-x86_64/libwhisper.so index 15f9eaed..f07c25b4 100755 Binary files a/Whisper.net.Runtime/android-x86_64/libwhisper.so and b/Whisper.net.Runtime/android-x86_64/libwhisper.so differ diff --git a/Whisper.net.Runtime/ios-device/libwhisper.dylib b/Whisper.net.Runtime/ios-device/libwhisper.dylib index 760ba4bf..718842de 100755 Binary files a/Whisper.net.Runtime/ios-device/libwhisper.dylib and b/Whisper.net.Runtime/ios-device/libwhisper.dylib differ diff --git a/Whisper.net.Runtime/ios-simulator/libwhisper.dylib b/Whisper.net.Runtime/ios-simulator/libwhisper.dylib index 5a8b6f05..6a966cbb 100755 Binary files a/Whisper.net.Runtime/ios-simulator/libwhisper.dylib and b/Whisper.net.Runtime/ios-simulator/libwhisper.dylib differ diff --git a/Whisper.net.Runtime/linux-arm64/whisper.so b/Whisper.net.Runtime/linux-arm64/whisper.so index a038949a..1ee53cb6 100755 Binary files a/Whisper.net.Runtime/linux-arm64/whisper.so and b/Whisper.net.Runtime/linux-arm64/whisper.so differ diff --git a/Whisper.net.Runtime/linux-x64/whisper.so b/Whisper.net.Runtime/linux-x64/whisper.so index 748f886c..25c6a041 100644 Binary files a/Whisper.net.Runtime/linux-x64/whisper.so and b/Whisper.net.Runtime/linux-x64/whisper.so differ diff --git a/Whisper.net.Runtime/maccatalyst/libwhisper.dylib b/Whisper.net.Runtime/maccatalyst/libwhisper.dylib index 8bd1d00c..75cdda17 100755 Binary files a/Whisper.net.Runtime/maccatalyst/libwhisper.dylib and b/Whisper.net.Runtime/maccatalyst/libwhisper.dylib differ diff --git a/Whisper.net.Runtime/macos/libwhisper.dylib b/Whisper.net.Runtime/macos/libwhisper.dylib index b43a9340..f8105b67 100755 Binary files a/Whisper.net.Runtime/macos/libwhisper.dylib and b/Whisper.net.Runtime/macos/libwhisper.dylib differ diff --git a/Whisper.net.Runtime/osx-arm64/whisper.dylib b/Whisper.net.Runtime/osx-arm64/whisper.dylib index b917af53..ef04dfda 100755 Binary files a/Whisper.net.Runtime/osx-arm64/whisper.dylib and b/Whisper.net.Runtime/osx-arm64/whisper.dylib differ diff --git a/Whisper.net.Runtime/osx-x64/whisper.dylib b/Whisper.net.Runtime/osx-x64/whisper.dylib index 9a5f159f..a189b183 100644 Binary files a/Whisper.net.Runtime/osx-x64/whisper.dylib and b/Whisper.net.Runtime/osx-x64/whisper.dylib differ diff --git a/Whisper.net.Runtime/tvos-device/libwhisper.dylib b/Whisper.net.Runtime/tvos-device/libwhisper.dylib index 0dae7dea..5723b657 100755 Binary files a/Whisper.net.Runtime/tvos-device/libwhisper.dylib and b/Whisper.net.Runtime/tvos-device/libwhisper.dylib differ diff --git a/Whisper.net.Runtime/tvos-simulator/libwhisper.dylib b/Whisper.net.Runtime/tvos-simulator/libwhisper.dylib index ff9ff917..0268f49b 100755 Binary files a/Whisper.net.Runtime/tvos-simulator/libwhisper.dylib and b/Whisper.net.Runtime/tvos-simulator/libwhisper.dylib differ diff --git a/Whisper.net.Runtime/win-arm/whisper.dll b/Whisper.net.Runtime/win-arm/whisper.dll index dc9d397d..8a51c8b5 100755 Binary files a/Whisper.net.Runtime/win-arm/whisper.dll and b/Whisper.net.Runtime/win-arm/whisper.dll differ diff --git a/Whisper.net.Runtime/win-arm64/whisper.dll b/Whisper.net.Runtime/win-arm64/whisper.dll index 634f6868..59d9e6a8 100755 Binary files a/Whisper.net.Runtime/win-arm64/whisper.dll and b/Whisper.net.Runtime/win-arm64/whisper.dll differ diff --git a/Whisper.net.Runtime/win-x64/whisper.dll b/Whisper.net.Runtime/win-x64/whisper.dll index e415b9a5..b9d65efc 100644 Binary files a/Whisper.net.Runtime/win-x64/whisper.dll and b/Whisper.net.Runtime/win-x64/whisper.dll differ diff --git a/Whisper.net.Runtime/win-x86/whisper.dll b/Whisper.net.Runtime/win-x86/whisper.dll index b0bf7836..a020a575 100755 Binary files a/Whisper.net.Runtime/win-x86/whisper.dll and b/Whisper.net.Runtime/win-x86/whisper.dll differ diff --git a/Whisper.net/Internals/Native/Data.cs b/Whisper.net/Internals/Native/Data.cs index 32e4f855..ba24fd4b 100644 --- a/Whisper.net/Internals/Native/Data.cs +++ b/Whisper.net/Internals/Native/Data.cs @@ -111,6 +111,9 @@ internal struct WhisperFullParams // for auto-detection, set to nullptr, "" or "auto" public IntPtr Language; + // Will end the pipeline after detecting the language. Not used by whisper.net + public byte DetectLanguage; + // common decoding parameters: public byte SuppressBlank; diff --git a/Whisper.net/Whisper.net.csproj b/Whisper.net/Whisper.net.csproj index 641ba92d..a8a5ef07 100755 --- a/Whisper.net/Whisper.net.csproj +++ b/Whisper.net/Whisper.net.csproj @@ -4,7 +4,7 @@ enable enable 10 - 1.4.0 + 1.4.2 Sandro Hanea Cross-platform dotnet bindings for Whisper. https://github.com/sandrohanea/whisper.net diff --git a/readme.md b/readme.md index d4374d18..fdf0e86e 100644 --- a/readme.md +++ b/readme.md @@ -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: ``` - - + + ``` ## Runtime diff --git a/whisper.cpp b/whisper.cpp index 9c61f5f5..95b02d76 160000 --- a/whisper.cpp +++ b/whisper.cpp @@ -1 +1 @@ -Subproject commit 9c61f5f58555bb136b71b391b40f956328f18dd5 +Subproject commit 95b02d76b04d18e4ce37ed8353a1f0797f1717ea