jwebmeister / tacspeak

Tacspeak - Fast, lightweight, modular speech recognition for gaming
GNU Affero General Public License v3.0
42 stars 2 forks source link

Tacspeak.exe Closes Immediately After Running #1

Closed SearisIQ closed 6 months ago

SearisIQ commented 6 months ago

Issue Description: When attempting to run tacspeak.exe, the command prompt window opens, displays some messages, but then immediately closes without any user interaction. This behavior occurs regardless of whether the application is run with administrator permissions.

Steps to Reproduce:

Run tacspeak.exe by double-clicking on the executable. Observe the command prompt window opening. Note that messages are displayed on the command prompt. The command prompt window closes abruptly without any user input. Expected Behavior: Tacspeak should launch successfully, and the command prompt window should remain open to allow users to interact with the application.

Environment:

Operating System: [Windows 11, 64-bit] Permissions: [Administrator] Additional Information:

The issue persists even with administrator permissions. Tried running the application from the command prompt to capture error messages, but the window closes too quickly. No specific error messages or warnings are visible.

Logs (.tacspeak.log):

2023-12-14 21:41:19,675 engine (INFO): Initialized 'kaldi' SR engine: KaldiEngine().
2023-12-14 21:41:19,675 engine (INFO): Loading Kaldi-Active-Grammar v3.1.0 in process 20024.
2023-12-14 21:41:19,676 engine (INFO): Kaldi options: {'model_dir': None, 'tmp_dir': None, 'audio_input_device': None, 'audio_self_threaded': True, 'audio_auto_reconnect': True, 'audio_reconnect_callback': None, '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': 250, 'vad_complex_padding_end_ms': 600, 'auto_add_to_user_lexicon': False, 'allow_online_pronunciations': False, 'lazy_compilation': True, 'invalidate_cache': False, 'expected_error_rate_threshold': None, 'alternative_dictation': None, 'compiler_init_config': {}, 'decoder_init_config': {}, 'listen_key': 135, 'listen_key_toggle': -1}
2023-12-14 21:41:19,677 kaldi.model (WARNING): <kaldi_active_grammar.model.Model object at 0x000001E466050C10>: creating tmp dir: 'kaldi_model\\cache.tmp\\'
2023-12-14 21:41:19,699 kaldi.model (WARNING): model_dir has no version information; errors below may indicate an incompatible model
2023-12-14 21:47:01,743 engine (INFO): Initialized 'kaldi' SR engine: KaldiEngine().
2023-12-14 21:47:01,743 engine (INFO): Loading Kaldi-Active-Grammar v3.1.0 in process 13764.
2023-12-14 21:47:01,743 engine (INFO): Kaldi options: {'model_dir': None, 'tmp_dir': None, 'audio_input_device': None, 'audio_self_threaded': True, 'audio_auto_reconnect': True, 'audio_reconnect_callback': None, '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': 250, 'vad_complex_padding_end_ms': 600, 'auto_add_to_user_lexicon': False, 'allow_online_pronunciations': False, 'lazy_compilation': True, 'invalidate_cache': False, 'expected_error_rate_threshold': None, 'alternative_dictation': None, 'compiler_init_config': {}, 'decoder_init_config': {}, 'listen_key': 135, 'listen_key_toggle': -1}
2023-12-14 21:47:01,744 kaldi.model (WARNING): model_dir has no version information; errors below may indicate an incompatible model
2023-12-14 21:52:46,424 engine (INFO): Initialized 'kaldi' SR engine: KaldiEngine().
2023-12-14 21:52:46,425 engine (INFO): Loading Kaldi-Active-Grammar v3.1.0 in process 9648.
2023-12-14 21:52:46,425 engine (INFO): Kaldi options: {'model_dir': None, 'tmp_dir': None, 'audio_input_device': None, 'audio_self_threaded': True, 'audio_auto_reconnect': True, 'audio_reconnect_callback': None, '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': 250, 'vad_complex_padding_end_ms': 600, 'auto_add_to_user_lexicon': False, 'allow_online_pronunciations': False, 'lazy_compilation': True, 'invalidate_cache': False, 'expected_error_rate_threshold': None, 'alternative_dictation': None, 'compiler_init_config': {}, 'decoder_init_config': {}, 'listen_key': 135, 'listen_key_toggle': -1}
2023-12-14 21:52:46,425 kaldi.model (WARNING): model_dir has no version information; errors below may indicate an incompatible model
2023-12-14 22:00:45,442 engine (INFO): Initialized 'kaldi' SR engine: KaldiEngine().
2023-12-14 22:00:45,442 engine (INFO): Loading Kaldi-Active-Grammar v3.1.0 in process 10788.
2023-12-14 22:00:45,442 engine (INFO): Kaldi options: {'model_dir': None, 'tmp_dir': None, 'audio_input_device': None, 'audio_self_threaded': True, 'audio_auto_reconnect': True, 'audio_reconnect_callback': None, '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': 250, 'vad_complex_padding_end_ms': 600, 'auto_add_to_user_lexicon': False, 'allow_online_pronunciations': False, 'lazy_compilation': True, 'invalidate_cache': False, 'expected_error_rate_threshold': None, 'alternative_dictation': None, 'compiler_init_config': {}, 'decoder_init_config': {}, 'listen_key': 135, 'listen_key_toggle': -1}
2023-12-14 22:00:45,444 kaldi.model (WARNING): model_dir has no version information; errors below may indicate an incompatible model
2023-12-14 22:27:56,425 engine (INFO): Initialized 'kaldi' SR engine: KaldiEngine().
2023-12-14 22:27:56,427 engine (INFO): Loading Kaldi-Active-Grammar v3.1.0 in process 8648.
2023-12-14 22:27:56,427 engine (INFO): Kaldi options: {'model_dir': None, 'tmp_dir': None, 'audio_input_device': None, 'audio_self_threaded': True, 'audio_auto_reconnect': True, 'audio_reconnect_callback': None, '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': 250, 'vad_complex_padding_end_ms': 600, 'auto_add_to_user_lexicon': False, 'allow_online_pronunciations': False, 'lazy_compilation': True, 'invalidate_cache': False, 'expected_error_rate_threshold': None, 'alternative_dictation': None, 'compiler_init_config': {}, 'decoder_init_config': {}, 'listen_key': 135, 'listen_key_toggle': -1}
2023-12-14 22:27:56,428 kaldi.model (WARNING): model_dir has no version information; errors below may indicate an incompatible model

Potential Solutions Attempted:

Running as Administrator. Checking for error messages in the command prompt. Verifying the installation dependencies, including Microsoft Visual C++ Redistributable. Attempting to run in compatibility mode.

jwebmeister commented 6 months ago

Thank you for adding the log, it makes it a lot easier to troubleshoot! Errors in the log are complaining about "an incompatible model", but it's because you don't have a model installed!

Download kaldi_model_daanzu_20211030-mediumlm.zip from the release, extract it into the folder you have "tacspeak.exe" in, such that there should be a file "kaldi_model/Dictation.fst" after extraction. Let me know how you go.

SearisIQ commented 6 months ago

I could've sworn I did that, but you were right that was the problem, thank you!