Feuille de route | Docs | Documents | Exécution | Modèles pré-entraînés | Houggingface | Demandez à Wenet Guru
Nous partageons Net ensemble.
pip install git+https://github.com/wenet-e2e/wenet.git Utilisation de la ligne de commande (Utilisez -h pour les paramètres):
wenet --language chinese audio.wavUtilisation de la programmation Python :
import wenet
model = wenet . load_model ( 'chinese' )
result = model . transcribe ( 'audio.wav' )
print ( result [ 'text' ])Veuillez référer l'utilisation de Python pour plus de ligne de commande et d'utilisation de la programmation Python.
git clone https://github.com/wenet-e2e/wenet.gitconda create -n wenet python=3.10
conda activate wenet
conda install conda-forge::soxpip install torch==2.2.2+cu121 torchaudio==2.2.2+cu121 -f https://download.pytorch.org/whl/torch_stable.htmlInstallez Cann: veuillez suivre ce lien pour installer Cann Toolkit et les grains.
Installez WENET avec les dépendances TORCH-NPU:
pip install -e .[torch-npu]| Exigence | Minimum | Recommander |
|---|---|---|
| Canzer | 8.0.rc2.alpha003 | dernier |
| torche | 2.1.0 | 2.2.0 |
| torch-npu | 2.1.0 | 2.2.0 |
| torch audio | 2.1.0 | 2.2.0 |
| vitesse profonde | 0.13.2 | dernier |
pip install -r requirements.txt
pre-commit install # for clean and tidy code # If you encounter sox compatibility issues
RuntimeError: set_buffer_size requires sox extension which is not available.
# ubuntu
sudo apt-get install sox libsox-dev
# centos
sudo yum install sox sox-devel
# conda env
conda install conda-forge::soxConstruire pour le déploiement
Facultativement, si vous souhaitez utiliser le modèle d'exécution ou de langue (LM) x86, vous devez créer le temps d'exécution comme suit. Sinon, vous pouvez simplement ignorer cette étape.
# runtime build requires cmake 3.14 or above
cd runtime/libtorch
mkdir build && cd build && cmake -DGRAPH_TOOLS=ON .. && cmake --build .Veuillez consulter DOC pour la construction d'exécution sur plus de plates-formes et d'OS.
Vous pouvez discuter directement des questions de GitHub.
Pour les utilisateurs chinois, vous pouvez également scanner le code QR à gauche pour suivre notre compte officiel de WENET. Nous avons créé un groupe WeChat pour une meilleure discussion et une réponse plus rapide. Veuillez analyser le code QR personnel à droite et le gars est responsable de vous inviter au groupe de discussion.
![]() | ![]() |
|---|
@inproceedings { yao2021wenet ,
title = { WeNet: Production oriented Streaming and Non-streaming End-to-End Speech Recognition Toolkit } ,
author = { Yao, Zhuoyuan and Wu, Di and Wang, Xiong and Zhang, Binbin and Yu, Fan and Yang, Chao and Peng, Zhendong and Chen, Xiaoyu and Xie, Lei and Lei, Xin } ,
booktitle = { Proc. Interspeech } ,
year = { 2021 } ,
address = { Brno, Czech Republic } ,
organization = { IEEE }
}
@article { zhang2022wenet ,
title = { WeNet 2.0: More Productive End-to-End Speech Recognition Toolkit } ,
author = { Zhang, Binbin and Wu, Di and Peng, Zhendong and Song, Xingchen and Yao, Zhuoyuan and Lv, Hang and Xie, Lei and Yang, Chao and Pan, Fuping and Niu, Jianwei } ,
journal = { arXiv preprint arXiv:2203.15455 } ,
year = { 2022 }
}