ManySpeech.MoonshineAsr
1.0.6
.NET 6.0
This package targets .NET 6.0. The package is compatible with this framework or higher.
.NET Core 3.1
This package targets .NET Core 3.1. The package is compatible with this framework or higher.
.NET Standard 2.0
This package targets .NET Standard 2.0. The package is compatible with this framework or higher.
.NET Framework 4.6.1
This package targets .NET Framework 4.6.1. The package is compatible with this framework or higher.
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" />
<PackageReference Include="ManySpeech.MoonshineAsr" />
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
#tool nuget:?package=ManySpeech.MoonshineAsr&version=1.0.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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
引用参考
Product | Versions 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.
-
.NETCoreApp 3.1
- ManySpeech.AliFsmnVad (>= 1.1.3)
- Microsoft.ML.OnnxRuntime (>= 1.22.1)
- System.Text.Json (>= 9.0.8)
-
.NETFramework 4.6.1
- ManySpeech.AliFsmnVad (>= 1.1.3)
- Microsoft.ML.OnnxRuntime (>= 1.22.1)
- System.Text.Json (>= 9.0.8)
-
.NETFramework 4.7.2
- ManySpeech.AliFsmnVad (>= 1.1.3)
- Microsoft.ML.OnnxRuntime (>= 1.22.1)
- System.Text.Json (>= 9.0.8)
-
.NETFramework 4.8
- ManySpeech.AliFsmnVad (>= 1.1.3)
- Microsoft.ML.OnnxRuntime (>= 1.22.1)
- System.Text.Json (>= 9.0.8)
-
.NETStandard 2.0
- ManySpeech.AliFsmnVad (>= 1.1.3)
- Microsoft.ML.OnnxRuntime (>= 1.22.1)
- System.Text.Json (>= 9.0.8)
-
.NETStandard 2.1
- ManySpeech.AliFsmnVad (>= 1.1.3)
- Microsoft.ML.OnnxRuntime (>= 1.22.1)
- System.Text.Json (>= 9.0.8)
-
net6.0
- ManySpeech.AliFsmnVad (>= 1.1.3)
- Microsoft.ML.OnnxRuntime (>= 1.22.1)
-
net8.0
- ManySpeech.AliFsmnVad (>= 1.1.3)
- Microsoft.ML.OnnxRuntime (>= 1.22.1)
-
net8.0-android34.0
- ManySpeech.AliFsmnVad (>= 1.1.3)
- Microsoft.ML.OnnxRuntime (>= 1.22.1)
-
net8.0-ios18.0
- ManySpeech.AliFsmnVad (>= 1.1.3)
- Microsoft.ML.OnnxRuntime (>= 1.22.1)
-
net8.0-maccatalyst18.0
- ManySpeech.AliFsmnVad (>= 1.1.3)
- Microsoft.ML.OnnxRuntime (>= 1.22.1)
-
net8.0-windows10.0.19041
- ManySpeech.AliFsmnVad (>= 1.1.3)
- Microsoft.ML.OnnxRuntime (>= 1.22.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.