/ Модель

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

Контекст
512 токенов
Параметры
201 млн
Лицензия
CC BY 4.0
Архитектура
wav2vec2 · dense
Базовая модель
roest-v3-wav2vec2-315m
Библиотека
transformers
Опубликована
30 окт 2026

danish-char-aligner

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

Дообученная на датской речи модель Wav2Vec2, которая выравнивает заданную расшифровку по аудио и назначает временные интервалы символам и словам.

130скачиваний за 30 дней1лайквеса обновлены30 окт 2026

Бенчмарки

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

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Распознавание речи» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

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

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

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

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

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

syvai/danish-char-aligner — модель для принудительного выравнивания датской речи и заданной расшифровки. Она возвращает время начала и конца для каждого символа, интервалы слов и оценку выравнивания. Модель основана на Wav2Vec2: это 12-слойный ученический вариант Røst (CoRal-project/roest-v3-wav2vec2-315m), дообученный на датской речи с дистилляцией, CTC-обучением и обучением головы разметки кадров. В README указано 164 млн параметров, а в метаданных — 201,4 млн.

Модель предназначена для временной разметки транскриптов в радиозаписях, прочитанной речи и парламентских выступлениях, а также для оценки соответствия текста аудио. Символы размечаются с шагом 20 мс; знаки препинания пропускаются, а символы вне словаря не получают временных меток. Заявленная точность проверена на радио и прочитанной речи; работа с шумным и удалённым аудио не проверялась. Модель поддерживает только датский язык. Лицензия — CC BY 4.0.

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

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

Ограничения

Модель рассчитана только на датский язык; её проверяли на радио, парламентских выступлениях и прочитанной речи, но не на шумной или удалённой записи. Временное разрешение составляет 20 мс; пунктуация и символы вне словаря не размечаются.

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

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

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

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

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

Открыть на Hugging Face

danish-char-aligner

A Danish character-level forced aligner. Give it speech and the transcript; it returns a start and end time for every character, on a 20 ms grid, plus word spans and an alignment score.

For a radio clip that starts "Andet må løbe under fabrikken ...":

{"characters": [
  {"text": "A", "index": 0, "start": 0.04, "end": 0.08},
  {"text": "n", "index": 1, "start": 0.08, "end": 0.12},
  {"text": "d", "index": 2, "start": 0.12, "end": 0.16},
  {"text": "e", "index": 3, "start": 0.16, "end": 0.20},
  {"text": "t", "index": 4, "start": 0.20, "end": 0.24},
  ...],
 "words": [{"text": "Andet", "start": 0.04, "end": 0.24},
           {"text": "må", "start": 0.26, "end": 0.36}, ...],
 "score": -1.016}

Character spans are contiguous: each character runs until the next one starts, and the gap between two words is its own " " span. index points back into the transcript you passed in. Letters and digits are timed (a-z, æ, ø, å, é, ü, 0-9, case-insensitive); punctuation is skipped.

Install and use

pip install torch transformers safetensors numpy soundfile huggingface_hub
import sys
from huggingface_hub import snapshot_download

model_dir = snapshot_download("syvai/danish-char-aligner")
sys.path.insert(0, model_dir)
from aligner import Aligner

al = Aligner(model_dir)          # cuda if available, else cpu
out = al.align("clip.wav", "Andet må løbe under fabrikken")
for c in out["characters"]:
    print(c["text"], c["start"], c["end"])

For many clips, use align_batch. On a CUDA GPU it runs a batched fp16 path (fast_inference.py, needs Triton, which ships with PyTorch on Linux) at 2,670x realtime on an RTX 3090; elsewhere it falls back to align per clip. It takes (audio, text) pairs, where audio is a path or a 16 kHz float array, and returns results in input order:

results = al.align_batch([("a.wav", "første tekst"), ("b.wav", "anden tekst")])

Clips are grouped by length into batches of up to batch_seconds=600 seconds of audio; lower it if you run out of GPU memory.

