sherpa-ncnn
Version:
Real-time speech recognition with Next-gen Kaldi
15 lines (11 loc) • 340 B
JavaScript
// Copyright (c) 2023-2024 Xiaomi Corporation (authors: Fangjun Kuang)
//
const wasmModule = require('./sherpa-ncnn-wasm-main.js')();
const sherpa_ncnn = require('./sherpa-ncnn.js');
function createRecognizer(config) {
return sherpa_ncnn.createRecognizer(wasmModule, config);
}
module.exports = {
createRecognizer,
};