Ak Kula kanatlarını açtığında…

balbal-v2-manas

The large balbal-v2 model: Turkish and English speech recognition that runs on a CPU. FastConformer-CTC with the balbal looped refiner and a product-key acoustic memory, decoded with a 6-gram token KenLM. Trained on about 7,000 hours of audio.

  • Accurate on Turkish phone calls: 8.20% WER / 14.89% sigWER on Mu-Bench Turkish (official harness, GPT-4.1 judge).
  • Read speech: 4.06% WER on FLEURS Turkish test.
  • English too: 8.67% average WER on the English Open ASR Leaderboard test sets.
  • CPU speed: 123× faster than real time on 8 threads.

Smaller and faster sibling: balbal-v2 (45M parameters, 236× real time).

Model page, browser demo and Android app: erayy.com/balbal · Türkçe

Code (Apache 2.0): https://github.com/erayyap/balbal

Model

Part Details
Acoustic model FastConformer-CTC, 18 layers, d_model 512, 80 mel, 4x subsampling (40 ms frames)
Looped refiner 2-layer Transformer refiner (width 256) on top of the encoder output, 3 passes (each pass takes the previous CTC distribution as input)
Acoustic memory Product-key memory: 1000×1000 subkeys, 8 heads, top-32, value dim 192, 3-frame context
Vocabulary SentencePiece 2,048 pieces + CTC blank
Language model 6-gram token KenLM over the SentencePiece pieces
Parameters 313.3M, of which 192.0M are the memory table (only a few of its rows are read per frame)

Output is cased, punctuated text with per-word timestamps. Numbers come out as digits through the inverse text normalization in the code (--no-itn keeps the spoken words). Audio longer than 30 s is cut into 30 s chunks.

Results

Turkish

FLEURS tr test (743 clips) and Mu-Bench tr-TR (846 phone-call clips); balbal models with KenLM decoding, the other open models with their default inference. FLEURS is scored with balbal-normalizer (balbal/normalizer in the code repository); Mu-Bench with its official harness and GPT-4.1 judge. sigWER is the share of utterances with at least one meaning-changing error. CPU speed: seconds of audio per second of processing, same 100 clips, batch 1, 8 threads of an AMD Ryzen AI Max+ 395.

Model Parameters Mu-Bench WER Mu-Bench sigWER FLEURS WER / CER CPU speed
balbal-v2-manas 313M 8.20 14.89 4.06 / 1.21 123×
balbal-v2 45M 9.46 18.44 5.22 / 1.52 236×
Mihu AI STT-v2 66M 10.91 21.16 5.26 / 1.62 16×
balbal-v1 45M 11.93 25.18 6.54 / 1.85 96×
Qwen3-ASR 1.7B 1.7B 14.76 30.61 6.52 / 1.71 0.8×
Duyu-small 49M 15.70 35.22 6.62 / 1.88 30×
Whisper large-v3 1.55B 16.67 28.37 3.71 / 1.08 0.9×
UfakZeka Kulak 32M 17.87 38.18 6.72 / 1.98 152×
Seda v0.2 66M 17.92 34.52 6.20 / 1.96 19×
omniASR LLM 7B 7B 21.10 44.68 5.31 / 1.50 <1×
Whisper large-v3-turbo 809M 24.65 47.04 4.07 / 1.18 1.6×
omniASR CTC 7B 7B 27.66 49.88 7.71 / 1.91 2.4×

English

The 8 English Open ASR Leaderboard test sets (168 hours), scored with the leaderboard's English normalizer, KenLM decoding. WER %.

Model LibriSpeech clean LibriSpeech other AMI Earnings-22 VoxPopuli GigaSpeech SPGISpeech TED-LIUM Average
balbal-v2-manas 2.97 6.45 13.31 15.61 7.82 12.30 5.73 5.20 8.67
balbal-v2 10.32 19.35 31.52 30.86 18.18 23.43 16.17 14.96 20.60

Files

model.json                       {"model": "balbal-v2-manas"}
model.pt                         PyTorch weights (1.2 GB)
tokenizer/                       SentencePiece model, vocab
lm/model.binary                  6-gram token KenLM, no KIRAAT text (692 MB)
lm/tokenizer.model               same SentencePiece model
onnx/model.onnx (+ .data)        fast CPU graph: balbal custom operators, int8 matrix weights (353 MB)
onnx/model-plain.onnx (+ .data)  same model, standard onnxruntime operators only (898 MB)

