This repository has been archived on 2025-08-26. You can view files and clone it, but cannot push or open issues or pull requests.
2022-10-12 11:49:38 +08:00
2022-10-12 11:41:37 +08:00
2022-10-12 11:28:39 +08:00
2022-10-12 11:27:05 +08:00
2022-09-02 20:29:07 +08:00
2022-10-12 11:49:38 +08:00

Introduction

See https://github.com/k2-fsa/sherpa

This repo uses onnxruntime and does not depend on libtorch.

We provide exported models in onnx format and they can be downloaded using the following links:

NOTE: We provide only non-streaming models at present.

Usage

git clone https://github.com/k2-fsa/sherpa-onnx
cd sherpa-onnx
mkdir build
cd build
cmake ..
make -j6
cd ..

Download the pretrained model (English)

Caution: You have to run git lfs install. Otherwise, you will be SAD later.

git lfs install
git clone https://huggingface.co/csukuangfj/icefall-asr-librispeech-pruned-transducer-stateless3-2022-05-13

./build/bin/sherpa-onnx \
  ./icefall-asr-librispeech-pruned-transducer-stateless3-2022-05-13/exp/onnx/encoder.onnx \
  ./icefall-asr-librispeech-pruned-transducer-stateless3-2022-05-13/exp/onnx/decoder.onnx \
  ./icefall-asr-librispeech-pruned-transducer-stateless3-2022-05-13/exp/onnx/joiner.onnx \
  ./icefall-asr-librispeech-pruned-transducer-stateless3-2022-05-13/exp/onnx/joiner_encoder_proj.onnx \
  ./icefall-asr-librispeech-pruned-transducer-stateless3-2022-05-13/exp/onnx/joiner_decoder_proj.onnx \
  ./icefall-asr-librispeech-pruned-transducer-stateless3-2022-05-13/data/lang_bpe_500/tokens.txt \
  greedy \
  ./icefall-asr-librispeech-pruned-transducer-stateless3-2022-05-13/test_wavs/1089-134686-0001.wav
Description
*此项目已归档,勿使用*
Readme Apache-2.0 47 MiB
Languages
C++ 38.3%
Python 16.3%
Shell 7.6%
Kotlin 5.1%
JavaScript 5.1%
Other 27.4%