Kitten ASR Tiny
A 470M-parameter speech recognition model that turns audio into plain text.
Usage
pip install kittenml
from kittenml import KittenASR
asr = KittenASR("KittenML/kitten-asr-tiny")
print(asr.transcribe("speech.wav"))
# The detected language alongside the transcript.
result = asr.transcribe_detailed("speech.wav")[0]
print(result.language, result.text)
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. Pass device="cpu" to force CPU. Everything the model needs is in this
repository, so no Hugging Face login is required.
asr.transcribe(["a.wav", "b.wav"]) # a batch
asr.transcribe("speech.wav", language="English") # force the language
context and language apply to the whole batch when given once, or per item when given as a
list.
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-tiny", backend="vllm")
print(asr.transcribe(["a.wav", "b.wav"]))
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.
Languages
This preview checkpoint transcribes English best, and also handles French, German, Spanish, Italian, Dutch, Polish, Portuguese and Russian.
Links
- Code: github.com/KittenML/KittenTTS
- Discord: Join the community
- Website: kittenml.com
- Commercial support: contact us or email info@stellonlabs.com