pocketsphinx-stt
Speech to text module initially Video grep Mac OSX Electron app, by Sam Lavine @sam_lavigne
Then refactored as part of autoEdit, and subsequently as part of Digital Paper Edit app.
Pocketshphinx is set with American english dictionary.
Setup
git clone https://github.com/OpenNewsLabs/pocketsphinx-stt
cd pocketsphinx-stt
npm install
Usage
on npm pocketsphinx-stt
npm install pocketsphinx-stt
There are two options, one expect the file to be already an audio file that can work with pocketsphixn
const transcribe = ;const videoFilePath = // some video file
Check out and try the example usage node src/example-usage.js
for more
Example output
Uses json format for transcript from Digital Paper Edit project.
words: text: 'why' start: 028 end: 123 accuracy: 0018412 id: 0 text: 'not' start: 132 end: 185 accuracy: 0851958 id: 1 text: 'she\'s' start: 24 end: 27 accuracy: 0067643 id: 2 ... paragraphs: id: 0 start: 028 end: 393 speaker: 'U_UKN' id: 1 start: 469 end: 581 speaker: 'U_UKN' id: 2 start: 655 end: 737 speaker: 'U_UKN' ...
System Architecture
TBC
Development env
- npm >
6.1.0
- Node 10 - dubnium
Build
npm run build
packages via babel, in dist
folder
Tests
NA
Deployment
On npm
npm run publish:public
Runs build and then publishes dist
folder to npm with copy of README
and package.json