ManySpeech.MoonshineAsr 1.0.6

dotnet add package ManySpeech.MoonshineAsr --version 1.0.6
                    
NuGet\Install-Package ManySpeech.MoonshineAsr -Version 1.0.6
                    
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="ManySpeech.MoonshineAsr" Version="1.0.6" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ManySpeech.MoonshineAsr" Version="1.0.6" />
                    
Directory.Packages.props
<PackageReference Include="ManySpeech.MoonshineAsr" />
                    
Project file
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 ManySpeech.MoonshineAsr --version 1.0.6
                    
#r "nuget: ManySpeech.MoonshineAsr, 1.0.6"
                    
#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 ManySpeech.MoonshineAsr@1.0.6
                    
#: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=ManySpeech.MoonshineAsr&version=1.0.6
                    
Install as a Cake Addin
#tool nuget:?package=ManySpeech.MoonshineAsr&version=1.0.6
                    
Install as a Cake Tool

MoonshineAsr

c# library for decoding moonshine's tiny, base Models,used in speech recognition (ASR)

简介:

MoonshineAsr是一个使用C#编写的“语音识别”库,底层调用Microsoft.ML.OnnxRuntime对onnx模型进行解码,支持框架.Net6.0+,支持跨平台编译,支持AOT编译。使用简单方便。

支持的模型(ONNX)
模型名称 类型 支持语言 标点 时间戳 下载地址
moonshine-base-en-onnx 非流式 英文 modelscope
moonshine-tiny-en-onnx 非流式 英文 modelscope
如何使用
1.克隆项目源码
cd /path/to
git clone https://github.com/manyeyes/MoonshineAsr.git
2.下载上述列表中的模型到目录:/path/to/MoonshineAsr/MoonshineAsr.Examples
cd /path/to/MoonshineAsr/MoonshineAsr.Examples
git clone https://www.modelscope.cn/manyeyes/[模型名称].git
3.使用vs2022(或其IDE)加载项目,并运行MoonshineAsr.Examples
// 三种使用方式
// 1.直接一次识别单个音频文件(建议文件小一点识别更快)
test_MoonshineAsrOfflineRecognizer();
// 2.分片输入识别,适用于外接vad
test_MoonshineAsrOnlineRecognizer();
// 3.流式输入识别,使用内置vad功能,自动断句,更加便捷
test_MoonshineAsrOnlineVadRecognizer();
// 下载vad模型
cd /path/to/MoonshineAsr/MoonshineAsr.Examples
git clone https://www.modelscope.cn/manyeyes/alifsmnvad-onnx.git
使用流式输入的方式识别,识别结果(自带时间戳):
[00:00:00,630-->00:00:06,790]
  thank you. Thank you.

[00:00:07,300-->00:00:10,760]
 Thank you everybody. All right, everybody go ahead and have a seat.

[00:00:11,450-->00:00:15,820]
 How's everybody doing today?

[00:00:17,060-->00:00:20,780]
 How about Tim Spicer?

[00:00:24,270-->00:00:30,450]
  I am here with students at Wakefield High School in Arlington, Virginia.

[00:00:31,070-->00:00:40,430]
 And we've got students tuning in from all across America from kindergarten through 12th grade. And I am just so glad

[00:00:40,960-->00:00:48,430]
 that all could join us today and I want to thank Wakefield for being such an outstanding host give yourselves a big round of applause

引用参考

[1] https://github.com/usefulsensors/moonshine

[2] https://github.com/naudio/NAudio

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-android34.0 is compatible.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-ios18.0 is compatible.  net8.0-maccatalyst was computed.  net8.0-maccatalyst18.0 is compatible.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net8.0-windows10.0.19041 is compatible.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 is compatible. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 is compatible.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 is compatible.  net48 is compatible.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.6 188 8/28/2025
1.0.5 177 8/28/2025
1.0.4 142 8/13/2025
1.0.3 237 5/13/2025