syl22-00/pocketsphinx.js

Lazy loading raw files

Closed this issue · 0 comments

I can't believe I am asking this as it seems so fundamental - I think I must be overlooking something.

In the example of lazy loading in the readme file.

recognizer.postMessage({command: 'lazyLoad',
callbackId: id,
data: {folders: [["/", "zh_broadcastnews_ptm256_8000"]],
files: [["/zh_broadcastnews_ptm256_8000", "means", "../zh_broadcastnews_ptm256_8000/means"],
["/zh_broadcastnews_ptm256_8000", "variances", "../zh_broadcastnews_ptm256_8000/variances"],
["/zh_broadcastnews_ptm256_8000", "transition_matrices", "../zh_broadcastnews_ptm256_8000/transition_matrices"],
["/zh_broadcastnews_ptm256_8000", "sendump", "../zh_broadcastnews_ptm256_8000/sendump"],
["/zh_broadcastnews_ptm256_8000", "mdef", "../zh_broadcastnews_ptm256_8000/mdef"],
["/zh_broadcastnews_ptm256_8000", "feat.params", "../zh_broadcastnews_ptm256_8000/feat.params"],
["/zh_broadcastnews_ptm256_8000", "mixture_weights", "../zh_broadcastnews_ptm256_8000/mixture_weights"],
["/zh_broadcastnews_ptm256_8000", "noisedict", "../zh_broadcastnews_ptm256_8000/noisedict"]]
}
});

Where in the example or in the readme file is the loading of the language-model.lm.bin file?