Skip to content

Question : How to add other language models to the ~/.config/nerd-dictation/model/ directory ? #144

@sebma

Description

@sebma

Hi I have unzipped english small models into ~/.config/nerd-dictation/model/ directory :

$ mkdir -v ~/.config/nerd-dictation
mkdir: created directory '/home/sebastien/.config/nerd-dictation'
$ cd ~/.config/nerd-dictation
$ wget https://alphacephei.com/kaldi/models/vosk-model-small-en-us-0.15.zip -nv
2025-04-13 17:13:04 URL:https://alphacephei.com/kaldi/models/vosk-model-small-en-us-0.15.zip [41205931/41205931] -> "vosk-model-small-en-us-0.15.zip" [1]
$ unzip vosk-model-small-en-us-0.15.zip
Archive:  vosk-model-small-en-us-0.15.zip
   creating: vosk-model-small-en-us-0.15/
   creating: vosk-model-small-en-us-0.15/am/
  inflating: vosk-model-small-en-us-0.15/am/final.mdl
   creating: vosk-model-small-en-us-0.15/graph/
  inflating: vosk-model-small-en-us-0.15/graph/disambig_tid.int
  inflating: vosk-model-small-en-us-0.15/graph/HCLr.fst
  inflating: vosk-model-small-en-us-0.15/graph/Gr.fst
   creating: vosk-model-small-en-us-0.15/graph/phones/
  inflating: vosk-model-small-en-us-0.15/graph/phones/word_boundary.int
   creating: vosk-model-small-en-us-0.15/conf/
  inflating: vosk-model-small-en-us-0.15/conf/model.conf
  inflating: vosk-model-small-en-us-0.15/conf/mfcc.conf
   creating: vosk-model-small-en-us-0.15/ivector/
  inflating: vosk-model-small-en-us-0.15/ivector/splice.conf
  inflating: vosk-model-small-en-us-0.15/ivector/final.dubm
  inflating: vosk-model-small-en-us-0.15/ivector/global_cmvn.stats
  inflating: vosk-model-small-en-us-0.15/ivector/final.ie
  inflating: vosk-model-small-en-us-0.15/ivector/online_cmvn.conf
  inflating: vosk-model-small-en-us-0.15/ivector/final.mat
  inflating: vosk-model-small-en-us-0.15/README
$ mv vosk-model-small-en-us-0.15 model -v
renamed 'vosk-model-small-en-us-0.15' -> 'model'
$

Now, when I try to do add the french small model, here what happens :

$ wget https://alphacephei.com/vosk/models/vosk-model-small-fr-0.22.zip -nv
2025-04-13 17:19:51 URL:https://alphacephei.com/vosk/models/vosk-model-small-fr-0.22.zip [42233323/42233323] -> "vosk-model-small-fr-0.22.zip" [1]
$ unzip vosk-model-small-fr-0.22.zip
Archive:  vosk-model-small-fr-0.22.zip
   creating: vosk-model-small-fr-0.22/
   creating: vosk-model-small-fr-0.22/graph/
   creating: vosk-model-small-fr-0.22/graph/phones/
  inflating: vosk-model-small-fr-0.22/graph/phones/word_boundary.int
  inflating: vosk-model-small-fr-0.22/graph/Gr.fst
  inflating: vosk-model-small-fr-0.22/graph/HCLr.fst
  inflating: vosk-model-small-fr-0.22/graph/disambig_tid.int
   creating: vosk-model-small-fr-0.22/am/
  inflating: vosk-model-small-fr-0.22/am/final.mdl
  inflating: vosk-model-small-fr-0.22/README
   creating: vosk-model-small-fr-0.22/conf/
  inflating: vosk-model-small-fr-0.22/conf/model.conf
  inflating: vosk-model-small-fr-0.22/conf/mfcc.conf
   creating: vosk-model-small-fr-0.22/ivector/
  inflating: vosk-model-small-fr-0.22/ivector/final.dubm
  inflating: vosk-model-small-fr-0.22/ivector/global_cmvn.stats
  inflating: vosk-model-small-fr-0.22/ivector/final.ie
  inflating: vosk-model-small-fr-0.22/ivector/final.mat
  inflating: vosk-model-small-fr-0.22/ivector/splice.conf
 extracting: vosk-model-small-fr-0.22/ivector/online_cmvn.conf
$ mv vosk-model-small-fr-0.22/* model/ -v
renamed 'vosk-model-small-fr-0.22/README' -> 'model/README'
mv: cannot overwrite 'model/am': Directory not empty
mv: cannot overwrite 'model/conf': Directory not empty
mv: cannot overwrite 'model/graph': Directory not empty
mv: cannot overwrite 'model/ivector': Directory not empty
$

Can you help me ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions