Automatic Speech Recognition
Transformers
Safetensors
Turkish
whisper
turkish
ctranslate2
faster-whisper
Eval Results (legacy)
Run this model with HF Jobs
Run BatuhanECB/ukus on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/BatuhanECB/ukus. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/BatuhanECB/ukus on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use BatuhanECB/ukus with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use BatuhanECB/ukus with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="BatuhanECB/ukus")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq processor = AutoProcessor.from_pretrained("BatuhanECB/ukus") model = AutoModelForSpeechSeq2Seq.from_pretrained("BatuhanECB/ukus", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 6,230 Bytes
439d5d0 b411150 439d5d0 b411150 439d5d0 b411150 439d5d0 b411150 439d5d0 b411150 439d5d0 b411150 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 | ---
language:
- tr
license: mit
base_model: openai/whisper-large-v3-turbo
pipeline_tag: automatic-speech-recognition
library_name: transformers
tags:
- whisper
- turkish
- ctranslate2
- faster-whisper
model-index:
- name: ukus
results:
- task: {type: automatic-speech-recognition}
dataset: {name: turkishvoicedataset, type: erenfazlioglu/turkishvoicedataset}
metrics:
- {type: wer, value: 8.45}
- {type: cer, value: 2.34}
- task: {type: automatic-speech-recognition}
dataset: {name: MediaSpeech TR, type: ymoslem/MediaSpeech}
metrics:
- {type: wer, value: 14.66}
- {type: cer, value: 4.47}
- task: {type: automatic-speech-recognition}
dataset: {name: Common Voice 17 TR (fixed), type: ysdede/commonvoice_17_tr_fixed}
metrics:
- {type: wer, value: 12.18}
- {type: cer, value: 3.76}
- task: {type: automatic-speech-recognition}
dataset: {name: FLEURS TR, type: google/fleurs, config: tr_tr, split: test}
metrics:
- {type: wer, value: 8.30}
- {type: cer, value: 4.04}
---
# Ukuş
Türkçe konuşma tanıma (ASR) modeli. `openai/whisper-large-v3-turbo` tabanlı, 809M parametre. Hem 🤗 Transformers hem faster-whisper (CTranslate2) biçiminde gelir.
| | |
|---|---|
| Taban model | openai/whisper-large-v3-turbo |
| Parametre | 809M (32 katman encoder, 4 katman decoder) |
| Dil | Türkçe |
| Girdi | 16 kHz mono ses (daha düşük örnekleme hızları otomatik yükseltilir) |
| Dosyalar | `model.safetensors` (FP32, 3,1 GB) · `ct2/` (CTranslate2 FP16, 1,6 GB) |
| Lisans | MIT |
## Öne çıkanlar
- **turkishvoice:** 1. sıra, 17 model arasında (WER 8,45).
- **turkmedstt CV + ISSAI + MediaSpeech:** 1. sıra, 21 model arasında (WER 9,55).
- **Telefon kanalı (8 kHz):** dayanıklı. FLEURS'te temiz ses ile 8 kHz μ-law arasındaki fark yalnız +0,35 WER.
- **Boyut:** turbo boyutunda. Tüketici GPU'larında, örneğin 8 GB VRAM'de FP16 ile çalışır.
## Kullanım
### faster-whisper (önerilen)
```python
from huggingface_hub import snapshot_download
from faster_whisper import WhisperModel
yol = snapshot_download("BatuhanECB/ukus", allow_patterns=["ct2/*"])
model = WhisperModel(f"{yol}/ct2", device="cuda", compute_type="float16") # CPU: device="cpu", compute_type="int8"
segmentler, _ = model.transcribe("ses.wav", language="tr", beam_size=5, condition_on_previous_text=False)
print(" ".join(s.text.strip() for s in segmentler))
```
### 🤗 Transformers
```python
import torch
from transformers import pipeline
asr = pipeline("automatic-speech-recognition", model="BatuhanECB/ukus",
torch_dtype=torch.float16, device="cuda:0")
print(asr("ses.wav", generate_kwargs={"language": "turkish", "task": "transcribe"},
chunk_length_s=30, batch_size=8)["text"])
```
### Önerilen ayarlar
- Dili sabitleyin: `language="tr"`. Otomatik dil algılamayı kapatmak kısa kliplerde hatayı azaltır.
- Uzun kayıtlarda `condition_on_previous_text=False` tekrar döngüsü riskini azaltır.
- 30 saniyeden uzun, sessizlik içeren kayıtlarda `vad_filter=True` (faster-whisper) faydalıdır. Kısa kliplerde kapalı bırakın.
## Benchmark sonuçları
WER / CER (%), düşük daha iyi. Sıra, herkese açık Türkçe ASR panolarındaki modellerle aynı ölçüm reçetesiyle yaptığımız kendi ölçümümüzdür; resmi pano kaydı değildir.
| pano | test | örnek | WER / CER | sıra |
|---|---|---|---|---|
| ysdede | turkishvoice | 9.999 | 8,45 / 2,34 | 1/17 |
| ysdede | MediaSpeech | 2.513 | 14,66 / 4,47 | 6/17 |
| ysdede | Common Voice 17 (fixed) | 9.650 | 12,18 / 3,76 | 6/12 |
| RsGoksel | MediaSpeech-TR | 2.513 | 14,88 / 4,58 | 5/19 |
| RsGoksel | Common Voice 17 TR (2000) | 2.000 | 11,41 / 3,44 | 4/19 |
| RsGoksel | FLEURS temiz | 743 | 8,30 / 4,04 | 7/19 |
| RsGoksel | FLEURS + codec (Opus 8/12/16/32 ort.) | 743 × 4 | 9,16 / 4,33 | 7/19 |
| RsGoksel | FLEURS + gürültü (20/10/0 dB ort.) | 743 × 3 | 14,52 / 7,95 | 8/19 |
| RsGoksel | FLEURS + gürültü + codec (12 koşul ort.) | 743 × 12 | 19,35 / 10,74 | 8/19 |
| turkmedstt | CV + ISSAI + MediaSpeech | 1.016 | 9,55 / 2,59 | 1/21 |
| Emre-Akgul | FLEURS test (NeMo TN) | 743 | 8,02 / 3,93 | 16/28 |
| YTU COSMOS | gerçek telefon | 20 | 23,20 / 7,36 | 8/17 |
| YTU COSMOS | sentetik | 20 | 6,93 / 0,77 | 16/17 |
Ölçüm reçeteleri her panonun kendi yöntemini izler:
- **ysdede:** WhisperX + trnorm, klip ortalaması.
- **RsGoksel:** faster-whisper, beam 5, trnorm, korpus düzeyi.
- **turkmedstt:** HF greedy, 30 sn pencere.
- **Emre-Akgul:** faster-whisper varsayılan, NeMo metin normalizasyonu.
- **YTU COSMOS:** resmi değerlendirme kiti, herkese açık 20 örnek.
Panolardaki gizli setlerde sonuç farklı olabilir.
### Telefon kanalı (8 kHz μ-law)
Test sesleri 8 kHz μ-law'a indirilip yeniden 16 kHz'e çıkarıldı. Bu, telefon hattı benzetimidir.
| test | temiz WER / CER | telefon WER / CER |
|---|---|---|
| FLEURS | 8,30 / 4,04 | 8,65 / 3,57 |
| Common Voice 17 (2000) | 11,41 / 3,44 | 12,75 / 4,49 |
| MediaSpeech | 14,88 / 4,58 | 14,79 / 4,56 |
### FLEURS bozulma testleri
Gürültü kaynağı MUSAN, codec Opus.
| koşul | WER / CER |
|---|---|
| temiz | 8,30 / 4,04 |
| Opus 8 / 12 / 16 / 32 kbps | 11,72 / 5,69 · 9,17 / 4,55 · 8,42 / 3,77 · 7,32 / 3,31 |
| gürültü 20 / 10 / 0 dB | 9,28 / 4,58 · 11,64 / 6,15 · 22,65 / 13,12 |
| gürültü 20 dB + Opus 8 / 12 / 16 / 32 | 13,67 / 6,46 · 11,45 / 6,12 · 10,89 / 5,62 · 9,04 / 4,45 |
| gürültü 10 dB + Opus 8 / 12 / 16 / 32 | 20,45 / 10,61 · 14,89 / 7,88 · 13,40 / 7,38 · 12,03 / 6,41 |
| gürültü 0 dB + Opus 8 / 12 / 16 / 32 | 45,08 / 27,61 · 29,42 / 17,01 · 27,08 / 15,24 · 24,78 / 14,10 |
Ham sonuçlar: `benchmark/`
## Sınırlamalar
- Whisper ailesinin bilinen sorunları burada da geçerlidir: sessiz ya da çok kısa kliplerde uydurma metin, uzun kayıtlarda tekrar döngüsü.
- Yabancı özel adlar ve nadir terimler hatalı yazılabilir.
- Çok gürültülü ortamlarda (0 dB ve altı) hata belirgin biçimde artar.
- Çıktı noktalama ve büyük harf içerir. Değerlendirmeler normalize edilmiş metin üzerinden yapılmıştır.
## Lisans
MIT. Taban modelin (`openai/whisper-large-v3-turbo`) lisansıyla uyumludur.
|