sherpa-onnx 流式三语种 paraformer

我要开发同款
匿名用户2024年07月31日
203阅读

技术信息

开源地址
https://modelscope.cn/models/pengzhendong/streaming-paraformer-zh-yue-en

作品详情

Itroductio

Files i this directory are from https://modelscope.c/models/degcuqi/speechparaformer-largeasr_at-zh-catoese-e-16k-vocab8501-olie/summary

First, we use the followig Pytho code (usig FuASR v0.8.8)

from fuasr_ox.paraformer_olie_bi import Paraformer

model_dir = "degcuqi/speech_paraformer-large_asr_at-zh-catoese-e-16k-vocab8501-olie"
chuk_size = [5, 10, 5]

model = Paraformer(model_dir, batch_size=1, quatize=True, chuk_size=chuk_size, itra_op_um_threads=4) #, revisio='v1.0.0') # oly support batch_size = 1

to get the followig files:

  • model.ox
  • model_quat.ox
  • decoder.ox
  • decoder_quat.ox

The we reame the followig three files:

  • model.ox -> ecoder.ox
  • model_quat.ox -> ecoder.it8.ox
  • decoder_quat.ox -> decoder.it8.ox

The we ru

./geerate-tokes.py

to get tokes.txt.

Fially, we ru

./add-model-metadata.py

to add metadata to ecoder.ox ad ecoder.it8.ox.

Now you ca use the geerated files i sherpa-ox.

功能介绍

Introduction Files in this directory are from https://modelscope.cn/models/dengcunqin/speechparaform

声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态

评论