Comments (8)
I downloaded Ydotool with :
sudo dnf install ydotool
from nerd-dictation.
This is what I get on the terminal :
failed to connect socket: No such file or directory Traceback (most recent call last): File "/home/creative/.config/nerd-dictation/nerd-dictation", line 1574, in <module> main() File "/home/creative/.config/nerd-dictation/nerd-dictation", line 1570, in main args.func(args) File "/home/creative/.config/nerd-dictation/nerd-dictation", line 1492, in <lambda> func=lambda args: main_begin( ^^^^^^^^^^^ File "/home/creative/.config/nerd-dictation/nerd-dictation", line 1203, in main_begin found_any = text_from_vosk_pipe( ^^^^^^^^^^^^^^^^^^^^ File "/home/creative/.config/nerd-dictation/nerd-dictation", line 1006, in text_from_vosk_pipe handle_fn_wrapper(text, True) File "/home/creative/.config/nerd-dictation/nerd-dictation", line 943, in handle_fn_wrapper handle_fn(len(text_prev) - match, text_curr[match:]) File "/home/creative/.config/nerd-dictation/nerd-dictation", line 197, in simulate_typing_with_ydotool run_command_or_exit_on_failure( File "/home/creative/.config/nerd-dictation/nerd-dictation", line 50, in run_command_or_exit_on_failure subprocess.check_output(cmd) File "/usr/lib64/python3.11/subprocess.py", line 465, in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/subprocess.py", line 569, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['ydotool', 'type', '--next-delay', '5', '--', 'bonjour']' died with <Signals.SIGABRT: 6>. write() failed: Broken pipe
from nerd-dictation.
Hi ElSamiru,
try this three commands:
sudo chmod u+s /usr/bin/ydotool
ydotoold &
./nerd-dictation begin --simulate-input-tool=YDOTOOL --vosk-model-dir=./model &
It worked for me.
from nerd-dictation.
Hey @Tom-Obvious thanks for the reply but it still not working on fedora 37, I install ydotool with sudo dnf install ydotool
and then typed your command but I still have no permission.
Do you have a workarround from start to finish on how to setup ?
from nerd-dictation.
Ah, I have this issue as well... I just posted an issue a minute ago too.
from nerd-dictation.
sudo chmod u+s /usr/bin/ydotool
ydotoold &
./nerd-dictation begin --simulate-input-tool=YDOTOOL --vosk-model-dir=./model &
This worked for me too!
from nerd-dictation.
How do you implement these commands so that they are always on and permanent when you boot:
sudo chmod u+s /usr/bin/ydotool
ydotoold &
It seems I have to keep running the two previous commands after I reboot and when I want to run:
./nerd-dictation begin --simulate-input-tool=YDOTOOL --vosk-model-dir=./model &
from nerd-dictation.
I'm not sure what the issue is with ydotool, but you might have more success with the newish dotool support. dotool doesn't require a daemon so it's a bit simpler.
from nerd-dictation.
Related Issues (20)
- Connection refused HOT 1
- Windows support HOT 1
- --output STDOUT only sends output after dictation ends HOT 3
- Issue with alias function name "ndbegin".
- Crash when ending the dictation with DOTOOL as simulating input tool
- on wayland this tool wont work as xdotool is for x11 which this program requires please implement different automation implementation for wayland HOT 3
- permission denied
- Feature: executable bundled with xdotool and pulseaudio (for parec)
- Processing time with larger models
- Bad xdotool performance
- Current status (activated, suspended, etc.) HOT 3
- Push to talk: How to Configure?
- can't find '__main__' module HOT 3
- pipx installed vosk not recognized by nerd-dictation, nor installable using pipx!? HOT 4
- /examples/vosk_grammar/ - browser prints "[B" for "down" instead of simulating arrow-down
- Can't get startstop AND punctuation example working at the same time
- Undo last sentence (when dication goes wrong) HOT 1
- Japanese models always produces spaces in the output
- Pip instructions are incorrect HOT 6
- ydotoold could not be started after the installation on Ubuntu 22.04: Here's the fix:
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nerd-dictation.