Experiment data: https://clug-kr.github.io/ming/
- node.js ^7.10
- ffmpeg (for extract-audio command)
- IBM Bluemix API username/password (for recognize command)
$ npm install
$ npm install -g typescript ts-node # sudo if needed
$ ts-node src/index.ts extract-audio video.mp4 -o audio.ogg
Currently, only ogg format is supported for the audio file, and recognize command requires to be set valid IBM Bluemix username/password settings on the environment variable.
$ ts-node src/index.ts recognize audio.ogg -o recognition_result.json
$ ts-node src/index.ts combine subtitle.srt recognition_result.json > fixed_subtitle.srt