BerkeleyAutomation / malasakit

Malasakit is a customizable participatory assessment platform that collects and integrates quantitative assessment, qualitative feedback, and peer-to-peer collaborative filtering on ways local communities can become better prepared for typhoons and floods.
2 stars 8 forks source link

ASR recognize script issues #176

Open JustinMi opened 6 years ago

JustinMi commented 6 years ago

@MSimora I am having issues running the recognize script. I already ran path.sh, but the recognize.sh script still does not work. Any suggestions?

I am on MacOSX. Below is my invocation of the script and the resulting output.

$ . ./recognize.sh test/example-one.wav eng 
dyld: Library not loaded: /Users/justinmi/GDrive/Cal/Work/Autolab/malasakit-v1/kaldi/tools/openfst-1.6.5/lib/libfst.8.dylib
  Referenced from: /Users/justinmi/GDrive/Cal/Work/Autolab/pcari/malasakit-v1/kaldi/egs/malsakit-digits/../../src/featbin/copy-feats
  Reason: image not found
dyld: Library not loaded: /Users/justinmi/GDrive/Cal/Work/Autolab/malasakit-v1/kaldi/tools/openfst-1.6.5/lib/libfst.8.dylib
  Referenced from: /Users/justinmi/GDrive/Cal/Work/Autolab/pcari/malasakit-v1/kaldi/egs/malsakit-digits/../../src/featbin/compute-mfcc-feats
  Reason: image not found
Abort trap: 6
cat: mfcc/raw_mfcc_example-one.scp: No such file or directory
-bash: recognition/logs/gmm_latgen_example-one.log: No such file or directory
-bash: recognition/logs/lattice_best_path_example-one.log: No such file or directory
-bash: recognition/logs/lattice_to_fst_example-one.log: No such file or directory
dyld: Library not loaded: /Users/justinmi/GDrive/Cal/Work/Autolab/malasakit-v1/kaldi/tools/openfst-1.6.5/lib/libfstscript.8.dylib
  Referenced from: /Users/justinmi/GDrive/Cal/Work/Autolab/pcari/malasakit-v1/kaldi/egs/malsakit-digits/../../tools/openfst/bin/fstprint
  Reason: image not found
