Stt-align-node
See The alignment problem in the docs for more background of the problem this module set out to address.
Originally developed as a node version of python's stt-align by Chris Baume - BBC R&D.
Setup - development
git clone git@github.com:bbc/stt-align-node.git
cd stt-align-node
npm install
Setup - in production
npm install @bbc/stt-align-node
Usage
Other then to realign STT results with accurate text, this modules can also be used to perform related oprations in the same domain, such as benchmarking STT.
Function | Description | type |
---|
alignSTT | Realign STT json with accurate text. by transposing words from accurate text to timecodes of STT. | json |
diffsList | return a diff json of STT vs accurate text | json |
diffsListAsHtml | return a diff of STT vs accurate text as HTML | html |
diffsCount | return a diff of STT vs accurate text as HTML | json |
calculateWordDuration | return a diff of STT vs accurate text as HTML | Number |
See See README
in example-usage
folder as well as code examples for more.
System Architecture
Node version of stt-align by Chris Baume - R&D.
In pseudo code overview of alignSTT
:
Development env
Build
npm run build
bundles the code with react, into a ./build
folder.
build demo
npm run build:demo
Demo is in docs folder
Publish demo to github pages
npm run deploy:ghpages
Tests
npm run test:watch
Deployment
Deploy to npm
npm run publish:public