/ Модель

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

Контекст
131 072 токена
Лицензия
CC BY-NC-SA 4.0
Архитектура
asr_model · dense
Базовая модель
granite-speech-5.0-470m-turboctc-nc
Библиотека
transformers
Опубликована
30 апр 2026

tiny-audio

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

Компактная модель распознаёт английскую речь и создаёт расшифровки с пунктуацией, временными метками слов и метками говорящих.

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

Бенчмарки

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

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

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

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

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

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

Tiny Audio — компактная открытая модель распознавания речи от разработчиков проекта Tiny Audio. Она соединяет замороженный речевой энкодер Granite Speech 5.0 470M с декодером Qwen3-0.6B: обучены MLP-проектор и декодер, всего около 604 млн параметров. Модель принимает монофоническое аудио с частотой 16 кГц и формирует английскую расшифровку с пунктуацией, заглавными буквами и форматированием чисел.

Подходит для расшифровки встреч, звонков, лекций и других записей. Дополнительно доступны временные метки для каждого слова и диаризация с метками говорящих; эти возможности используют средства выравнивания и диаризации из Transformers. Длинные записи разбиваются на фрагменты до 28 секунд по паузам, поэтому контекст между фрагментами не сохраняется. Модель обучена на английской речи и рассчитана на адаптацию и повторное обучение; веса распространяются под лицензией CC-BY-NC-SA-4.0.

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

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

Ограничения

Модель обучена только на английской речи; качество может снижаться на шумном, низкокачественном, дальнем и перекрывающемся аудио, а также на редких именах и специальной терминологии. Длинные записи обрабатываются фрагментами до 28 секунд без переноса контекста между ними; диаризация поддерживает до восьми говорящих и требует Transformers из основной ветки для указанной версии.

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

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

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

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

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

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

Открыть на Hugging Face

Tiny Audio

A tiny, hackable, open-source speech LLM.

It transcribes English with punctuation, capitalization, word timestamps, and speaker labels. Built and trained with Tiny Audio.

Try the live demo · Train your own · Free 3.5-hour course

Model Description

Tiny Audio connects a frozen, pretrained speech encoder to a pretrained LLM with a small trainable projector:

Audio (16 kHz) → speech encoder (frozen) → MLP projector (trained) → LLM decoder → Text

The published model pairs the non-causal Granite Speech 5.0 470M encoder (kept frozen) with the Qwen3-0.6B decoder. The MLP projector maps encoder frames into the decoder's embedding space; it is the only part trained from scratch, and the whole decoder is fine-tuned alongside it: ~604M trained parameters (596M decoder, 8.4M projector). The encoder, projector, and decoder are each swappable from config in the training repo.

Intended Use

Tiny Audio is for transcribing English speech — meetings, calls, lectures, and other recorded audio — when you want the finished transcript itself: punctuation, capitalization, and formatted numbers included, plus word-level timestamps and speaker labels when you need them. It is also built to be read and retrained: the training code, data mix, and recipe are open, so you can adapt it to your own audio.

Out of scope: non-English transcription, and audio far from the training distribution — far-field, noisy, or heavily overlapping speech — where word error rate rises (see Benchmarks and Limitations).

Quick Start

pip install "transformers>=5.0" peft torch torchaudio librosa
from transformers import pipeline

pipe = pipeline(
    "automatic-speech-recognition", model="mazesmazes/tiny-audio", trust_remote_code=True
)
print(pipe("audio.wav")["text"])
# The quarterly revenue grew by 12% according to Dr. Smith.

The input can be a file path, a URL, or a 16 kHz float32 numpy array. No post-processing is needed: the model writes punctuation, capitalization, and numbers itself.

Benchmarks

Benchmark results for this release have not been published yet. To score it yourself with the Tiny Audio eval harness (ta eval):

git clone https://github.com/alexkroman/tiny-audio.git && cd tiny-audio && poetry install
poetry run ta eval -m mazesmazes/tiny-audio -d loquacious -n 100

More Than Plain Text

Batches and GPU

import torch

pipe = pipeline(
    "automatic-speech-recognition",
    model="mazesmazes/tiny-audio",
    trust_remote_code=True,
    device="cuda",
    torch_dtype=torch.bfloat16,
)
for r in pipe(["audio1.wav", "audio2.wav", "audio3.wav"], batch_size=4):
    print(r["text"])

Word-level timestamps

return_timestamps=True times every word with Qwen3-ForcedAligner-0.6B and returns them under a words key. Audio of any length works: the pipeline transcribes it in chunks of up to 28 s cut at pauses (the model trained on clips up to 30 s), aligns each chunk against its own transcript in batches, and places every word on the recording's timeline.

result = pipe("audio.wav", return_timestamps=True)
print(result["text"])
for word in result["words"]:
    print(word)
#   {'word': 'Hi,', 'start': 0.0, 'end': 0.24}

Speaker diarization

Pass return_speakers=True to label every word with who said it. It also turns on word timestamps. It works on recordings of any length, keeps speaker labels consistent across hour-long meetings, and handles up to 8 speakers. Each speaker is transcribed separately on audio where everyone else is silenced, so overlapping speech is only partly handled.

Diarization needs transformers installed from main until the next release:

