-
Notifications
You must be signed in to change notification settings - Fork 7
Automatic subtitle generation (PocketSphinx)
Louis edited this page Jun 30, 2015
·
8 revisions
- Download swig -
apt-get install swig
for ease - Download Sphinxbase (currently v.5, check
sourceforgeGitHub for latest)mv sphinxbase-XXXX sphinxbase; cd sphinxbase
./configure
make
- Now its dependency is satisfied, add PocketSphinx via GitHub
-
run
./autogen.sh
-
./configure
-
make clean all
../../src/libpocketsphinx/.libs/libpocketsphinx.so: undefined reference to `cmd_ln_print_values_r'
-
make check
-
sudo make install
-
- Install
maven2
and then build sphinx4 - Make a test video clip, transcribe it manually, convert video to proper format:
ffmpeg -i Short_clip.mp4 -acodec pcm_s16le -ac 1 -ar 16000 Short_clip.wav
- Use long audio alignment being developed in Sphinx
java -cp sphinx4-samples/target/sphinx4-samples-1.0-SNAPSHOT-jar-with-dependencies.jar sphinx4-core/src/main/java/edu/cmu/sphinx/alignment/LongTextAligner.java Short_clip.wav file.txt en-us-generic cmudict-5prealpha.dict cmudict-5prealpha.fst.ser