Open nPrevail opened 1 year ago
It means that ydotool isn't running. Try calling the tool directly to see any issues
ydotool type --next-delay 5 -- the
I couldn't get that to work. However by putting in the following code (and the appropriate options) I got it to print continuously to the stdout, while applying the backspaces as well.
# -----------------------------------------------------------------------------
# Simulate Input: STDOUT
#
def simulate_typing_with_stout(delete_prev_chars: int, text: str) -> None:
cmd = "stdout"
# No setup/tear-down.
if delete_prev_chars == SIMULATE_INPUT_CODE_COMMAND:
return
if delete_prev_chars:
sys.stdout.write("\x08"*delete_prev_chars)
sys.stdout.write(text)
sys.stdout.flush()
Command to run:
nerd-dictation begin --timeout 5 --simulate-input-tool STDOUT
This problem has been SOLVED!
https://github.com/ideasman42/nerd-dictation/issues/72#issuecomment-1351741030
-- Original post:
Current specs: Fedora 37/GNOME 43.2 Wayland
I've followed the instructions, I have nerd-dictation directory in
~/home/USER/.config/nerd-dictation
I put the zip contents of the small VOSK model into
~/home/USER/.config/nerd-dictation/model
I installed YDOTOOL v1.0.3 via
sudo dnf in ydotool
I did the following to configure YDOTOOL: https://github.com/ideasman42/nerd-dictation/blob/master/readme-ydotool.rst and https://github.com/ReimuNotMoe/ydotool/issues/25#issuecomment-535842993
Rebooted the computer and ran
sudo ydotoold
From terminal, while in the
nerd-dictation
directory, I've ran:python3 nerd-dictation begin --simulate-input-tool=YDOTOOL
I would get the following output:
Any idea what I'm doing wrong?