or from the shell, inside the downloaded folder:

python aligner.py . clip.wav "Andet må løbe under fabrikken"

Audio of any sample rate is accepted (resampled to 16 kHz). Align utterances of up to ~30 s at a time; for long recordings, segment first.

score is the mean per-frame log-probability along the alignment path. It is a useful check that the transcript actually matches the audio: compare it against other transcripts for the same clip, not across clips.

How it was built

The model is a 12-layer student of Røst (CoRal-project/roest-v3-wav2vec2-315m, a Danish wav2vec2 CTC model). It keeps every second transformer layer of Røst (layers 1, 3, ..., 23) and Røst's convolutional front end, so it has the same 20 ms frame rate.

It was trained on Danish speech from syvai/danish-asr-unified with three losses:

  • KL divergence to Røst's frame posteriors (distillation),
  • CTC on the transcript,
  • per-frame cross-entropy for a frame-labelling head that predicts which character is being spoken in every 20 ms frame, trained on reference character-level alignments.

At inference the frame-labelling head is aligned to the transcript with a monotonic Viterbi pass ([silence] chars/spaces [silence]). That is what gives contiguous character spans, including the ends of words. A CTC model cannot do this on its own, because it marks each character with a 1-2 frame spike.

164M parameters, 1.9x fewer than Røst (315M).

Results

Agreement with held-out reference character alignments. Røst is aligned with CTC; its character ends are taken as the next character's start inside a word and as spike end + 20 ms at the end of a word.

DR P1 radio (out of domain, 7,889 clips, 675,753 characters):

start within 20 msstart within 40 msstart within 100 msend within 20 ms
Røst79.9%94.4%98.9%79.1% inside words, 60.9% word-final
this model87.1%94.7%97.9%85.2% (all characters)

Held-out read speech (CoRal read-aloud and Folketinget, 2,910 clips, 205,818 characters):

start within 20 msstart within 40 msend within 20 ms
Røst79.1%93.8%78.0% inside words, 56.3% word-final
this model86.1%93.5%84.6% (all characters)

Detecting a wrong transcript (1,035 P1 clips; AUC of the alignment score for the true transcript against a corrupted one, higher is better):

text from another clip30% of words replaced
Røst0.9910.940
this model0.9980.924

Speed

realtime factor
align_batch, RTX 3090, fp16, end to end2,670x
align, RTX 3090, bf16, forward pass, one clip at a time910-960x (Røst: 820-860x)
align, CPU 12 threads, fp32, forward pass23.8x (Røst: 15.2x)
align, CPU 1 thread, fp32, forward pass5.4x (Røst: 3.4x)

The align_batch figure covers the forward pass, the alignment and building the output, with audio already decoded in memory: 8,445 P1 clips (14.8 h of audio) in about 20 s, 2,620-2,680x across runs. Its timing accuracy matches align in fp32 (86.75% of character starts within 20 ms of the reference for both). CPU: AMD Ryzen 5 7600X.

The batched path gets its speed from length-bucketed fp16 batches, the convolutional front end rewritten as matrix multiplies with a fused LayerNorm+GELU kernel, the positional convolution run in chunks (cuDNN picks a ~20x slower algorithm for long sequences), and a Triton Viterbi kernel.

Limitations

  • Danish only. Tested on read speech, parliament and radio, not on noisy or far-field audio.
  • Timing resolution is 20 ms.
  • The word-final tail is slightly heavier than Røst's (97.9% vs 98.9% of starts within 100 ms).
  • Characters outside the vocabulary (punctuation, rare letters) are not timed.

License

CC BY 4.0. Built on Røst by the CoRal project (CoRal-project/roest-v3-wav2vec2-315m).

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

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

GPU в ailist

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

Можно запустить

Подбираем GPU…

Класс архитектуры
Wav2Vec2ForCTC
Ревизия весов
4cd2e44

0 моделей