mkiol / dsnote

Speech Note Linux app. Note taking, reading and translating with offline Speech to Text, Text to Speech and Machine translation.
Mozilla Public License 2.0
404 stars 19 forks source link

Start listening, text to active window not working #134

Open 31337-4554551n opened 2 months ago

31337-4554551n commented 2 months ago

When enabling accesibility, use of global keyboard shortcuts, start listening, text to active window doesn't paste the text.

It starts listening, then when it stops the spoken text doesn't appear anywhere.

[edit] If the chosen window is a flatpak app, it works, fine. but not if it's trying to input into a deb installed software

Speechnote 4.4.0 flatpak OS: Pop!_OS 22.04 LTS x86_64 DE: GNOME 42.9 GPU: AMD ATI 76:00.0 Rembrandt GPU: AMD ATI Radeon RX 6700/6700 XT Window system X11

mkiol commented 2 months ago

Thanks for reporting.

Yes, it's a common problem. From my observation it is not related to flapak/not-flatpak, but rather it just works perfectly for some apps and does not for other. I still didn't figure out what is root cause...

This feature uses "fake" X11 key strokes events to send text to external window. For some reasons, this method doesn't work always.

31337-4554551n commented 2 months ago

Interesting, because for me it works on every flatpak app, and none of the non flatpak apps. Interesting coincidence if that's not the commonality.

mkiol commented 2 months ago

I need to make more tests. Maybe this "flatpak" is the right lead...

31337-4554551n commented 2 months ago

Thank you, I really appreciate all the amazing work you're doing