Kitten ASR Medium Enhanced

A 2.0B-parameter speech recognition model that writes down how something was said, not just what was said. It emits the transcript with inline markup for emotion, delivery, emphasis, pauses, non-verbal sounds, and the speaker's accent:

[Sad][Whispering]I'm (sorry), but I ((couldn't)) stop (thinking) about those (poor) (students).[/Whispering][/Sad] [Accent='american-english']

For a smaller download, kitten-asr-small-enhanced (780M) produces the same markup through the same API.

Usage

pip install kittenml
from kittenml import KittenASR

asr = KittenASR("KittenML/kitten-asr-medium-enhanced")
result = asr.transcribe_detailed("speech.wav")[0]

result.text             # "I'm sorry, but I couldn't stop thinking about those poor students."
result.enriched_text    # the raw markup above
result.accent           # 'american-english'
result.emotions         # [{'tag': 'Sad', 'segment': "I'm sorry, but I couldn't stop ..."}]
result.delivery         # same shape, for delivery spans
result.word_annotations # per word: emotion, delivery, emphasis level, non-verbal event
result.to_dict()        # everything above as JSON

asr.transcribe("speech.wav") returns plain text with the markup stripped, so this model is a drop-in replacement for kitten-asr-tiny.

Inputs can be file paths, URLs, (waveform, sample_rate) tuples, or a list of them for batching. Audio is resampled to 16 kHz mono, and long recordings are split at quiet points before inference. It runs on CUDA when available and on CPU otherwise; pass device="cpu" to force CPU. Everything the model needs is in this repository, so no Hugging Face login is required.

Reference transcript

If you already have a plain transcript, pass it as context. It grounds the words while the audio still decides the annotations, which cuts transcription errors:

result = asr.transcribe_detailed(
    "speech.wav",
    context="I'm sorry, but I couldn't stop thinking about those poor students.",
)[0]

The reference conditions decoding; it does not force the model to copy it. On this model context is always treated as a reference transcript, not as a free-form biasing prompt. Leave it empty for audio-only transcription, which is the normal case.

Quantized weights

int8 and int4 builds live in the int8/ and int4/ folders:

asr = KittenASR("KittenML/kitten-asr-medium-enhanced", quantization="int4")   # 1.1 GB download instead of 4.1 GB

Only the packed weights are downloaded. They shrink the download and disk footprint, not memory: weights are expanded back to bf16 (float32 on CPU) as they load. Quantized builds run on the PyTorch backend only.

GPU batching with vLLM

On Linux with a CUDA GPU:

pip install 'kittenml[vllm]'
from kittenml import KittenASR

def main():
    asr = KittenASR("KittenML/kitten-asr-medium-enhanced", backend="vllm")
    for r in asr.transcribe_detailed(["a.wav", "b.wav"]):
        print(r.enriched_text)

if __name__ == "__main__":
    main()

Keep the main guard: vLLM starts a worker process. See the ASR guide for engine options, long-audio handling and the full API.

What it annotates

Markup Examples
Emotion [Tag]...[/Tag] span Angry Annoyed Disgusted Excitement Fearful Happy Sad Surprised
Delivery [Tag]...[/Tag] span Calm Laughing Rushed Shouting Slow Whispering
Emphasis parentheses (word) level 1, ((word)) level 2, (((word))) level 3
Pauses standalone tag [Pause_medium] [Pause_long]
Non-verbal events standalone tag Sigh Breath Chuckle Gasp Inhale Pant Laugh Exhale Hmm Clear_throat
Accent once, at the end [Accent='american-english']

Tags are case-insensitive. Spans can nest, as in the example above.

English accents: american-english british-english other-english indian-english african-english australian-english russian-english chinese-english french-english arabic-english spanish-english japanese-english portuguese-english korean-english. For non-English speech the same field may carry a language label instead, such as spanish or french.

In word_annotations, every word gets an entry, and non-verbal events get their own entry with word: None so the sequence stays in order. emotion and delivery are 'Neutral' outside any span, and emphasis runs from 0 to 3. The parsing helpers also work on markup from elsewhere:

from kittenml.kittenasr import plain_text
plain_text("[Happy]hello (there)[/Happy]")   # 'hello there'

The enriched output guide has the full JSON schema.

Languages

This preview checkpoint transcribes English best, and also handles Spanish, German, Italian, French and Russian. Languages in other scripts, including Chinese, Arabic, Hindi, Japanese and Korean, are not usable yet. Annotation quality varies by language and recording conditions.

Links

Downloads last month
11
Safetensors
Model size
2B params
Tensor type
BF16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support