Views
No views yet
1
2from transformers import pipeline
3
4transcriber = pipeline(
5 "automatic-speech-recognition",
6 model="jonatasgrosman/whisper-large-pt-cv11"
7)
8
9transcriber.model.config.forced_decoder_ids = (
10 transcriber.tokenizer.get_decoder_prompt_ids(
11 language="pt",
12 task="transcribe"
13 )
14)
15
16transcription = transcriber("path/to/my_audio.wav")
17| CER | WER | |
|---|---|---|
| jonatasgrosman/whisper-large-pt-cv11 | 2.52 | 9.56 |
| jonatasgrosman/whisper-large-pt-cv11 + text normalization | 1.60 | 4.82 |
| openai/whisper-large-v2 | 4.32 | 13.92 |
| openai/whisper-large-v2 + text normalization | 2.84 | 7.02 |
| CER | WER | |
|---|---|---|
| jonatasgrosman/whisper-large-pt-cv11 | 4.88 | 12.08 |
| jonatasgrosman/whisper-large-pt-cv11 + text normalization | 5.46 | 8.57 |
| jonatasgrosman/whisper-large-pt-cv11 + keep only non-numeric samples | 2.35 | 9.00 |
| jonatasgrosman/whisper-large-pt-cv11 + text normalization + keep only non-numeric samples | 3.36 | 6.05 |
| openai/whisper-large-v2 | 3.52 | 10.55 |
| openai/whisper-large-v2 + text normalization | 4.19 | 7.04 |
| openai/whisper-large-v2 + keep only non-numeric samples | 2.61 | 9.29 |
| openai/whisper-large-v2 + text normalization + keep only non-numeric samples | 3.56 | 6.15 |