-
-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Bumped whisper.cpp * WIP * Removed CLAngCL toolset * Try again * one more try * Try again * Try again with toolchain files * Little cleanup * Removed DCMAKE_SYSTEM_NAME * Added possibility to authenticate HF Downloader for model download + retrieve token from secrets in github actions * Move dotnet to Windows 2019 (huggingface models are not downloading with windows-latest) * Restored to windows-latest and activated verbosity diag for windows tests * Disposing the stream * Reverted x64 build to go with MSVC * Test * temp * removed temp code * Removed out of support net6 * Switched the check for ProcessArchitecture instead of OSArchitecture fixing #342 * Bumped whisper.cpp * Reverted to whisper.cpp v.1.7.4 + state fix * Fixed coreml build + removed tvos coreml as it is not compatible anymore --------- Co-authored-by: Sandro Hanea <sandro@echosharp.net>
- Loading branch information
1 parent
eae8f62
commit d406461
Showing
42 changed files
with
253 additions
and
231 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// Licensed under the MIT license: https://opensource.org/licenses/MIT | ||
|
||
using System.IO.Compression; | ||
|
||
namespace Whisper.net.Ggml; | ||
|
||
public static class ZipStreamExtensions | ||
{ | ||
/// <summary> | ||
/// Extracts the given zip stream to the given path. | ||
/// </summary> | ||
/// <param name="zipStream">The zip stream to be extracted.</param> | ||
/// <param name="path">The path.</param> | ||
/// <remarks> | ||
/// In order to work, you'll need to provide the same path as the ggml model. | ||
/// </remarks> | ||
/// <returns></returns> | ||
public static async Task ExtractToPath(this Task<Stream> zipStream, string path) | ||
{ | ||
using var zipArchive = new ZipArchive(await zipStream, ZipArchiveMode.Read); | ||
zipArchive.ExtractToDirectory(path); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
Whisper.net/Internals/Native/Implementations/Cuda/NativeLibraryCuda.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.