kaldi-offline-transcriber icon indicating copy to clipboard operation
kaldi-offline-transcriber copied to clipboard

Installing pyfst

Open siilats opened this issue 9 years ago • 1 comments

On OSX you need:

CPPFLAGS="-I/home/speech/tools/kaldi-trunk/tools/openfst/include -L/home/speech/tools/kaldi-trunk/tools/openfst/lib -stdlib=libstdc++"

pip install pyfst

siilats avatar Feb 17 '16 03:02 siilats

it worked on just wav files not mp3 on osx ffmpeg -i heli.mp3 -acodec pcm_u8 -ar 22050 heli2.wav after

sudo port install openfst CPPFLAGS="-I/home/speech/tools/kaldi-trunk/tools/openfst/include -L/home/speech/tools/kaldi-trunk/tools/openfst/lib -stdlib=libstdc++" pip install pyfst otool -L /usr/local/lib/python2.7/site-packages/fst/_fst.so sudo port uninstall openfst ln -s /home/speech/tools/kaldi-trunk/tools/openfst/lib/libfst.1.dylib /opt/local/lib/libfst.1.dylib

sudo port install sox

replace -2 with -b 16 in Makefile in the sox commands

sudo port install coreutils export PATH="/opt/local/libexec/gnubin/:$PATH"

cd ~/tools cd kaldi-offline-transcriber cd scripts/ grep -l 'usr/bin/python' * | xargs sed -i "" 's/usr/bin/python/opt/local/bin/python2.7/'

siilats avatar Feb 17 '16 08:02 siilats