Skip to content

Install a Vosk Model Manually

Elisha Azaria edited this page Oct 25, 2023 · 1 revision

The models are saved it the directory Android/data/com.elishaazaria.sayboard/files/Models under a directory named with the locale's tag (e.g. en-US).

In android 10 and up, this directory cannot be accessed using a regular file explorer, only the built-in one or from a computer (or root).

To install a model manually:

  • Create a new directory with the locale tag (see https://stackoverflow.com/a/7989085 for a list of locales. Note that you need a hyphen - and not an underscore _ between the language and country).
  • Unzip the model into the directory, so that the locale directory contains only one folder (vosk-model-small-locale-version) which contains the README, conf, am, etc. folders.

Here is an example file tree (with US English, Indian English, Japanese, Russian and Chinese installed):

Android/data/com.elishaazaria.sayboard/files
└── Models
    ├── en-IN
    │   └── vosk-model-small-en-in-0.4
    │       ├── README
    │       ├── am
    │       │   └── final.mdl
    │       ├── conf
    │       │   ├── mfcc.conf
    │       │   └── model.conf
    │       ├── graph
    │       │   ├── Gr.fst
    │       │   ├── HCLr.fst
    │       │   ├── disambig_tid.int
    │       │   └── phones
    │       │       └── word_boundary.int
    │       └── ivector
    │           ├── final.dubm
    │           ├── final.ie
    │           ├── final.mat
    │           ├── global_cmvn.stats
    │           ├── online_cmvn.conf
    │           └── splice.conf
    ├── en-US
    │   └── vosk-model-small-en-us-0.15
    │       ├── README
    │       ├── am
    │       │   └── final.mdl
    │       ├── conf
    │       │   ├── mfcc.conf
    │       │   └── model.conf
    │       ├── graph
    │       │   ├── Gr.fst
    │       │   ├── HCLr.fst
    │       │   ├── disambig_tid.int
    │       │   └── phones
    │       │       └── word_boundary.int
    │       └── ivector
    │           ├── final.dubm
    │           ├── final.ie
    │           ├── final.mat
    │           ├── global_cmvn.stats
    │           ├── online_cmvn.conf
    │           └── splice.conf
    ├── ja
    │   └── vosk-model-small-ja-0.22
    │       ├── README
    │       ├── am
    │       │   └── final.mdl
    │       ├── conf
    │       │   ├── mfcc.conf
    │       │   └── model.conf
    │       ├── graph
    │       │   ├── Gr.fst
    │       │   ├── HCLr.fst
    │       │   ├── disambig_tid.int
    │       │   ├── phones
    │       │   │   └── word_boundary.int
    │       │   ├── phones.txt
    │       │   └── words.txt
    │       └── ivector
    │           ├── final.dubm
    │           ├── final.ie
    │           ├── final.mat
    │           ├── global_cmvn.stats
    │           ├── online_cmvn.conf
    │           └── splice.conf
    ├── ru
    │   └── vosk-model-small-ru-0.22
    │       ├── README
    │       ├── am
    │       │   └── final.mdl
    │       ├── conf
    │       │   ├── mfcc.conf
    │       │   └── model.conf
    │       ├── graph
    │       │   ├── Gr.fst
    │       │   ├── HCLr.fst
    │       │   ├── disambig_tid.int
    │       │   └── phones
    │       │       └── word_boundary.int
    │       └── ivector
    │           ├── final.dubm
    │           ├── final.ie
    │           ├── final.mat
    │           ├── global_cmvn.stats
    │           ├── online_cmvn.conf
    │           └── splice.conf
    └── zh
        └── vosk-model-small-cn-0.22
            ├── README
            ├── am
            │   └── final.mdl
            ├── conf
            │   ├── mfcc.conf
            │   └── model.conf
            ├── graph
            │   ├── Gr.fst
            │   ├── HCLr.fst
            │   ├── disambig_tid.int
            │   └── phones
            │       └── word_boundary.int
            └── ivector
                ├── final.dubm
                ├── final.ie
                ├── final.mat
                ├── global_cmvn.stats
                ├── online_cmvn.conf
                └── splice.conf
Clone this wiki locally