/ Модель

Характеристики

Лицензия
CC BY-NC 4.0
Библиотека
nemo
Опубликована
2 ноя 2026

speakwrite-azerbaijani

Распознавание речиАудио → текст9 профессий

Модель LocalDoc распознаёт азербайджанскую речь из аудио и поддерживает офлайн- и потоковую транскрибацию.

855скачиваний за 30 дней11лайковвеса обновлены20 ноя 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

speakwrite-azerbaijani — модель распознавания азербайджанской речи, разработанная LocalDoc. Она преобразует аудио в текст и подходит для офлайн-транскрибации записей, потокового распознавания речи и получения временных меток и оценок уверенности для отдельных слов. Модель принимает монофонический звук с частотой 16 кГц; для длинных записей использует разбиение на окна. Вывод включает регистр и знаки препинания, а числа записываются словами.

Акустическая часть построена на FastConformer-CTC с 18 слоями и размерностью 512; при обучении энкодер был инициализирован из nvidia/stt_en_fastconformer_ctc_large. Декодирование использует 6-граммную языковую модель KenLM и рефайнер. Доступен ONNX-вариант для CPU. В тесте FLEURS на азербайджанской речи ONNX с KenLM показал WER 11,03 и CER 3,61; измеренная скорость на i7-12700K составила примерно 84–87 раз быстрее реального времени при восьми потоках.

Модель обучена примерно на 2800 часах азербайджанской речи. Для работы описаны библиотека balbal и Linux; первый запуск загружает около 1,3 ГБ данных модели и KenLM. Длинные фрагменты и потоковый режим имеют особенности задержки и сегментации, а числа следует оставлять без встроенной турецкой нормализации. Лицензия CC BY-NC 4.0 разрешает использование с указанием авторства, но ограничивает коммерческое применение.

Сценарии применения

  • транскрибация азербайджанских аудиозаписей
  • распознавание речи в живом потоке
  • получение временных меток слов в транскрипте
  • субтитры и текстовая расшифровка азербайджанской речи

Ограничения

Модель рассчитана на монофоническое аудио 16 кГц; длинные записи разбиваются на фрагменты, а потоковый режим может добавлять задержку при финализации сегментов. Лицензия CC BY-NC 4.0 не допускает коммерческого использования.

Для каких профессий подходит9

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Также подходит для

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

speakwrite-azerbaijani

Azerbaijani speech recognition for CPU: FastConformer-CTC (18 layers, d512) with a 3-pass loop refiner, product-key acoustic memory (700 x 700 sub-keys) and a 6-gram token KenLM. Input is 16 kHz mono; output has case and . , ? !, with numbers written as words.

Results

LocalDoc/fleurs-azerbaijani-asr, not used for training. Reference: text_norm (numbers as words). WER and CER ignore case and punctuation. Clips with norm_status = failed are excluded (11 of 3977).

WER / CER:

splitclipshoursPyTorch, no LMPyTorch + KenLMONNX fast + KenLM
test9143.2016.34 / 4.7510.98 / 3.5711.03 / 3.61
dev3971.3416.52 / 4.7511.05 / 3.5011.25 / 3.59
train26559.2715.82 / 4.8011.30 / 3.7811.36 / 3.83
all396613.8116.01 / 4.7911.20 / 3.7011.27 / 3.75
  • Decoder weights (alpha 1.0, beta 2.0) were chosen on the FLEURS dev split from 8 pairs, so the test row is the one to quote.
  • The ONNX plain graph also gives 11.03 / 3.61 on FLEURS test; it was not run on the other splits.
  • Sentences of the FLEURS test split were excluded from the KenLM text; dev and train sentences were not.
  • Internal validation, no LM, on our own data mix: WER 13.48 / CER 6.01.

Speed on one i7-12700K, in Docker, times faster than real time, for the acoustic model plus KenLM:

runtimethreadsspeedweightsmeasured on
ONNX fast884-87x268 MBthis checkpoint, FLEURS test, dev and train
ONNX plain8~68x548 MBthis checkpoint, FLEURS test
PyTorch float328~45x865 MBthis checkpoint, all FLEURS
PyTorch float32112.7x865 MBan earlier checkpoint of this model, 100 clips

The machine had other load during the runs, so these are rough. KenLM takes about 1.5% of the time in the PyTorch runs and adds 1 GB to the download for every runtime. ONNX was not measured on 1 thread.

Use

pip install balbal
import balbal

model = balbal.Model("LocalDoc/speakwrite-azerbaijani", threads=8)
print(model.transcribe("speech.wav")["text"])

Tested with balbal 0.3.0 on Python 3.12 and Linux. The first run downloads about 1.3 GB: the fast graph and the KenLM. Pass runtime="onnx" for the plain graph, which uses standard ONNX operators only.

