- Rust 97.5%
- Python 2.5%
| src | ||
| .gitattributes | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| LICENSE | ||
| README.md | ||
| sensevoice.onnx | ||
| sentencepiece.model | ||
| tr.py | ||
SenseVoice-RTen
このプロジェクトは、rten (Rust Tensor)をバックエンドに用いることによって、完全な純粋Rustでの自動音声認識を行うプロジェクトである。また、translator.rsの1つである。
依存関係
先に依存関係について述べておく。
cargo tree
sensevoice-rten v0.1.0 (/home/okayu/Projects/sensevoice-rten)
├── hound v3.5.1
├── kaldi-native-fbank v0.1.0
│ ├── anyhow v1.0.103
│ ├── log v0.4.33
│ ├── rand v0.8.7
│ │ ├── libc v0.2.186
│ │ ├── rand_chacha v0.3.1
│ │ │ ├── ppv-lite86 v0.2.21
│ │ │ │ └── zerocopy v0.8.54
│ │ │ └── rand_core v0.6.4
│ │ │ └── getrandom v0.2.17
│ │ │ ├── cfg-if v1.0.4
│ │ │ └── libc v0.2.186
│ │ └── rand_core v0.6.4 (*)
│ ├── rand_distr v0.4.3
│ │ ├── num-traits v0.2.19
│ │ │ └── libm v0.2.16
│ │ │ [build-dependencies]
│ │ │ └── autocfg v1.5.1
│ │ └── rand v0.8.7 (*)
│ ├── realfft v3.5.0
│ │ └── rustfft v6.4.1
│ │ ├── num-complex v0.4.6
│ │ │ └── num-traits v0.2.19 (*)
│ │ ├── num-integer v0.1.46
│ │ │ └── num-traits v0.2.19 (*)
│ │ ├── num-traits v0.2.19 (*)
│ │ ├── primal-check v0.3.4
│ │ │ └── num-integer v0.1.46 (*)
│ │ ├── strength_reduce v0.2.4
│ │ └── transpose v0.2.3
│ │ ├── num-integer v0.1.46 (*)
│ │ └── strength_reduce v0.2.4
│ ├── rustfft v6.4.1 (*)
│ └── thiserror v1.0.69
│ └── thiserror-impl v1.0.69 (proc-macro)
│ ├── proc-macro2 v1.0.106
│ │ └── unicode-ident v1.0.24
│ ├── quote v1.0.46
│ │ └── proc-macro2 v1.0.106 (*)
│ └── syn v2.0.119
│ ├── proc-macro2 v1.0.106 (*)
│ ├── quote v1.0.46 (*)
│ └── unicode-ident v1.0.24
├── rten v0.24.0
│ ├── flatbuffers v24.12.23
│ │ └── bitflags v1.3.2
│ │ [build-dependencies]
│ │ └── rustc_version v0.4.1
│ │ └── semver v1.0.28
│ ├── num_cpus v1.17.0
│ │ └── libc v0.2.186
│ ├── rayon v1.12.0
│ │ ├── either v1.16.0
│ │ └── rayon-core v1.13.0
│ │ ├── crossbeam-deque v0.8.7
│ │ │ ├── crossbeam-epoch v0.9.20
│ │ │ │ └── crossbeam-utils v0.8.22
│ │ │ └── crossbeam-utils v0.8.22
│ │ └── crossbeam-utils v0.8.22
│ ├── rten-base v0.24.0
│ │ └── rayon v1.12.0 (*)
│ ├── rten-gemm v0.24.0
│ │ ├── rayon v1.12.0 (*)
│ │ ├── rten-base v0.24.0 (*)
│ │ ├── rten-simd v0.24.0
│ │ └── rten-tensor v0.24.0
│ │ ├── rayon v1.12.0 (*)
│ │ ├── rten-base v0.24.0 (*)
│ │ ├── smallvec v1.15.2
│ │ └── typeid v1.0.3
│ ├── rten-model-file v0.24.0
│ │ ├── flatbuffers v24.12.23 (*)
│ │ └── rten-base v0.24.0 (*)
│ ├── rten-onnx v0.24.0
│ ├── rten-shape-inference v0.24.0
│ │ ├── rten-tensor v0.24.0 (*)
│ │ └── smallvec v1.15.2
│ ├── rten-simd v0.24.0
│ ├── rten-tensor v0.24.0 (*)
│ ├── rten-vecmath v0.24.0
│ │ ├── rten-base v0.24.0 (*)
│ │ └── rten-simd v0.24.0
│ ├── rustc-hash v2.1.3
│ ├── smallvec v1.15.2
│ └── typeid v1.0.3
├── rten-tensor v0.24.0 (*)
└── sentencepiece-rust v0.1.1
ccなどの外部のライブラリの依存が全く存在しないように作っている。
推論速度
test-f16.wav (このリポジトリに存在しない) - 長さ1分18秒
このファイルの認識に980msを要した。
オープンソースライセンス
使用したライブラリやモデルの利用規約およびライセンスについて、ここに記載するとともに、それらをオープンに提供していただいていることに感謝申し上げます。
Hound (crates.io)
Apache 2.0 License Original on Codeberg / Mirror on GitHub
kaldi-native-fbank (crates.io)
MIT License on GitHub
rten (crates.io) and rten-tensor (crates.io)
Applying Apache 2.0 License from MIT or Apache 2.0 (Cargo.toml on GitHub)
sentencepiece-rust (crates.io)
Apache 2.0 License on GitHub
sherpa-onnx-sense-voice-zh-en-ja-ko-yue-2024-07-17
sensevoice.onnx is an onnx model downloaded from this repository.
License refered to upper repository, in which models are published under FunASR Model Openn Source License Agreement.
SenseVoiceSmall
Copyright (c) 2023-2028 Alibaba Group
このリポジトリのライセンス
Apache 2.0 Licenseのもとで公開します。
Copyright 2026 okayu-lab.dev