Views
No views yet
| Model | #Params | aishell1 | aishell2 | ws_net | ws_meeting | Average-4 |
|---|---|---|---|---|---|---|
| FireRedASR-LLM | 8.3B | 0.76 | 2.15 | 4.60 | 4.67 | 3.05 |
| FireRedASR-AED | 1.1B | 0.55 | 2.52 | 4.88 | 4.76 | 3.18 |
| Seed-ASR | 12B+ | 0.68 | 2.27 | 4.66 | 5.69 | 3.33 |
| Qwen-Audio | 8.4B | 1.30 | 3.10 | 9.50 | 10.87 | 6.19 |
| SenseVoice-L | 1.6B | 2.09 | 3.04 | 6.01 | 6.73 | 4.47 |
| Whisper-Large-v3 | 1.6B | 5.14 | 4.96 | 10.48 | 18.87 | 9.86 |
| Paraformer-Large | 0.2B | 1.68 | 2.85 | 6.74 | 6.97 | 4.56 |
ws means WenetSpeech.| Test Set | KeSpeech | LibriSpeech test-clean | LibriSpeech test-other |
|---|---|---|---|
| FireRedASR-LLM | 3.56 | 1.73 | 3.67 |
| FireRedASR-AED | 4.48 | 1.93 | 4.44 |
| Previous SOTA Results | 6.70 | 1.82 | 3.50 |
pretrained_models.FireRedASR-LLM-L, you also need to download Qwen2-7B-Instruct and place it in the folder pretrained_models. Then, go to folder FireRedASR-LLM-L and run $ ln -s ../Qwen2-7B-Instruct1$ git clone https://github.com/FireRedTeam/FireRedASR.git
2$ conda create --name fireredasr python=3.10
3$ pip install -r requirements.txt$ export PATH=$PWD/fireredasr/:$PWD/fireredasr/utils/:$PATH
$ export PYTHONPATH=$PWD/:$PYTHONPATHffmpeg -i input_audio -ar 16000 -ac 1 -acodec pcm_s16le -f wav output.wav1$ cd examples
2$ bash inference_fireredasr_aed.sh
3$ bash inference_fireredasr_llm.sh1$ speech2text.py --help
2$ speech2text.py --wav_path examples/wav/BAC009S0764W0121.wav --asr_type "aed" --model_dir pretrained_models/FireRedASR-AED-L
3$ speech2text.py --wav_path examples/wav/BAC009S0764W0121.wav --asr_type "llm" --model_dir pretrained_models/FireRedASR-LLM-L1from fireredasr.models.fireredasr import FireRedAsr
2
3batch_uttid = ["BAC009S0764W0121"]
4batch_wav_path = ["examples/wav/BAC009S0764W0121.wav"]
5
6# FireRedASR-AED
7model = FireRedAsr.from_pretrained("aed", "pretrained_models/FireRedASR-AED-L")
8results = model.transcribe(
9 batch_uttid,
10 batch_wav_path,
11 {
12 "use_gpu": 1,
13 "beam_size": 3,
14 "nbest": 1,
15 "decode_max_len": 0,
16 "softmax_smoothing": 1.25,
17 "aed_length_penalty": 0.6,
18 "eos_penalty": 1.0
19 }
20)
21print(results)
22
23
24# FireRedASR-LLM
25model = FireRedAsr.from_pretrained("llm", "pretrained_models/FireRedASR-LLM-L")
26results = model.transcribe(
27 batch_uttid,
28 batch_wav_path,
29 {
30 "use_gpu": 1,
31 "beam_size": 3,
32 "decode_max_len": 0,
33 "decode_min_len": 0,
34 "repetition_penalty": 3.0,
35 "llm_length_penalty": 1.0,
36 "temperature": 1.0
37 }
38)
39print(results)batch_size to 1 to avoid the repetition issue.1@article{xu2025fireredasr,
2 title={FireRedASR: Open-Source Industrial-Grade Mandarin Speech Recognition Models from Encoder-Decoder to LLM Integration},
3 author={Xu, Kai-Tuo and Xie, Feng-Long and Tang, Xu and Hu, Yao},
4 journal={arXiv preprint arXiv:2501.14350},
5 year={2025}
6}