abb128 / LiveCaptions

Linux Desktop application that provides live captioning
GNU General Public License v3.0
1.27k stars 32 forks source link

Keyboard Output #19

Open user82622 opened 1 year ago

user82622 commented 1 year ago

I would love to use this as a virtual keyboard input. Like this i can use my favorite text editor to immediately transcribe in a quick way.

abb128 commented 1 year ago

Unfortunately there's no consistent way to emulate keyboard typing that works on both Wayland and X11, other than using an approach involving /dev/uinput similar to ydotool, which would require root access (not sure if that can even work with Flatpak). It appears there will eventually be a proper way to do this using libei but it's not yet merged into GNOME and I'm not sure about KDE. Maybe once it's merged and released I will look at implementing this feature.

ehula commented 3 months ago

Is there any update regarding generic Linux input? I am loving FUTO keyboard on my Android phone, and dream about being able to input text on my Linux system in a similar fashion.

What I would love is to be able to invoke a speech-to-text app with a keyboard shortcut in any app waiting for text input, to speak the text input I desire, then to hit another keyboard shortcut to then paste the text into my current app.

Is this possible?

I also would prefer it not to be GNOME or KDE. I don't run either. I use hyprland and would prefer a solution that simply runs in the background, and sends output to my current app. I can set my own keybinds with hyprland.