Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop listening global keyboard shortcut doesn't work #103

Open
danboid opened this issue Feb 22, 2024 · 8 comments
Open

Stop listening global keyboard shortcut doesn't work #103

danboid opened this issue Feb 22, 2024 · 8 comments
Labels
bug Something isn't working

Comments

@danboid
Copy link

danboid commented Feb 22, 2024

I'm running SN under Debian Trixie (testing) using the MATE desktop.

The start listening, text to active window global keyboard shortcut works fine but the stop listening keyboard shortcut ( Ctrl+Alt+Shift+S ) only works for me if I have the SN window in focus.

@mkiol
Copy link
Owner

mkiol commented Feb 22, 2024

Just want to make sure, your MATE desktop is under X11?

Maybe there is a collision between "Ctrl+Alt+Shift+S" and other global shortcut. Would you be able to change it to different key combination and re-test?

@danboid
Copy link
Author

danboid commented Feb 22, 2024

Yes, I'm using X11.

I've tried assigning a few different key combos for stop listening now and in all cases they work if I have the SN window open and in focus but don't work otherwise.

@mkiol
Copy link
Owner

mkiol commented Feb 25, 2024

I've installed Debian 13 with MATE to make tests on fresh system. My observations:

  • Ctrl+Alt+Shift+S seems to work fine. I didn't observe any problems. Maybe in your system, there is an app that "steals" this key combination? That is weird 🤔
  • As you already reported, inserting to active window doesn't work for Libreoffice. Sadly, it doesn't work many other apps as well. This is a major issue. I have no idea why some apps are affected and others are not. Maybe GTK version? This needs deeper investigation.
  • For some reason desktop notifications are broken. By default, when SN isn't in focus, desktop notification is shown with "Say something..." or "Processing...". On MATE it doesn't work. No idea why.

As you can see, "keyboard shortcuts" and "inserting to active window" are half baked features. Definitely not tested enough and most likely full of bugs. This is the main reason why I don't want to advertise them right now in the README :)

@danboid
Copy link
Author

danboid commented Feb 25, 2024

No idea about Ctrl+Alt+Shift+S. As said, I tried changing it to at least 3 other keys (Ctrl+Alt+Shift and something) and non of them worked for me. I doubt any app was stealing all 3/4 key combos as I tried punctuation as well as alphanumerics.

@mkiol mkiol added the bug Something isn't working label Mar 2, 2024
@jayma777
Copy link

Ran into the same issue. Seems to be app dependent.
For troubleshooting I switched out the shortcuts for Start and Stop listening, the behavior stayed with the "Stop Listening", rather than moving with the shortcut.

  • In LibreOffice, I get no STT at all, even when manually choosing the "text to active window".
  • In the terminal, (vim, cli, etc..) I can start the STT with keyboard shortcut, but the "stop listening" keyboard shortcut doesn't work.
  • In GUI text editor,(kate) both shortcuts work as expected.
  • In Discord, both work as expected.
  • I think whatever application is grabbing the Global Shortcut Keys, and is preventing the shutoff.

Got no clue what Libre Office's problem is.

@mkiol
Copy link
Owner

mkiol commented Mar 25, 2024

@jayma777 Thanks for reporting your observations. It is helpful. This feature only partially works and right now I have no idea why.

@danboid
Copy link
Author

danboid commented Mar 25, 2024

@mkiol have you ever heard of "butler in a box"?

It was a voice controlled home automation system from 1983. Ahead of its time or what?

https://www.youtube.com/watch?v=Ra9ov-ud_Q0

@mkiol
Copy link
Owner

mkiol commented Mar 25, 2024

"butler in a box"?

What a amazing tech :) Very funny video. Thank you for sharing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants