speechbrain / asr-wav2vec2-ctc-aishell

huggingface.co
Total runs: 31
24-hour runs: -2
7-day runs: -7
30-day runs: -18
Model's Last Updated: February 19 2024

Introduction of asr-wav2vec2-ctc-aishell

Model Details of asr-wav2vec2-ctc-aishell



Wav2vec2-CTC for AISHELL (Mandarin Chinese)

This repository provides all the necessary tools to perform automatic speech recognition from an end-to-end system pretrained on AISHELL (Mandarin Chinese) within SpeechBrain. For a better experience, we encourage you to learn more about SpeechBrain .

The performance of the model is the following:

Release Dev CER Test CER GPUs Full Results
20-09-22 4.48 5.02 1xRTX8000 48GB Google Drive
Pipeline description

This ASR system is composed of 2 different but linked blocks:

  • Tokenizer (from huggingface) that transforms words into chars and trained with the training transcriptions of AISHELL-1.
  • Acoustic model made of a wav2vec2 encoder and fully-connected layers

To Train this system from scratch, see our SpeechBrain recipe .

The system is trained with recordings sampled at 16kHz (single channel).

Install SpeechBrain

First of all, please install SpeechBrain with the following command:

pip install speechbrain

Please notice that we encourage you to read our tutorials and learn more about SpeechBrain .

Transcribing your own audio files (in English)
from speechbrain.inference.interfaces import foreign_class
asr_model = foreign_class(source="speechbrain/asr-wav2vec2-ctc-aishell",  pymodule_file="custom_interface.py", classname="CustomEncoderDecoderASR")
asr_model.transcribe_file("speechbrain/asr-wav2vec2-ctc-aishell/example.wav")
Inference on GPU

To perform inference on the GPU, add run_opts={"device":"cuda"} when calling the from_hparams method.

Parallel Inference on a Batch

Please, see this Colab notebook to figure out how to transcribe in parallel a batch of input sentences using a pre-trained model.

Training

The model was trained with SpeechBrain (Commit hash: '480dde87'). To train it from scratch follow these steps:

  1. Clone SpeechBrain:
git clone https://github.com/speechbrain/speechbrain.git
  1. Install it:
cd speechbrain
pip install -r requirements.txt
pip install -e .
  1. Run Training:
cd recipes/AISHELL-1/ASR/CTC/
python train_with_wav2vec.py hparams/train_with_wav2vec.yaml --data_folder=your_data_folder

You can find our training results (models, logs, etc) here .

Limitations

The SpeechBrain team does not provide any warranty on the performance achieved by this model when used on other datasets.

About SpeechBrain

Citing SpeechBrain

Please, cite SpeechBrain if you use it for your research or business.

@misc{speechbrain,
  title={{SpeechBrain}: A General-Purpose Speech Toolkit},
  author={Mirco Ravanelli and Titouan Parcollet and Peter Plantinga and Aku Rouhe and Samuele Cornell and Loren Lugosch and Cem Subakan and Nauman Dawalatabad and Abdelwahab Heba and Jianyuan Zhong and Ju-Chieh Chou and Sung-Lin Yeh and Szu-Wei Fu and Chien-Feng Liao and Elena Rastorgueva and François Grondin and William Aris and Hwidong Na and Yan Gao and Renato De Mori and Yoshua Bengio},
  year={2021},
  eprint={2106.04624},
  archivePrefix={arXiv},
  primaryClass={eess.AS},
  note={arXiv:2106.04624}
}

Runs of speechbrain asr-wav2vec2-ctc-aishell on huggingface.co

31
Total runs
-2
24-hour runs
-3
3-day runs
-7
7-day runs
-18
30-day runs

More Information About asr-wav2vec2-ctc-aishell huggingface.co Model

More asr-wav2vec2-ctc-aishell license Visit here:

https://choosealicense.com/licenses/apache-2.0

asr-wav2vec2-ctc-aishell huggingface.co

asr-wav2vec2-ctc-aishell huggingface.co is an AI model on huggingface.co that provides asr-wav2vec2-ctc-aishell's model effect (), which can be used instantly with this speechbrain asr-wav2vec2-ctc-aishell model. huggingface.co supports a free trial of the asr-wav2vec2-ctc-aishell model, and also provides paid use of the asr-wav2vec2-ctc-aishell. Support call asr-wav2vec2-ctc-aishell model through api, including Node.js, Python, http.

asr-wav2vec2-ctc-aishell huggingface.co Url

https://huggingface.co/speechbrain/asr-wav2vec2-ctc-aishell

speechbrain asr-wav2vec2-ctc-aishell online free

asr-wav2vec2-ctc-aishell huggingface.co is an online trial and call api platform, which integrates asr-wav2vec2-ctc-aishell's modeling effects, including api services, and provides a free online trial of asr-wav2vec2-ctc-aishell, you can try asr-wav2vec2-ctc-aishell online for free by clicking the link below.

speechbrain asr-wav2vec2-ctc-aishell online free url in huggingface.co:

https://huggingface.co/speechbrain/asr-wav2vec2-ctc-aishell

asr-wav2vec2-ctc-aishell install

asr-wav2vec2-ctc-aishell is an open source model from GitHub that offers a free installation service, and any user can find asr-wav2vec2-ctc-aishell on GitHub to install. At the same time, huggingface.co provides the effect of asr-wav2vec2-ctc-aishell install, users can directly use asr-wav2vec2-ctc-aishell installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

asr-wav2vec2-ctc-aishell install url in huggingface.co:

https://huggingface.co/speechbrain/asr-wav2vec2-ctc-aishell

Url of asr-wav2vec2-ctc-aishell

asr-wav2vec2-ctc-aishell huggingface.co Url

Provider of asr-wav2vec2-ctc-aishell huggingface.co

speechbrain
ORGANIZATIONS

Other API from speechbrain

huggingface.co

Total runs: 3.0K
Run Growth: 2.1K
Growth Rate: 72.12%
Updated:February 26 2024