Skip to content

Instantly share code, notes, and snippets.

@droundy
Created July 27, 2020 16:19
Show Gist options
  • Save droundy/5e1da5f7a67545d51184dd38a71e0c06 to your computer and use it in GitHub Desktop.
Save droundy/5e1da5f7a67545d51184dd38a71e0c06 to your computer and use it in GitHub Desktop.
error log from running dragonfly with kaldi
engine (INFO): Loading Kaldi-Active-Grammar v1.6.2 in process 67385.
engine (INFO): Kaldi options: {'model_dir': 'kaldi_model', 'tmp_dir': None, 'input_device_index': 9, 'audio_self_threaded': True, 'retain_dir': None, 'retain_audio': False, 'retain_metadata': False, 'retain_approval_func': None, 'vad_aggressiveness': 3, 'vad_padding_start_ms': 150, 'vad_padding_end_ms': 500, 'vad_complex_padding_end_ms': 500, 'auto_add_to_user_lexicon': True, 'lazy_compilation': True, 'invalidate_cache': False, 'expected_error_rate_threshold': None, 'alternative_dictation': None, 'cloud_dictation_lang': 'en-US', 'decoder_init_config': None}
kaldi.compiler (DEBUG): KaldiRule(-1, top): Skipped full compilation thanks to FileCache
engine (INFO): streaming audio from 'USB Live camera: Audio (hw:4,0)' using ALSA: 16000 sample_rate, 10 block_duration_ms, 40 latency_ms
engine (INFO): Loading grammar sleep
kaldi.compiler (DEBUG): KaldiCompiler(): Compiling grammar sleep.
kaldi.compiler (DEBUG): KaldiCompiler(): Compiling rule SleepRule [EXPORTED].
kaldi.compiler (DEBUG): KaldiRule(0, sleep::SleepRule): Skipped full compilation thanks to FileCache
kaldi.compiler (DEBUG): KaldiCompiler(): Compiling rule sleep_noise_rule [EXPORTED].
kaldi.compiler (DEBUG): KaldiRule(1, sleep::sleep_noise_rule): Skipped full compilation thanks to FileCache
engine (INFO): Loading grammar noise
kaldi.compiler (DEBUG): KaldiCompiler(): Compiling grammar noise.
kaldi.compiler (DEBUG): KaldiCompiler(): Compiling rule noise [EXPORTED].
kaldi.compiler (DEBUG): KaldiRule(2, noise::noise): Skipped full compilation thanks to FileCache
module (INFO): CommandModule('__init__.py'): Loading module: '/home/droundy/src/breathe_skeleton/__init__.py'
module (INFO): CommandModule('_main.py'): Loading module: '/home/droundy/src/breathe_skeleton/_main.py'
engine (INFO): Loading grammar Merger
kaldi.compiler (DEBUG): KaldiCompiler(): Compiling grammar Merger.
kaldi.compiler (DEBUG): KaldiCompiler(): Compiling rule _anonrule_000_ContextSwitcher [EXPORTED].
kaldi.compiler (DEBUG): KaldiCompiler(): Compiling rule rebuilder [EXPORTED].
kaldi.compiler (DEBUG): KaldiRule(4, Merger::rebuilder): Skipped full compilation thanks to FileCache
kaldi.compiler (DEBUG): KaldiCompiler(): Compiling rule _anonrule_000_ContextSwitcher [EXPORTED].
kaldi.compiler (DEBUG): KaldiCompiler(): Compiling rule _anonrule_000_ContextSwitcher [EXPORTED].
kaldi.compiler (DEBUG): KaldiCompiler(): Compiling rule _anonrule_000_ContextSwitcher [EXPORTED].
kaldi.compiler (DEBUG): KaldiCompiler(): Compiling rule _anonrule_000_ContextSwitcher [EXPORTED].
kaldi.compiler (DEBUG): KaldiCompiler(): Compiling rule _anonrule_000_ContextSwitcher [EXPORTED].
kaldi.compiler (DEBUG): KaldiCompiler(): Compiling rule _anonrule_000_ContextSwitcher [EXPORTED].
kaldi.compiler (DEBUG): KaldiCompiler(): Compiling rule _anonrule_000_ContextSwitcher [EXPORTED].
kaldi.compiler (DEBUG): KaldiCompiler(): Compiling rule _anonrule_000_ContextSwitcher [EXPORTED].
kaldi.compiler (DEBUG): KaldiCompiler(): Compiling rule _anonrule_000_ContextSwitcher [EXPORTED].
kaldi.compiler (DEBUG): KaldiCompiler(): Compiling rule _anonrule_000_ContextSwitcher [EXPORTED].
kaldi.compiler (DEBUG): KaldiCompiler(): Compiling rule _anonrule_000_ContextSwitcher [EXPORTED].
kaldi.compiler (DEBUG): KaldiCompiler(): Compiling rule _anonrule_000_ContextSwitcher [EXPORTED].
kaldi.compiler (DEBUG): KaldiCompiler(): Compiling rule _anonrule_000_ContextSwitcher [EXPORTED].
kaldi.compiler (DEBUG): KaldiRule(3, Merger::_anonrule_000_ContextSwitcher): Skipped full compilation thanks to FileCache
engine (INFO): Listening...
engine (INFO): Loading grammar SG2
kaldi.compiler (DEBUG): KaldiCompiler(): Compiling grammar SG2.
kaldi.compiler (DEBUG): KaldiCompiler(): Compiling rule Repeater1 [EXPORTED].
kaldi.compiler (DEBUG): KaldiCompiler(): Compiling rule _IntegerRef_16.
kaldi.compiler (DEBUG): KaldiCompiler(): Compiling rule _IntegerRef_16.
kaldi.compiler (DEBUG): KaldiCompiler(): Compiling rule _IntegerRef_16.
kaldi.compiler (DEBUG): KaldiRule(5, SG2::Repeater1): Skipped full compilation thanks to FileCache
kaldi.compiler (DEBUG): KaldiCompiler(): Compiling rule CommandsRef3 [EXPORTED].
kaldi.compiler (DEBUG): KaldiRule(6, SG2::CommandsRef3): Compiling 4state/2arc/64byte fst.txt file to 165c0c93589069547b50df71a9d25adf49375d35.fst
/home/droundy/.local/lib/python3.8/site-packages/kaldi_active_grammar/exec/linux/compile-graph-agf --arcsort-grammar --grammar-prepend-nonterm=999995 --grammar-append-nonterm=999996 --nonterm-phones-offset=993 --read-disambig-syms=kaldi_model/disambig.int --disambiguate-lg=true --verbose=5 kaldi_model/tree kaldi_model/final.mdl kaldi_model/L_disambig.fst - kaldi_model.tmp/165c0c93589069547b50df71a9d25adf49375d35.fst
VLOG[1] (compile-graph-agf[5.5.0~1-be68]:main():compile-graph-agf.cc:109) Preparing G...
VLOG[1] (compile-graph-agf[5.5.0~1-be68]:main():compile-graph-agf.cc:186) Composing LG...
VLOG[1] (compile-graph-agf[5.5.0~1-be68]:main():compile-graph-agf.cc:202) Disambiguating LG fst...
VLOG[1] (compile-graph-agf[5.5.0~1-be68]:main():compile-graph-agf.cc:208) Determinizing LG fst...
VLOG[1] (compile-graph-agf[5.5.0~1-be68]:main():compile-graph-agf.cc:211) Preparing LG fst...
VLOG[1] (compile-graph-agf[5.5.0~1-be68]:main():compile-graph-agf.cc:226) Composing CLG fst...
WARNING (compile-graph-agf[5.5.0~1-be68]:InverseLeftBiphoneContextFst():grammar-context-fst.cc:68) Context FST created but there are no phone symbols: probably input FST was empty.
VLOG[1] (compile-graph-agf[5.5.0~1-be68]:main():compile-graph-agf.cc:242) Constructing H fst...
VLOG[1] (compile-graph-agf[5.5.0~1-be68]:main():compile-graph-agf.cc:254) Composing HCLG fst...
ASSERTION_FAILED (compile-graph-agf[5.5.0~1-be68]:main():compile-graph-agf.cc:260) Assertion failed: (hclg_fst.Start() != fst::kNoStateId)
[ Stack-Trace: ]
/home/droundy/.local/lib/python3.8/site-packages/kaldi_active_grammar/exec/linux/../../../kaldi_active_grammar.libs/libkaldi-base-a42e2331.so(kaldi::MessageLogger::LogMessage() const+0x758) [0x7f20ea0a6928]
/home/droundy/.local/lib/python3.8/site-packages/kaldi_active_grammar/exec/linux/../../../kaldi_active_grammar.libs/libkaldi-base-a42e2331.so(kaldi::KaldiAssertFailure_(char const*, char const*, int, char const*)+0x59) [0x7f20ea0a7179]
/home/droundy/.local/lib/python3.8/site-packages/kaldi_active_grammar/exec/linux/compile-graph-agf(main+0x1da3) [0x49aa73]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xea) [0x7f20e97c0cca]
/home/droundy/.local/lib/python3.8/site-packages/kaldi_active_grammar/exec/linux/compile-graph-agf() [0x49add9]
Kaldi-Active-Grammar v1.6.2:
If this free, open source engine is valuable to you, please consider donating
https://github.com/daanzu/kaldi-active-grammar
Disable message by calling `kaldi_active_grammar.disable_donation_message()`
Awake...
Loading module my_commands.apps.emacs
Loading module my_commands.apps.codium
Loading module my_commands.apps.terminal
Loading module my_commands.apps.atom
Loading module my_commands.apps.firefox
Loading module my_commands.apps.chrome
Loading module my_commands.apps.gmail
Loading module my_commands.apps.gradescope
Loading module my_commands.core.keys
Loading module my_commands.core.kde
Loading module my_commands.languages.rust
Loading module my_commands.languages.python
Loading module my_commands.languages.latex
Listening...
Traceback (most recent call last):
File "kaldi_module_loader_plus.py", line 181, in <module>
main()
File "kaldi_module_loader_plus.py", line 175, in main
engine.do_recognition()
File "/home/droundy/.local/lib/python3.8/site-packages/dragonfly/engines/base/engine.py", line 260, in do_recognition
self._do_recognition(*args, **kwargs)
File "/home/droundy/.local/lib/python3.8/site-packages/dragonfly/engines/backend_kaldi/engine.py", line 338, in _do_recognition
kaldi_rules_activity = self._compute_kaldi_rules_activity()
File "/home/droundy/.local/lib/python3.8/site-packages/dragonfly/engines/backend_kaldi/engine.py", line 458, in _compute_kaldi_rules_activity
self.prepare_for_recognition()
File "/home/droundy/.local/lib/python3.8/site-packages/dragonfly/engines/backend_kaldi/engine.py", line 294, in prepare_for_recognition
self._compiler.prepare_for_recognition()
File "/home/droundy/.local/lib/python3.8/site-packages/kaldi_active_grammar/compiler.py", line 449, in prepare_for_recognition
self.process_compile_and_load_queues()
File "/home/droundy/.local/lib/python3.8/site-packages/kaldi_active_grammar/compiler.py", line 424, in process_compile_and_load_queues
for kaldi_rule in results:
File "/usr/lib/python3.8/concurrent/futures/_base.py", line 611, in result_iterator
yield fs.pop().result()
File "/usr/lib/python3.8/concurrent/futures/_base.py", line 439, in result
return self.__get_result()
File "/usr/lib/python3.8/concurrent/futures/_base.py", line 388, in __get_result
raise self._exception
File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/home/droundy/.local/lib/python3.8/site-packages/kaldi_active_grammar/compiler.py", line 418, in <lambda>
results = executor.map(lambda kaldi_rule: kaldi_rule.finish_compile(), self.compile_queue)
File "/home/droundy/.local/lib/python3.8/site-packages/kaldi_active_grammar/compiler.py", line 103, in finish_compile
self.compiler._compile_agf_graph(compile=True, nonterm=self.nonterm, input_data=self._fst_text, filename=self.filepath)
File "/home/droundy/.local/lib/python3.8/site-packages/kaldi_active_grammar/compiler.py", line 288, in _compile_agf_graph
compile_command()
File "/home/droundy/.local/lib/python3.8/site-packages/ush.py", line 585, in __call__
return wait(procs, raise_on_error)
File "/home/droundy/.local/lib/python3.8/site-packages/ush.py", line 189, in wait
result = tuple(iterate_outputs(procs, raise_on_error, status_codes))
File "/home/droundy/.local/lib/python3.8/site-packages/ush.py", line 221, in iterate_outputs
raise ProcessError(process_info)
ush.ProcessError: One or more commands failed: [(['/home/droundy/.local/lib/python3.8/site-packages/kaldi_active_grammar/exec/linux/fstcompile', '--isymbols=kaldi_model/words.txt', '--osymbols=kaldi_model/words.txt'], 67921, 0), (['/home/droundy/.local/lib/python3.8/site-packages/kaldi_active_grammar/exec/linux/compile-graph-agf', '--arcsort-grammar', '--grammar-prepend-nonterm=999995', '--grammar-append-nonterm=999996', '--nonterm-phones-offset=993', '--read-disambig-syms=kaldi_model/disambig.int', '--disambiguate-lg=true', '--verbose=5', 'kaldi_model/tree', 'kaldi_model/final.mdl', 'kaldi_model/L_disambig.fst', '-', 'kaldi_model.tmp/165c0c93589069547b50df71a9d25adf49375d35.fst'], 67922, -6)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment