ideasman42 / nerd-dictation

Simple, hackable offline speech to text - using the VOSK-API.
GNU General Public License v3.0
1.3k stars 107 forks source link

Add support for ydotool, add page about configuring ydotool #57

Closed NathanLovato closed 2 years ago

NathanLovato commented 2 years ago

Following our email exchange, I wrote a little guide to set up ydotool. As nerd-dictation is meant to be relatively user-friendly, I went with a somewhat step-by-step style. There's a link from the readme to the new guide in the dependencies section.

This pull request adds a new command-line option to select between xdotool and ydotool to simulate typing: --input-program=ydotool

xdotool stays the default program.

Closes #45 This should help with #51 too, if not close it as well, as the problem seems to be due to a limitation in xdotool.

ideasman42 commented 2 years ago

Could you be able to rename --input-program=... to --simulate-input-tool=..., this fits with existing naming: --output=SIMULATE_INPUT. (as well as associated variable names)

NathanLovato commented 2 years ago

Done. Please let me know if you want any other changes. You're also welcome to make changes directly if you'd like; I'm not pretty about code.