Skip to main content

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-community repositories) or onnx-asr. Loquela needs the model's sherpa-onnx export, with its tokens.txt.
  • sherpa-onnx's streaming models (with streaming in 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​

  1. With Full, open Settings, then Voice & Models, and scroll to Custom package at the bottom.
  2. 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.
  3. Leave Model type on Detect automatically, or pick the type yourself.
  4. In Languages, enter the languages the model speaks as codes, such as en or en, de. Include your dictation language.
  5. 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.
  6. 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 int8 files 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.

  1. In Link: Hugging Face, archive or .gguf, paste a direct download link to a .tar.bz2, .tar.gz or .zip archive, or to one .gguf file. It must start with https://, 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/...).
  2. 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.
  3. Set Model type and Languages. If the archive has a loquela-model.json, Loquela uses that instead.
  4. 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 after sha256:.
  • 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

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 with encoder and decoder ONNX files and a tokens.txt, or one model.onnx with a tokens.txt, are the ones that run.
  • The sherpa-onnx model releases list many models as .tar.bz2 archives; 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.

  1. Put the model's files in one folder, for example my-model.

  2. Add a loquela-model.json file to that folder (example below).

  3. Pack the folder as .tar.bz2. From the folder that contains my-model, the tar command built into Windows 11, macOS and Linux does it:

    tar -cjf my-model.tar.bz2 my-model
  4. Upload my-model.tar.bz2 somewhere 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.

  5. Install it.

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" }.

FieldWhat to put
schemaVersion1
packageIdA name for the package: 3 to 96 letters, digits, dots, dashes or underscores
versionCodeA whole number from 1, shown on the card as the package's version
versionNameA version label, such as 1.0
displayNameThe name on the model's card
familyThe model type, from the table below
languageTagsThe languages the model speaks, as codes such as en, fr or de. Include your dictation language
sampleRateHz16000
estimatedRamMbRoughly how much memory the model needs, in MB
expandedSizeBytesThe total size of the unpacked files, in bytes
filesWhich 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
fileHashesOptional: a SHA-256 for any entry in files, checked during install
sourceUrlWhere the model comes from
licenseThe model's license, such as Apache-2.0
minAppVersionCode1

Model types​

Model type in the app and family in loquela-model.json name the same thing:

Model type in the appfamilyEntries in files
WhisperWHISPERencoder, decoder, tokens
Parakeet (NeMo transducer)PARAKEETencoder, decoder, joiner, tokens
Zipformer transducer(app only)encoder, decoder, joiner, tokens
NeMo CTC(app only)model, tokens
Moonshine v1MOONSHINEpreprocessor, encoder, uncachedDecoder, cachedDecoder, tokens
Moonshine v2(app only)encoder, mergedDecoder, tokens
SenseVoiceSENSE_VOICEmodel, tokens
ParaformerPARAFORMERmodel, tokens
DolphinDOLPHINmodel, tokens
OmnilingualOMNILINGUALmodel, tokens
Cohere TranscribeCOHERE_TRANSCRIBEencoder, decoder, tokens
Qwen3-ASRQWEN3_ASRconvFrontend, encoder, decoder, tokenizer (a folder with vocab.json, merges.txt and tokenizer_config.json)
VoskVOSKvoskModel: the model's folder, or . when its files sit beside loquela-model.json
GGUF (transcribe.cpp)GRANITE or CANARYggufModel (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.

FieldWhat it does
input_gainMultiplies 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_languagetrue 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:

MessageWhat to do
Loquela can't run this repositoryThe repository has no files Loquela runs, usually only PyTorch weights. See Convert a model.
Loquela can't run these filesThe 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 packagesOpen the package you want on Hugging Face and paste its link.
These files hold more than one modelLink a folder with one model, or add a loquela-model.json that names its files.
This repository has too many files to readLink the folder that holds the model instead of the whole repository.
No public Hugging Face model at this linkCheck the repository's name. Private and gated repositories can't be used.
Private or gated repositoryLoquela only reads public repositories that need no terms accepted.
This model is already downloadingWait for it, or tap Cancel on its card and install it again.
This GGUF file isn't a speech model Loquela can runUse a Granite Speech or Canary GGUF made for transcribe.cpp.
The GGUF file is incompleteThe download stopped early. Download the file again.
This model needs a 64-bit phoneGGUF models run on 64-bit phones only.
A file in the archive is damagedDownload or copy the archive again.
Several model types fit these filesPick Model type yourself and install again.
Not a supported packageThe 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 mismatchThe 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 supportedThe model is not one Loquela can run as a custom model.
Package requires a newer Loquela versionUpdate Loquela, or set minAppVersionCode to 1.