-bash: [: -gt: unary operator expected
Can't open recognition/one-best_example-one.tra: No such file or directory at utils/int2sym.pl line 57.

success!

audio file = test/example-one.wav
recognized word = 
recognized digit = err
confidence score = 1

(standard_in) 1: illegal character: N
(standard_in) 1: illegal character: N
-bash: soxi: command not found
(standard_in) 1: parse error
real time factor = 
MSimora commented 6 years ago

Hello @JustinMi https://github.com/justinmi under at what directory do you run path.sh and recognize.sh? Also, have you compiled openfst? My assumptions in making those scripts is that they are run on malasakit-digits directory. I forgot to add, for the real time factor estimation to work, you will need to install sox. I'll add that on README.md

On 24 January 2018 at 12:42, Justin Mi notifications@github.com wrote:

@MSimora https://github.com/msimora I am having issues running the recognize script. I already ran path.sh, but the recognize.sh script still does not work. Any suggestions?

I am on MacOSX. Below is my invocation of the script and the resulting output.

$ . ./recognize.sh test/example-one.wav eng dyld: Library not loaded: /Users/justinmi/GDrive/Cal/Work/Autolab/malasakit-v1/kaldi/tools/openfst-1.6.5/lib/libfst.8.dylib Referenced from: /Users/justinmi/GDrive/Cal/Work/Autolab/pcari/malasakit-v1/kaldi/egs/malsakit-digits/../../src/featbin/copy-feats Reason: image not found dyld: Library not loaded: /Users/justinmi/GDrive/Cal/Work/Autolab/malasakit-v1/kaldi/tools/openfst-1.6.5/lib/libfst.8.dylib Referenced from: /Users/justinmi/GDrive/Cal/Work/Autolab/pcari/malasakit-v1/kaldi/egs/malsakit-digits/../../src/featbin/compute-mfcc-feats Reason: image not found Abort trap: 6 cat: mfcc/raw_mfcc_example-one.scp: No such file or directory -bash: recognition/logs/gmm_latgen_example-one.log: No such file or directory -bash: recognition/logs/lattice_best_path_example-one.log: No such file or directory -bash: recognition/logs/lattice_to_fst_example-one.log: No such file or directory dyld: Library not loaded: /Users/justinmi/GDrive/Cal/Work/Autolab/malasakit-v1/kaldi/tools/openfst-1.6.5/lib/libfstscript.8.dylib Referenced from: /Users/justinmi/GDrive/Cal/Work/Autolab/pcari/malasakit-v1/kaldi/egs/malsakit-digits/../../tools/openfst/bin/fstprint Reason: image not found -bash: [: -gt: unary operator expected Can't open recognition/one-best_example-one.tra: No such file or directory at utils/int2sym.pl line 57.

success!

audio file = test/example-one.wav recognized word = recognized digit = err confidence score = 1

(standard_in) 1: illegal character: N (standard_in) 1: illegal character: N -bash: soxi: command not found (standard_in) 1: parse error real time factor =

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/BerkeleyAutomation/malasakit-v1/issues/176, or mute the thread https://github.com/notifications/unsubscribe-auth/ASBpWf5ZM-wWtq9BDxjFiF-3m6pJOchEks5tNrTSgaJpZM4RqtsN .

MSimora commented 6 years ago

I'll also add some error handling capability in recognize.sh in case something like this happens again.

JustinMi commented 6 years ago

@MSimora

  1. I run path.sh and recognize.sh in /kaldi/egs/malasakit-digits.
  2. I am not sure if I have compiled openfst. How can I check?
MSimora commented 6 years ago

@JustinMi

You can do: ls /kaldi/tools/openfst/bin if it has contents, you have compiled it.

On 24 January 2018 at 15:22, Justin Mi notifications@github.com wrote:

@MSimora https://github.com/msimora

  1. I run path.sh and recognize.sh in /kaldi/egs/malasakit-digits.
  2. I am not sure if I have compiled openfst. How can I check?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/BerkeleyAutomation/malasakit-v1/issues/176#issuecomment-360043144, or mute the thread https://github.com/notifications/unsubscribe-auth/ASBpWSnpriVb-xgXrRJ5wQrLwDdjKPlNks5tNtovgaJpZM4RqtsN .

MSimora commented 6 years ago

@JustinMi looking at this:

Referenced from: /Users/justinmi/GDrive/Cal/Work/Autolab/pcari/malasakit-v1/kaldi/egs/malsakit-digits/../../src/featbin/copy-feats Reason: image not found

Referenced from: /Users/justinmi/GDrive/Cal/Work/Autolab/pcari/malasakit-v1/kaldi/egs/malsakit-digits/../../src/featbin/compute-mfcc-feats Reason: image not found

It looks like you haven't compiled kaldi yet. Pls go to kaldi/tools then follow the instructions in INSTALL then go to kaldi/src then follow the instructions in INSTALL. Thank you.

On 24 January 2018 at 15:29, Michael Simora michaelsimora@gmail.com wrote:

@JustinMi

You can do: ls /kaldi/tools/openfst/bin if it has contents, you have compiled it.

On 24 January 2018 at 15:22, Justin Mi notifications@github.com wrote:

@MSimora https://github.com/msimora

  1. I run path.sh and recognize.sh in /kaldi/egs/malasakit-digits.
  2. I am not sure if I have compiled openfst. How can I check?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/BerkeleyAutomation/malasakit-v1/issues/176#issuecomment-360043144, or mute the thread https://github.com/notifications/unsubscribe-auth/ASBpWSnpriVb-xgXrRJ5wQrLwDdjKPlNks5tNtovgaJpZM4RqtsN .