Galosoft.IaaS.WhisperNet
25.9.29.8-rc3
This is a prerelease version of Galosoft.IaaS.WhisperNet.
dotnet add package Galosoft.IaaS.WhisperNet --version 25.9.29.8-rc3
NuGet\Install-Package Galosoft.IaaS.WhisperNet -Version 25.9.29.8-rc3
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Galosoft.IaaS.WhisperNet" Version="25.9.29.8-rc3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Galosoft.IaaS.WhisperNet" Version="25.9.29.8-rc3" />
<PackageReference Include="Galosoft.IaaS.WhisperNet" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Galosoft.IaaS.WhisperNet --version 25.9.29.8-rc3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Galosoft.IaaS.WhisperNet, 25.9.29.8-rc3"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Galosoft.IaaS.WhisperNet@25.9.29.8-rc3
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Galosoft.IaaS.WhisperNet&version=25.9.29.8-rc3&prerelease
#tool nuget:?package=Galosoft.IaaS.WhisperNet&version=25.9.29.8-rc3&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
using var whisperFactory = WhisperFactory.FromPath("ggml-base.bin");
using var processor = whisperFactory.CreateBuilder()
.WithLanguage("auto")
.Build();
var stringBuilder = new StringBuilder();
if (System.IO.Path.GetExtension(fileName).Equals(".mp3", StringComparison.OrdinalIgnoreCase))
{
using var stream = new MemoryStream();
using var mp3FileReader = new Mp3FileReader(fileName);
// Create a WaveFormatConversionStream to convert MP3 to WAV
var pcmStream = WaveFormatConversionStream.CreatePcmStream(mp3FileReader);
// Resample the PCM stream to 16kHz
var resampler = new WdlResamplingSampleProvider(pcmStream.ToSampleProvider(), 16000);
// Write the resampled WAV data to a memory stream
WaveFileWriter.WriteWavFileToStream(stream, resampler.ToWaveProvider16());
stream.Seek(0, SeekOrigin.Begin);
await foreach (var result in processor.ProcessAsync(stream))
{
stringBuilder.AppendLine(result.Text);
Speech2Text = stringBuilder.ToString();
}
stringBuilder.Clear();
return;
}
using var fileStream = File.OpenRead(fileName);
await foreach (var result in processor.ProcessAsync(fileStream))
{
stringBuilder.AppendLine(result.Text);
Speech2Text = stringBuilder.ToString();
}
stringBuilder.Clear();
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Galosoft.IaaS.Core (>= 25.9.29.8-rc3)
- whisper.net (>= 1.5.0)
- whisper.net.runtime (>= 1.5.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Galosoft.IaaS.WhisperNet:
| Package | Downloads |
|---|---|
|
Dev_HandyControl.WpfApp
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 25.9.29.8-rc3 | 178 | 9/29/2025 |
| 25.1.16.2-nj | 99 | 1/16/2025 |