pip install git+https://github.com/huggingface/transformers
result = pipe("meeting.wav", return_speakers=True)

print(result["text"])

# Speaker turns (may overlap)
for seg in result["speaker_segments"]:
    print(f"{seg['start']:6.2f}-{seg['end']:6.2f}  {seg['speaker']}")
#   0.00-  2.90  SPEAKER_0
#   3.36-  6.47  SPEAKER_1

# Words with timestamps and speakers
for w in result["words"]:
    print(f"{w['start']:6.2f}-{w['end']:6.2f}  {w['speaker']}  {w['word']}")
#   0.00-  0.19  SPEAKER_0  Hi,
#   0.22-  0.69  SPEAKER_0  Daniel.

Speakers are numbered by when they first speak. The number of speakers is detected automatically. If you know it, pass num_speakers (exact) or max_speakers (an upper bound); voices beyond the cap are not transcribed:

result = pipe("call.wav", return_speakers=True, num_speakers=2)

If alignment or diarization fails (for example, on a transformers release without diarization support), the transcript is still returned and the error is reported under result["timestamp_error"] or result["diarization_error"].

Train Your Own

Everything that produced this model is open: the code, the data mix, and the recipe. Swap the encoder, the LLM, or the projector from config and train on your own data. The recipe is the repo's default config:

git clone https://github.com/alexkroman/tiny-audio.git && cd tiny-audio && poetry install
poetry run python scripts/train.py

The free course walks through how the pieces fit, training a model, evaluating it, and publishing it with a demo like this one.

Serving and Streaming

For more than one-off calls, the training repo ships a batched HTTP server (ta serve) with an async jobs API for long recordings, and the model class exposes token-by-token streaming output via ASRModel.generate_streaming. See the repo README for setup and the request format.

Model Specifications

SpecificationValue
InputAudio (16kHz mono)
OutputPunctuated, capitalized text with formatted numbers
Max Audio LengthAny length; audio over 28 s is transcribed in chunks cut at pauses
VocabularyQwen3 tokenizer
LanguagesEnglish only
GenerationGreedy decoding (num_beams=1, do_sample=False), max 256 new tokens
Optional outputWord-level timestamps; speaker-labelled words and speaker segments
Weights~2.1 GB in bf16 (encoder + projector + decoder)

Training Details

DataLibriHeavy (medium), People's Speech (clean), Common Voice 17, GigaSpeech (M), SPGISpeech (M), AMI (IHM + SDM), TED-LIUM, NOTSOFAR, EdAcc: one pass
Steps16,159
Batch Size304
OptimizerAdamW (fused), cosine schedule, 1,000 warmup steps, no weight decay
Learning Rate1e-3 (projector), 2e-5 (decoder)
Precisionbf16 mixed precision (weights held in fp32)

The training recipe is the default config, configs/config.yaml with configs/training/production.yaml.

Limitations

  • English only: Not trained on other languages.
  • Sample rate: Expects 16kHz audio (other rates are resampled automatically).
  • Audio length: Audio longer than 28 seconds is cut into chunks at pauses and transcribed chunk by chunk, so context does not carry across chunk boundaries.
  • Speaker diarization: At most 8 speakers per recording. The count is detected automatically; num_speakers and max_speakers can cap it, but min_speakers is not supported (passing it raises a ValueError). Needs transformers main until the next release.
  • Accuracy: May degrade on:
    • Far-field and overlapping speech (see AMI SDM)
    • Noisy or low-quality audio
    • Rare names and domain-specific terminology

Files

FileDescription
config.jsonModel configuration
model.safetensorsProjector and fine-tuned decoder weights (~2.4 GB, fp32)
preprocessor_config.jsonAudio preprocessing config
tokenizer.json / tokenizer_config.json / chat_template.jinjaTokenizer
asr_*.py, projectors.py, alignment.py, diarization.pyCustom model code (loaded with trust_remote_code=True)

The encoder (Granite Speech) is downloaded from its own Hugging Face repo. config.json loads the weights in bf16, as the eval harness runs them.

Earlier models are still available by revision: granite-qwen-frozen-4 (Granite Speech 470M + Qwen3.5-2B with LoRA, MIT) and glm-asr-qwen3-0.6b (GLM-ASR + Qwen3-0.6B):

pipe = pipeline(
    "automatic-speech-recognition",
    model="mazesmazes/tiny-audio",
    revision="granite-qwen-frozen-4",
    trust_remote_code=True,
)

Citation

If you use this model, please cite:

@misc{tinyaudio2025,
  author = {Alex Kroman},
  title = {Tiny Audio: Minimal ASR Training},
  year = {2025},
  publisher = {GitHub},
  url = {https://github.com/alexkroman/tiny-audio}
}

Acknowledgments

License

CC BY-NC-SA 4.0 (non-commercial, share-alike), inherited from the Granite Speech 5.0 470M non-causal encoder this model is built on. For commercial use, see the MIT-licensed granite-qwen-frozen-4 revision above. The Tiny Audio training code is MIT.

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

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

GPU в ailist

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

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

Модели нужен код из репозитория; автор пока не в списке доверенных организаций.

Класс архитектуры
ASRModel
Ревизия весов
26ce2ed

0 моделей