Custom voice models
With Full, you can install a voice model that is not in Loquela's list: paste a Hugging Face link, paste a link to an archive or a GGUF file, or pick a file you already downloaded to your phone. Custom models need Full: without it, for example after you sign out, they stay on your phone and the keyboard uses a free model until Full is back.
Check the list first
Most models people ask about are already in Voice & Models, including Whisper, Parakeet, Canary, Granite Speech and Moonshine. A model from the list installs with one tap and gets updates. Full shows every model, and the sort and filters help you find one.
Which models work
Loquela runs a custom model when its files are in one of these forms:
- ONNX made for sherpa-onnx, of the model types in the table below. Many are on Hugging Face and in the sherpa-onnx model releases.
- GGUF for transcribe.cpp: Granite Speech and Canary files, on 64-bit phones only. Loquela reads the file's header first and turns down other GGUF files, such as llama.cpp language models, llama.cpp's own speech files and other model types; whisper.cpp files do not run either.
- Vosk: a Vosk model folder, as Vosk publishes them in its model list.
Files that do not work as they are:
- PyTorch weights (
.safetensors,.bin,.pt), which is how most speech models on Hugging Face are published. They have to be converted first (see Convert a model). - ONNX files made for other tools, such as transformers.js (the
onnx-communityrepositories) or onnx-asr. Loquela needs the model's sherpa-onnx export, with itstokens.txt. - sherpa-onnx's streaming models (with
streamingin the name). A custom model writes the text after you stop speaking. - Models that do not take 16 kHz audio.
A model can be up to 4 GB to download and 8 GB unpacked, with at most 4,096 files.
Install from Hugging Face
- With Full, open Settings, then Voice & Models, and scroll to Custom package at the bottom.
- In Link: Hugging Face, archive or .gguf, paste the link to the model's page on Hugging Face, such as
https://huggingface.co/csukuangfj/sherpa-onnx-whisper-tiny.en. A link to a folder in the repository, or to one archive or GGUF file in it, works too. - Leave Model type on Detect automatically, or pick the type yourself.
- In Languages, enter the languages the model speaks as codes, such as
enoren, de. Include your dictation language. - Tap Check link. Loquela reads the repository and shows what it would install: the number of files, the size, the licence and the exact version (the commit). If the files could be more than one model type, it picks the likeliest and asks you to check Model type.
- Tap Install. The model appears under Installed and downloads. Tap Select Model on its card.
There is no checksum to paste: Loquela downloads every file from that exact version and checks each one against the checksum Hugging Face lists for it.
Which files Loquela takes:
- If the repository has a
loquela-model.json, the files it names. - Otherwise the model's files: the ONNX files, tokens and tokenizer, or the Vosk folder. When a model comes in several precisions, Loquela takes the
int8files and leaves the others, and their weight files, out. Sample audio, documents, scripts and PyTorch weights are left out. - If the repository holds several packages, several GGUF files or models in separate folders, Loquela asks you to open the one you want on Hugging Face and paste its link.
Only public repositories work. A repository that is private, or that asks you to accept terms on Hugging Face before downloading, cannot be read by Loquela.
Install from a link to an archive or GGUF file
- In Link: Hugging Face, archive or .gguf, paste a direct download link to a
.tar.bz2,.tar.gzor.ziparchive, or to one.gguffile. It must start withhttps://, and opening it in a browser should start a download, not show a page. On GitHub, use the link of a file under a release (.../releases/download/...). - In Expected SHA-256 (recommended), paste the file's checksum (see What to put in Expected SHA-256). You can leave it empty; Loquela 1.7.1 and earlier require it.
- Set Model type and Languages. If the archive has a
loquela-model.json, Loquela uses that instead. - Tap Install package.
An archive can hold its files at the top or inside one folder.
Install a file from your phone
Tap Choose a file and pick an archive or a .gguf file you already downloaded. Set Model type and Languages first. Loquela copies the file and installs it the same way.
What to put in Expected SHA-256
Enter the SHA-256 of the file at your link: 64 letters and digits. Not the checksum of a model file inside an archive, and not of loquela-model.json. Loquela compares the download with it, so it only installs the exact file you meant. If they differ, Loquela deletes the download and shows "SHA-256 mismatch".
Where to find it:
- GitHub release: each file under a release shows
sha256:followed by the checksum. Copy only the 64 characters aftersha256:. - Hugging Face: the file's page shows it as SHA256. With a Hugging Face link, Loquela finds it itself.
- Work it out yourself from the same file you uploaded:
- Windows (PowerShell):
Get-FileHash .\my-model.tar.bz2 -Algorithm SHA256 - macOS:
shasum -a 256 my-model.tar.bz2 - Linux:
sha256sum my-model.tar.bz2
- Windows (PowerShell):
Capital or small letters both work. Without a checksum, Loquela installs whatever file the link serves when you tap Install package.
Find a model that works
- On Hugging Face, search for the model's name with
sherpa-onnx, for example "sherpa-onnx whisper" or "sherpa-onnx sense-voice". Repositories withencoderanddecoderONNX files and atokens.txt, or onemodel.onnxwith atokens.txt, are the ones that run. - The sherpa-onnx model releases list many models as
.tar.bz2archives; paste the link of one. - Vosk's model list links each model as a
.zip; paste that link and pick Vosk.
Convert a model
A model published only as PyTorch weights has to be exported to ONNX for sherpa-onnx first. The sherpa-onnx documentation has export steps and scripts for each model type it supports. Once exported, upload the files to a Hugging Face repository (or pack them as an archive) and install them as above.
Make a package
A package with a loquela-model.json says exactly what each file is, so it needs no model type or language in the app.
-
Put the model's files in one folder, for example
my-model. -
Add a
loquela-model.jsonfile to that folder (example below). -
Pack the folder as
.tar.bz2. From the folder that containsmy-model, thetarcommand built into Windows 11, macOS and Linux does it:tar -cjf my-model.tar.bz2 my-model -
Upload
my-model.tar.bz2somewhere that gives a direct HTTPS link, such as a GitHub release or a Hugging Face repository, or upload the folder's files to a Hugging Face repository as they are.
Paths in loquela-model.json start from the folder that holds it.
loquela-model.json
An example for a Whisper model exported for sherpa-onnx:
{
"schemaVersion": 1,
"packageId": "my-whisper-fr",
"versionCode": 1,
"versionName": "1.0",
"displayName": "My French Whisper",
"family": "WHISPER",
"languageTags": ["fr"],
"sampleRateHz": 16000,
"estimatedRamMb": 700,
"expandedSizeBytes": 380000000,
"files": {
"encoder": "small-encoder.int8.onnx",
"decoder": "small-decoder.int8.onnx",
"tokens": "small-tokens.txt"
},
"sourceUrl": "https://huggingface.co/your-name/your-model",
"license": "Apache-2.0",
"minAppVersionCode": 1
}
For a GGUF file, use "family": "CANARY" (or "GRANITE") and "files": { "ggufModel": "your-model.gguf" }.
| Field | What to put |
|---|---|
schemaVersion | 1 |
packageId | A name for the package: 3 to 96 letters, digits, dots, dashes or underscores |
versionCode | A whole number from 1, shown on the card as the package's version |
versionName | A version label, such as 1.0 |
displayName | The name on the model's card |
family | The model type, from the table below |
languageTags | The languages the model speaks, as codes such as en, fr or de. Include your dictation language |
sampleRateHz | 16000 |
estimatedRamMb | Roughly how much memory the model needs, in MB |
expandedSizeBytes | The total size of the unpacked files, in bytes |
files | Which file is which: each name from the table below with its path in the package. List any other file the model needs too, under a name of your own (for example "weights": "model.weights.bin" for weights kept outside the .onnx file); from Hugging Face, Loquela downloads only the files listed here, plus loquela-runtime.json |
fileHashes | Optional: a SHA-256 for any entry in files, checked during install |
sourceUrl | Where the model comes from |
license | The model's license, such as Apache-2.0 |
minAppVersionCode | 1 |
Model types
Model type in the app and family in loquela-model.json name the same thing:
| Model type in the app | family | Entries in files |
|---|---|---|
| Whisper | WHISPER | encoder, decoder, tokens |
| Parakeet (NeMo transducer) | PARAKEET | encoder, decoder, joiner, tokens |
| Zipformer transducer | (app only) | encoder, decoder, joiner, tokens |
| NeMo CTC | (app only) | model, tokens |
| Moonshine v1 | MOONSHINE | preprocessor, encoder, uncachedDecoder, cachedDecoder, tokens |
| Moonshine v2 | (app only) | encoder, mergedDecoder, tokens |
| SenseVoice | SENSE_VOICE | model, tokens |
| Paraformer | PARAFORMER | model, tokens |
| Dolphin | DOLPHIN | model, tokens |
| Omnilingual | OMNILINGUAL | model, tokens |
| Cohere Transcribe | COHERE_TRANSCRIBE | encoder, decoder, tokens |
| Qwen3-ASR | QWEN3_ASR | convFrontend, encoder, decoder, tokenizer (a folder with vocab.json, merges.txt and tokenizer_config.json) |
| Vosk | VOSK | voskModel: the model's folder, or . when its files sit beside loquela-model.json |
| GGUF (transcribe.cpp) | GRANITE or CANARY | ggufModel (64-bit phones) |
"(app only)": pick the type in the app; a loquela-model.json cannot name it yet.
loquela-runtime.json
A few models need an extra setting, kept in an optional loquela-runtime.json beside the model's files. Most models need none.
| Field | What it does |
|---|---|
input_gain | Multiplies the audio before the model hears it, for models exported to expect a louder signal (for example 8) |
text_case | "sentence" for a model that writes only in capitals: Loquela turns the text into normal sentence case |
always_tell_language | true for Qwen3-ASR variants that need to be told the language instead of guessing it |
If it does not install
The model's card, or the message under Custom package, shows why:
| Message | What to do |
|---|---|
| Loquela can't run this repository | The repository has no files Loquela runs, usually only PyTorch weights. See Convert a model. |
| Loquela can't run these files | The files are ONNX, but not a sherpa-onnx export Loquela runs: made for another tool, a streaming model, or a kind of model custom packages don't support. See Which models work. |
| This repository has several packages | Open the package you want on Hugging Face and paste its link. |
| These files hold more than one model | Link a folder with one model, or add a loquela-model.json that names its files. |
| This repository has too many files to read | Link the folder that holds the model instead of the whole repository. |
| No public Hugging Face model at this link | Check the repository's name. Private and gated repositories can't be used. |
| Private or gated repository | Loquela only reads public repositories that need no terms accepted. |
| This model is already downloading | Wait for it, or tap Cancel on its card and install it again. |
| This GGUF file isn't a speech model Loquela can run | Use a Granite Speech or Canary GGUF made for transcribe.cpp. |
| The GGUF file is incomplete | The download stopped early. Download the file again. |
| This model needs a 64-bit phone | GGUF models run on 64-bit phones only. |
| A file in the archive is damaged | Download or copy the archive again. |
| Several model types fit these files | Pick Model type yourself and install again. |
| Not a supported package | The file is not a .tar.bz2, .tar.gz, .zip or .gguf file, the link opens a web page instead of the file, or a .zip was made with zstd or xz compression (make it again with ordinary zip compression). |
| SHA-256 mismatch | The checksum is not that of the file at the link. Usually the link opens a web page (a cloud drive's share page) instead of the file, or the checksum is of a different file. |
| Missing model files: ... | The files lack one the model type needs, or the wrong model type is picked. |
| Invalid file for role ... | A path in loquela-model.json does not match a file in the package. |
| No value for ... | That field is missing from loquela-model.json. |
| No enum constant ... | family is not one of the names in the model types table. Use capitals, as shown. |
| Only 16 kHz packages are supported, or Streaming custom packages are not supported | The model is not one Loquela can run as a custom model. |
| Package requires a newer Loquela version | Update Loquela, or set minAppVersionCode to 1. |