Views
No views yet
1
2from transformers import pipeline
3
4transcriber = pipeline(
5 "automatic-speech-recognition",
6 model="BELLE-2/Belle-whisper-large-v2-zh"
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-v2-zh | 16KHz | AISHELL-1 AISHELL-2 WenetSpeech HKUST | full fine-tuning |
| Model | Language Tag | aishell_1_test(↓) | aishell_2_test(↓) | wenetspeech_net(↓) | wenetspeech_meeting(↓) | HKUST_dev(↓) |
|---|---|---|---|---|---|---|
| whisper-large-v2 | Chinese | 8.818 | 6.183 | 12.343 | 26.413 | 31.917 |
| Belle-whisper-large-v2-zh | Chinese | 2.549 | 3.746 | 8.503 | 14.598 | 16.289 |
@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}},
}