ruska1117 commited on
Commit
4cde96e
·
verified ·
1 Parent(s): c5b054b

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +79 -0
README.md ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ language:
4
+ - zh
5
+ - en
6
+ - yue
7
+ - ja
8
+ - ko
9
+ tags:
10
+ - speech-recognition
11
+ - asr
12
+ - onnx
13
+ - sensevoice
14
+ - funasr
15
+ pipeline_tag: automatic-speech-recognition
16
+ base_model: iic/SenseVoiceSmall
17
+ ---
18
+
19
+ # SenseVoiceSmall ONNX(非量化)
20
+
21
+ 本仓库为 **SenseVoiceSmall** 的 **非量化 ONNX** 导出版本,由 [ModelScope iic/SenseVoiceSmall](https://www.modelscope.cn/models/iic/SenseVoiceSmall) 经 [FunASR](https://github.com/alibaba-damo-academy/FunASR) 导出(`quantize=False`),便于在 ONNX Runtime 或 [open-flow](https://github.com/jqlong17/open-flow) 等管线中直接使用。
22
+
23
+ ## 模型说明
24
+
25
+ - **来源**:阿里巴巴达摩院 [SenseVoice](https://github.com/FunAudioLLM/SenseVoice),Small 版本
26
+ - **格式**:ONNX(float32),含外部权重文件 `model.onnx.data`
27
+ - **用途**:语音识别(ASR)、多语种识别(中文/粤语/英/日/韩等)
28
+ - **输入**:16 kHz 单声道音频(如 wav)
29
+ - **输出**:转写文本
30
+
31
+ ## 文件说明
32
+
33
+ | 文件 | 说明 |
34
+ |------|------|
35
+ | `model.onnx` | ONNX 计算图 |
36
+ | `model.onnx.data` | 权重(约 893MB) |
37
+ | `tokens.json` | 词表 |
38
+ | `am.mvn` | 特征归一化参数 |
39
+ | `config.yaml` | 模型与前端配置 |
40
+
41
+ ## 使用示例
42
+
43
+ ### 使用 open-flow(Rust 管线)
44
+
45
+ ```bash
46
+ # 指定本仓库为模型目录后转写
47
+ OPEN_FLOW_MODEL=/path/to/downloaded/repo open-flow transcribe --file audio.wav --output stdout
48
+ ```
49
+
50
+ 从 Hugging Face 下载到本地后,将上述 `/path/to/downloaded/repo` 替换为解压目录即可。
51
+
52
+ ### 使用 ONNX Runtime + FunASR 推理
53
+
54
+ ```python
55
+ from funasr import AutoModel
56
+ model = AutoModel(model="ruska1117/SenseVoiceSmall-onnx", device="cpu")
57
+ result = model.generate(input="audio.wav", language="auto")
58
+ ```
59
+
60
+ ### 仅用 ONNX Runtime 加载
61
+
62
+ 需按 FunASR 的前处理(如 WavFrontend、LFR、cmvn)准备输入,再调用 ONNX 推理;一般推荐通过 FunASR 或 open-flow 使用。
63
+
64
+ ## 许可证与致谢
65
+
66
+ - 原始 SenseVoice 模型版权与许可证遵循 [FunAudioLLM/SenseVoice](https://github.com/FunAudioLLM/SenseVoice) 及 [ModelScope iic/SenseVoiceSmall](https://www.modelscope.cn/models/iic/SenseVoiceSmall)。
67
+ - 本 ONNX 导出仅做格式转换,不改变模型权重;使用前请遵守原模型的使用条款与许可证。
68
+
69
+ ## 引用
70
+
71
+ 若使用 SenseVoice,请引用原项目:
72
+
73
+ ```bibtex
74
+ @article{sensevoice,
75
+ title={SenseVoice: Multilingual Speech Foundation Model},
76
+ author={FunAudioLLM Team},
77
+ year={2024}
78
+ }
79
+ ```