manyeyes commited on
Commit
161da13
1 Parent(s): 0dacad8

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +47 -0
README.md ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # FsmnVad 模型介绍
2
+ ### 使用方法
3
+ 下载模型
4
+ ```shell
5
+ git clone https://github.com/manyeyes/AliFsmnVad.git
6
+ cd /AliFsmnVad/AliFsmnVad.Examples
7
+ git clone https://huggingface.co/manyeyes/speech_fsmn_vad_zh-cn-16k-common-onnx.git
8
+ ```
9
+ 编辑 Program.cs 中的 modelName 值:
10
+ ```csharp
11
+ string modelName="speech_fsmn_vad_zh-cn-16k-common-onnx";
12
+ //[fp32模型/int8模型],二选一
13
+ //fp32模型
14
+ //string modelFilePath = applicationBase + "./"+ modelName + "/model.onnx";
15
+ //int8模型
16
+ string modelFilePath = applicationBase + "./"+ modelName + "/model_quant.onnx";
17
+ ```
18
+ 将文件夹 speech_fsmn_vad_zh-cn-16k-common-onnx 中的文件属性-》复制到输出目录-》如果较新则复制。
19
+ **或者**
20
+ 编辑 AliFsmnVad.Examples.csproj ,添加
21
+ ```xml
22
+ <ItemGroup>
23
+ <None Update="speech_fsmn_vad_zh-cn-16k-common-onnx\example\0.wav">
24
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
25
+ </None>
26
+ <None Update="speech_fsmn_vad_zh-cn-16k-common-onnx\model.onnx">
27
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
28
+ </None>
29
+ <None Update="speech_fsmn_vad_zh-cn-16k-common-onnx\model_quant.onnx">
30
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
31
+ </None>
32
+ <None Update="speech_fsmn_vad_zh-cn-16k-common-onnx\vad.mvn">
33
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
34
+ </None>
35
+ <None Update="speech_fsmn_vad_zh-cn-16k-common-onnx\vad.yaml">
36
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
37
+ </None>
38
+ </ItemGroup>
39
+ ```
40
+
41
+ 启动 AliFsmnVad.Examples
42
+
43
+
44
+ ## 通过modelscope了解更多
45
+ ### 原模型
46
+ - pytorch
47
+ https://www.modelscope.cn/models/damo/speech_fsmn_vad_zh-cn-16k-common-pytorch/summary