This folder is the MODEL_DIR the code expects. Both ONNX graphs match PyTorch within 0.11 WER points on our Turkish dev set.

The KenLM in lm/ is built without KIRAAT text. Removing it does not cost accuracy; on our Turkish dev set (721 clips), WER / CER %:

KenLM balbal-v2-manas balbal-v2
with KIRAAT text 7.16 / 2.79 8.85 / 3.38
without KIRAAT text (released) 7.13 / 2.79 8.74 / 3.33

Usage

Linux x86-64, Python 3.11 or 3.12:

pip install balbal
balbal run --model manas speech.wav          # downloads this model on the first run
balbal run --model manas --json speech.wav   # text + per-word timestamps
import balbal
model = balbal.load("balbal-v2-manas")
print(model.transcribe("speech.wav")["text"])

The balbal library ships the fast graph's custom operators and the native beam decoder prebuilt. From source (Linux x86-64, Python 3.12):

git clone https://github.com/erayyap/balbal && cd balbal
pip install -r requirements/cpu.txt
python inference/build_native.py           # KenLM beam decoder
inference/kernels/build.sh                 # custom operators of the fast graph
huggingface-cli download erayyapagci/balbal-v2-manas --local-dir balbal-v2-manas
python inference/transcribe.py --model-dir balbal-v2-manas speech.wav

--runtime onnx runs the plain graph (standard onnxruntime only), --runtime torch runs PyTorch, --hotwords "Eray,Hasan" biases the decoder toward given words. Streaming (WebSocket server, browser microphone demo) is in inference/streaming/. See the code repository for the Python API and training.

Memory-efficient variant (mem-efficient/)

This variant removes 75% of the product-key memory slots (the least-used ones first), so the memory table shrinks from 1,000,000 to 250,000 rows. Everything else is unchanged. It is meant to be used only with the KenLM decoder; if you decode greedily, use the full model.

Full Memory-efficient
Memory slots 1,000,000 250,000
Fast graph download 369 MB 217 MB
Standard-operator graph download 941 MB 354 MB
DEV (721 clips), KenLM WER / CER 7.17 / 2.83 7.30 / 2.91
DEV, greedy WER / CER 9.47 / 3.30 10.46 / 3.55
FLEURS tr test (743 clips), KenLM WER / CER 4.08 / 1.21 4.07 / 1.21
FLEURS tr test, greedy WER / CER 5.86 / 1.64 7.16 / 1.99
Fast runtime, peak RSS 1.28 GB 1.15 GB
Standard-operator runtime, peak RSS 2.26 GB 1.61 GB

With the fast graph it runs about 20% slower than the full model (the masked memory read scans more candidates); the standard-operator graph is about 4.5× slower than the full one, so prefer the fast graph.

The files are in mem-efficient/onnx/: model.onnx (fast graph, int8 memory rows) and model-plain.onnx (standard operators only, fp32 memory rows). The language model is the one in the repository's lm/ folder.

Loading

The balbal 0.1.1 package does not download this variant by itself. Download the folder, put the repository's lm/ folder next to its onnx/ folder, and pass the directory:

import balbal
m = balbal.load("balbal-v2-manas", runtime="onnx", model_dir="path/to/mem-efficient")
print(m.transcribe("audio.wav")["text"])

The fast graph uses one extra operator (PkmReadQ8M) that the operator library inside the package does not contain. mem-efficient/ops/ has a library that does, built for x86-64 v2, v3 and v4 (AVX-512), with its source. Point BALBAL_OPS_LIB at the one that matches your CPU, then load with runtime="fast":

export BALBAL_OPS_LIB=path/to/mem-efficient/ops/libbalbal_ops_mem25_v4.so

Limitations

  • Short clips: very short clips (a word or two) carry little context: errors are more frequent, and Turkish and English words can get mixed up.
  • Long recordings: offline transcription cuts long audio into 30-second chunks; there is no speaker diarization.

License