transcribe takes a file path or a waveform array with its sample rate: model.transcribe(wave, 16000). WAV, FLAC and OGG are read directly; other formats need FFmpeg. The result also has words, with word, start, end and confidence for each word.

Audio longer than 30 s is cut into 30 s windows with 10 s overlap. overlap_seconds=0 cuts fixed 30 s chunks instead, which is faster but gave a higher WER on our long recordings.

Streaming

The same model transcribes live audio: model.stream() gives partial text while the speaker talks and final text for each finished segment.

import balbal
from balbal.audio import read_audio

model = balbal.Model("LocalDoc/speakwrite-azerbaijani", threads=4)
stream = model.stream()                    # mode="segment"; mode="window" for the offline WER, later finals

audio = read_audio("speech.wav")           # float32, mono, 16 kHz; live input works the same way
for i in range(0, len(audio), 640):        # 40 ms pieces
    for event in stream.accept(audio[i:i + 640]):
        if event["type"] == "partial":
            print("...", event["text"])    # event["stable"] is the part that will not change
        else:
            print(event["text"])           # a finished segment
for event in stream.finish():
    print(event["text"])

print(stream.transcript())

accept takes pieces of any length: float32 or int16 arrays, or raw 16-bit little-endian PCM bytes, mono 16 kHz. Partial events have text, stable and start; final events have text, start and end (seconds).

  • segment (default): every 0.32 s the model reruns on the open segment plus 2 s of left context, with 0.64 s of lookahead. A segment ends after 0.5 s of silence or at 5 s.
  • window: 8 s of left context, and each final is decoded again with full context, which gives the offline WER. Segments run up to 20 s, so finals come later.

Only the default settings of balbal 0.3.0 were measured; they were not tuned for this model.

WER / CER on FLEURS test (914 clips), the same clips through transcribe and through 40 ms pieces:

WERCER
offline transcribe11.043.61
stream, segment11.363.68
stream, window11.033.59

Latency, in seconds after a word ends, median / 90th percentile, 50 FLEURS test clips on an idle i7-12700K in Docker. Compute is processing time divided by audio duration for one stream.

modethreadsword shownword stablesegment finalcompute
segment10.32 / 0.720.86 / 2.133.7 / 6.30.72
segment40.17 / 0.530.70 / 1.853.5 / 6.00.24
window10.38 / 0.801.02 / 2.126.4 / 12.50.95
window40.18 / 0.560.81 / 1.685.7 / 11.70.31
  • word shown: the word appears in the partial text and stays there; word stable: it enters stable; segment final: its segment is finalized.
  • FLEURS is read speech with few pauses, so most segment finals come from the 5 s limit. A final arrives 1.0 s after the last word of its segment (median, 4 threads, segment).
  • One segment stream on 1 thread uses about 72% of a core. window on 1 thread uses 95% and is too close to real time to be safe. Several streams running in parallel were not measured.

PyTorch

model.pt is the original checkpoint, for further training and experiments.

Needs balbal at commit 1be9f88b77c63fbafa7713c6e46e79847f6c390e (Python 3.11-3.12, Linux; install requirements/full.txt, then run inference/build_native.py). Copy this repository's refiner.json over balbal's configs/balbal-v2-manas/refiner.json: this model's memory size differs from balbal's default, and the weights will not load otherwise.

import json, sys
sys.path[:0] = ["balbal/inference", "balbal"]
from balbal.audio import read_audio
from runtime import Engine

engine = Engine("speakwrite-azerbaijani", runtime="torch", settings=json.load(open("speakwrite-azerbaijani/decoder.json")))
print(engine.transcribe(read_audio("speech.mp3"), itn=False)["text"])

Keep itn=False: balbal's number conversion is Turkish. Long audio is cut into fixed 30 s chunks.

To use the PyTorch model without the KenLM, take the argmax of the CTC output instead of Engine: without an LM, WER on FLEURS test is 16.34. The lm/ folder is then not needed.

Training

About 2800 hours of Azerbaijani speech. Encoder initialized from nvidia/stt_en_fastconformer_ctc_large, then modified and trained for 4.5 epochs (127552 updates) with the balbal-v2-manas recipe. balbal's own weights were not used.

Acknowledgements

The ONNX graphs and the pip install balbal setup were contributed by erayyapagci, the author of balbal.

License

CC BY-NC 4.0. Non-commercial use only; credit is required in any project using this model: "speakwrite-azerbaijani by LocalDoc" with a link to this page. For commercial use, contact LocalDoc.

Based on nvidia/stt_en_fastconformer_ctc_large (CC BY 4.0, NVIDIA) and on code from balbal (Apache 2.0).

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · nemo

Нельзя запустить

Модели NVIDIA NeMo требуют отдельного рантайма.

Ревизия весов
c46e9c0

0 моделей