UNPKG

sherpa-onnx-node

Version:

Speech-to-text, text-to-speech, speaker diarization, and speech enhancement using Next-gen Kaldi without internet connection

16 lines (13 loc) 296 B
const addon = require('./addon.js'); class Punctuation { constructor(config) { this.handle = addon.createOfflinePunctuation(config); this.config = config; } addPunct(text) { return addon.offlinePunctuationAddPunct(this.handle, text); } } module.exports = { Punctuation, }