Open ileben opened 3 years ago
Reposting some advice from chat. You might try audio_self_threaded=False
you can modify the bat python -m dragonfly load-directory . --engine kaldi --engine-options "model_dir=kaldi_model, vad_padding_end_ms=300, audio_self_threaded=False"
List of kaldi engine parameters for configuration.
audio_self_threaded=False
did not resolve the issue.
I have tried Python 3.8 with the latest version of sounddevice, still getting the same crash.
Here is my solution - I've also posted this in https://github.com/spatialaudio/python-sounddevice/issues/233
It seems that somewhere along the stack at least one of the libraries involved should ask for (or if not possible at least check for) microphone permissions and provide the user with a better error message and guidance for what to do.
System info: OS Name Microsoft Windows 10 Enterprise Version 10.0.18363 Build 18363
Issue also submitted to sounddevice https://github.com/spatialaudio/python-sounddevice/issues/293
@ileben Thanks for figuring this out and posting the solution! I will at least add a warning suggesting to check this upon error.
I'm getting the error below on startup when running Caster with Kaldi backend. I've tried kaldi-active-grammar versions 1.8.0 and 1.8.1, as well as both the latest medium and big models (kaldi_model_daanzu_20200905_1ep-mediumlm, kaldi_model_daanzu_20200905_1ep-biglm). I'm on an enterprise Dell workstation with builtin Realtek audio. I've tried a cheap USB headset as well as the Scarlett 2i2 audio interface. The crash happens in all configurations.