Skip to content

tinyasr 2.1 — offline speech recognition for Android

Latest

Choose a tag to compare

@ampl0 ampl0 released this 25 Nov 21:11
· 4 commits to main since this release

Offline, on-device speech recognition for Android (arm64-v8a, Android 6.0+).

Install

File Size Models
tinyasr-full-debug.apk 173 MB every pack bundled — en, es, fa, uz, km + Silero VAD — install and go
tinyasr-core-debug.apk 0.5 MB import one *.tzf + silero_vad.onnx from below

core uses dev.tinyasr.app.core, so it installs alongside full.

Prefer core if 173 MB is a lot for your connection: one language pack plus
silero_vad.onnx is all it needs.

What it does

  • Audio file — anything the phone decodes (m4a, mp3, ogg, wav, flac, 3gp…), full-context pass.
  • Record — capture a note, then transcribe it.
  • Live — streaming captions while you speak.
  • Share audio to it — Share / Open with an audio/* file from any app.
  • Phone speech engine — registers an android.speech.RecognitionService; select it in Settings → System → Languages → Speech and any app can dictate offline.
  • No INTERNET permission. Audio and text never leave the device.

Models — the complete Telegram catalogue

Fetched with docs/download_models.py --list (Telegram version 1, 7 documents).
Every pack was verified by loading it into the engine this app is built from;
all report chunk_ms=320 and the expected language list.

Asset Languages Bytes SHA-256
en.tzf en, ru, uk 35,860,640 3316a3f320c1335b88b9e6707e954b1a3ec184cb8b24d55f14cbe6ab2dd467ed
es.tzf en, es, it, pt 36,923,517 98d3abe71079ee4362ec616306937c6b06142e060aad32554ab7fa59a76d8e71
fa.tzf en, fa 34,619,123 9611cbc97a151a205038d7dbb8062d1ad0c7844084706cd4eed804db2305422b
uz.tzf en, ru, uz 35,686,768 167e9a0e9ad389e6688bf7ac554d73c7e0c345c8df71b9c16fdf98d01748a563
km.tzf en, km 34,618,278 611c01616d7fe705c6e365fd4fd44b3077f30db12c169d287b1a6d54c193797b
silero_vad.onnx — (VAD, required) 2,327,524 1a153a22f4509e292a94e67d6f9b85e8deb25b4988682b7e174c65279d8788e3
tinylid.bin — (language ID) 4,428,852 36d47bdbbb0280e9eb2c73342445dd6b89707ee768d3edd32b5c07275698fd27

Each language pack carries English as its first language (the shared token
block), so any single pack is useful on its own. checksums.txt covers every
file. To fetch packs with your own account instead:
python3 docs/download_models.py --list.

The packs are Telegram documents redistributed here for convenience.

Engine

tinyasr (dkaraush/tinyasr) — streaming Zipformer RNN-T/TDT with Silero VAD and an end-of-turn head, GPL-3.0-or-later, built from source at e034289132667fa8e87dd8d474a4dc59d447b2dc.

Not Telegram's libtmessages.so: its JNI_OnLoad resolves methods on Telegram's own Java classes and aborts the process in any other app — see docs/FORENSIC.md.

Install notes

These are debug-signed builds. If an install is refused, remove any earlier
copy first:

adb uninstall dev.tinyasr.app.core
adb install -r tinyasr-core-debug.apk

Source, documentation and the reverse-engineering notes are in the
repository.