Views
No views yet
1
2from transformers import pipeline
3
4transcriber = pipeline(
5 "automatic-speech-recognition",
6 model="BELLE-2/Belle-whisper-large-v3-zh-punct"
7)
8
9transcriber.model.config.forced_decoder_ids = (
10 transcriber.tokenizer.get_decoder_prompt_ids(
11 language="zh",
12 task="transcribe"
13 )
14)
15
16transcription = transcriber("my_audio.wav")
17| Model | (Re)Sample Rate | Train Datasets | Fine-tuning (full or peft) |
|---|---|---|---|
| Belle-whisper-large-v3-zh-punct | 16KHz | AISHELL-1 AISHELL-2 WenetSpeech HKUST | lora fine-tuning |
| Model | Language Tag | aishell_1_test(↓) | aishell_2_test(↓) | wenetspeech_net(↓) | wenetspeech_meeting(↓) | HKUST_dev(↓) |
|---|---|---|---|---|---|---|
| whisper-large-v3 | Chinese | 8.085 | 5.475 | 11.72 | 20.15 | 28.597 |
| Belle-whisper-large-v3-zh | Chinese | 2.781 | 3.786 | 8.865 | 11.246 | 16.440 |
| Belle-whisper-large-v3-zh-punct | Chinese | 2.945 | 3.808 | 8.998 | 10.973 | 17.196 |
@misc{BELLE,
author = {BELLEGroup},
title = {BELLE: Be Everyone's Large Language model Engine},
year = {2023},
publisher = {GitHub},
journal = {GitHub repository},
howpublished = {\url{https://github.com/LianjiaTech/BELLE}},
}