Views
No views yet
id_id) and English (en_us). A unique feature of this model is the inclusion of the EdAcc dataset to improve performance on Indonesian-accented English.| Epoch | Validation Loss | WER (%) |
|---|---|---|
| 1 | 0.2717 | 7.42% |
| 2 | 0.2638 | 7.33% |
| Language | Dataset Source | WER (%) |
|---|---|---|
| English | Fleurs + Common Voice + EdAcc | 9.09% |
| Indonesian | Fleurs + Common Voice | 6.97% |
pipeline from the transformers library to easily transcribe audio.1from transformers import pipeline
2import torch
3
4# Replace with your model ID
5model_id = "Dafisns/whisper-turbo-multilingual-fleurs"
6
7# Initialize the pipeline
8pipe = pipeline(
9 "automatic-speech-recognition",
10 model=model_id,
11 device="cuda" if torch.cuda.is_available() else "cpu",
12 torch_dtype=torch.float16
13)
14
15# Transcribe an audio file
16# Ensure you specify the language code ('indonesian' or 'english') for better accuracy
17
18# Example for Indonesian audio:
19result = pipe("path_to_your_indonesian_audio.mp3", generate_kwargs={"language": "indonesian"})
20print(result["text"])
21
22# Example for English audio:
23result_en = pipe("path_to_your_english_audio.mp3", generate_kwargs={"language": "english"})
24print(result_en["text"])