The weights, tokenizer and language model in this repository are released under the balbal Community License 1.1 (see LICENSE):

  • Free for research and any non-commercial use, including fine-tuning and sharing adapted versions.
  • Free for small businesses' commercial use: under US$1M revenue in the last 12 months, fewer than 25 people and under US$250k raised from outside investors. This includes running your own business (for example on your own customer calls) and building and selling speech products on balbal-v2-manas, such as a transcription app, a speech recognition API or a voice assistant, as long as the product shows "Powered by balbal" (linked to github.com/erayyap/balbal) on its website or app and in its API docs.
  • Larger companies: commercial use above these limits needs a separate license.

The code in github.com/erayyap/balbal is licensed separately under Apache 2.0.

The encoder was initialized from NVIDIA's stt_en_fastconformer_ctc_large (CC BY 4.0).

Acknowledgements

Citation

@misc{yapagci2026balbalv2,
  author       = {Eray Yapa{\u{g}}c{\i}},
  title        = {balbal-v2: Turkish Speech Recognition on a CPU},
  year         = {2026},
  month        = oct,
  howpublished = {\url{https://erayy.com/balbal}},
  note         = {Code: \url{https://github.com/erayyap/balbal}}
}

Türkçe özet

balbal-v2-manas, CPU'da çalışan büyük balbal-v2 modeli: Türkçe ve İngilizce konuşma tanıma. FastConformer-CTC, 3 geçişli döngülü düzeltici ve ürün-anahtar akustik bellek; 6-gram token KenLM ile çözülür. Yaklaşık 7.000 saat ses üzerinde eğitildi, 313M parametre.

Kurulum: pip install balbal, sonra balbal run --model manas ses.wav (model ilk çalıştırmada iner).

  • Mu-Bench Türkçe (resmi puanlama, GPT-4.1 hakem): %8,20 WER / %14,89 sigWER (balbal-v2 %9,46 / %18,44, balbal-v1 %11,93 / %25,18).
  • FLEURS Türkçe test: %4,06 WER (balbal-v2 %5,22, balbal-v1 %6,54).
  • İngilizce Open ASR test setleri (8 set): ortalama %8,67 WER.
  • 8 CPU thread'inde gerçek zamanın 123 katı hız.

lm/ içindeki KenLM, KIRAAT metni olmadan kuruldu; bu doğruluğa mal olmadı (DEV WER 7,16 → 7,13).

Çok kısa kliplerde (bir iki kelime) bağlam az: hatalar daha sık, Türkçe ve İngilizce kelimeler karışabiliyor.

Ağırlıklar balbal Community License 1.1 ile lisanslıdır (LICENSE): araştırma ve ticari olmayan her kullanım serbest; küçük işletmeler (son 12 ayda 1 milyon dolardan az gelir, 25 kişiden az çalışan, dış yatırımcıdan 250 bin dolardan az yatırım) modeli ticari olarak da ücretsiz kullanabilir. Buna kendi işlerinde kullanmak da, model üzerine konuşma tanıma, transkripsiyon ya da sesli asistan ürünü, API'si veya platformu kurup satmak da dahildir; bu ürünler sitelerinde ya da uygulamalarında ve API dokümanlarında görünür bir "Powered by balbal" ibaresi göstermelidir. Bu sınırların üzerindeki şirketlerin ticari kullanımı ayrı lisans gerektirir. Kod ayrı olarak Apache 2.0 lisanslıdır: github.com/erayyap/balbal.

Challenger: challenger-v2.5bm

Model DEV WER / CER FLEURS test WER / CER Mu-Bench official WER / sigWER CPU speed
challenger-v2.5bm 5.58 / 2.28 3.23 / 0.96 7.08 / 10.40 115×
balbal-v2-manas 7.02 / 2.77 4.06 / 1.21 8.20 / 14.89 123×
balbal-v2 8.62 / 3.32 5.22 / 1.53 9.46 / 18.44 236×

Imagine if we scaled.

Downloads last month
715
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for erayyapagci/balbal-v2-manas

Finetuned
(6)
this model
Finetunes
1 model

Spaces using erayyapagci/balbal-v2-manas 2

Collection including erayyapagci/balbal-v2-manas

Evaluation results