Open Josef-Ouano opened 1 year ago
Hello! I've got the same issue on Wayland!
./nerd-dictation begin --simulate-input-tool=YDOTOOL --vosk-model-dir=./model
ydotool: notice: ydotoold backend unavailable (may have latency+delay issues)
terminate called after throwing an instance of 'std::runtime_error'
what(): failed to open uinput device
Traceback (most recent call last):
File "/home/salim/.config/nerd-dictation/./nerd-dictation", line 1974, in
I asked chatgpt 4 about the issue and here it's reply:
My Question: act as an linux expert, and give tell me why nerd-dictation doesn't work in wayland ubutnu even if I use it with ydotool?
ChatGPT's answer:
EDIT: REMOVED ChatGPT generated misinformation. ~ideasman42
@sal-zen ChatGPT's answer was obviously wrong with minimal research. ydotool
doesn't depend on X11.
@ideasman42 : Thanks for your clarification. Do you have any general hypothesis on why I got the error? I can further explore them and share what I'll find here to solve the problem. Thank you for your collab.
@sal-zen can you get ydotool
to work in the command line? If so, it shouldn't be a problem to run it from nerd-dictation
.
In general try to troubleshoot issues with input simulation outside nerd-dication
.
@ideasman42 I was able to spot the error and now it works fine for me. I needed to to do these:
Now it works fine for me! Thank you @ideasman42 for you reactivity and your willingness to help. I appreciate it :)
Hello, I am trying to run nerd-dictation on a Wayland machine. But I keep getting this error:
I assume vosk is working properly, but its when it comes to ydotool that the error occurs. The Command I used is the ff: ./nerd-dictation begin --simulate-input-tool=YDOTOOL --vosk-model-dir=./lib/language_models/model_en
I've cloned ydotool from the link: https://github.com/ReimuNotMoe/ydotool
I have no idea why this happens, I've never been able to make it work