Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when ending the dictation with DOTOOL as simulating input tool #111

Open
papoteur-mga opened this issue Jan 15, 2024 · 0 comments
Open

Comments

@papoteur-mga
Copy link

papoteur-mga commented Jan 15, 2024

Using dotool with nl model, I get this crash when sending the "end" command":

nerd-dictation begin --idle-time=0.1 --simulate-input-tool=DOTOOL --vosk-model-dir=/home/yves/.config/vosk-models/vosk-model-nl-spraakherkenning-0.6-lgraph --output=SIMULATE_INPUT --continuous
.unk/.unk/.unk/Traceback (most recent call last):
  File "/usr/bin/nerd-dictation", line 1974, in <module>
    main()
  File "/usr/bin/nerd-dictation", line 1970, in main
    args.func(args)
  File "/usr/bin/nerd-dictation", line 1835, in <lambda>
    func=lambda args: main_begin(
                      ^^^^^^^^^^^
  File "/usr/bin/nerd-dictation", line 1437, in main_begin
    found_any = text_from_vosk_pipe(
                ^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/nerd-dictation", line 1252, in text_from_vosk_pipe
    rec_handle_fn_wrapper_from_final_result()
  File "/usr/bin/nerd-dictation", line 1071, in rec_handle_fn_wrapper_from_final_result
    handle_fn_wrapper(text, False)
  File "/usr/bin/nerd-dictation", line 1042, in handle_fn_wrapper
    handle_fn(len(text_prev) - match, text_curr[match:])
  File "/usr/bin/nerd-dictation", line 248, in simulate_typing_with_dotool
    assert simulate_typing_with_dotool_proc is not None
AssertionError
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant