dsnote icon indicating copy to clipboard operation
dsnote copied to clipboard

[Feature Suggestion] System Integration

Open athyfr opened this issue 1 year ago • 5 comments

SpeechNote is amazing, but it's inconvenient to have to copy and paste text into it to the app to use.

I propose that it integrates into the system, replacing/complementing existing system tts. This will allow it to integrate with Firefox, along with many other things.

On Linux, many programs use speechd. Some info for integration with speechd can be found here.

While this integration may be a little difficult to implement (and may require root privileges), it would significantly increase the utility of Speech Note.

athyfr avatar Nov 14 '24 22:11 athyfr

Hi. Thanks for the suggestion.

This is very good idea. This kind of integration has been already requested in https://github.com/mkiol/dsnote/issues/104. I put it in a very deep bag of features to implement.

BTW, Did you have a chance to try Pied? If you just looking for natural sounding TTS in speech-dispatcher, Pied will give you all Piper voices. It works very well, especially with Firefox.

mkiol avatar Nov 17 '24 16:11 mkiol

Alright, thanks for the info!

Looking forward to the future of this project!

athyfr avatar Nov 18 '24 15:11 athyfr

I'd love to see some sort of input method integration into KDE, as requested here. Or something like pressing a global hotkey, dictating, and having the text be input as from a virtual keyboard, or at least shown in a pop-up and stored in the clipboard.

dandv avatar Feb 25 '25 13:02 dandv

pressing a global hotkey, dictating, and having the text be input as from a virtual keyboard, or at least shown in a pop-up and stored in the clipboard.

Most of this is already implemented. There are several functions that support this use case:

  • Global keyboard shortcuts
    • works well on X11
    • Wayland is supported in version 4.8.0 Beta (but right now works only on KDE Plasma)
  • Actions
    • You can invoke an "action" when Speech Note is already running (e.g. in the background) using command line options
    • e.g. flatpak run net.mkiol.SpeechNote --action start-listening-clipboard.
    • use --help to see all supported actions
  • Insert into the active window
    • Use a global shortcut or action to start listening, and the decoded text will be automatically inserted into any active window when the cursor is focused.
    • It works on X11. Wayland is supported in version 4.8.0 beta.
  • Insert to clipboard
    • Use a global shortcut or action to start listening, and the decoded text will be automatically saved to the system clipboard.
    • It works well on X11. On Wayland, the application can't access the clipboard when it's in the background, so it's broken.
  • System tray icon
    • You can enable the system try icon and close the application. It will be hidden, but will accept global shortcuts or actions.
    • The tray icon indicated the status (busy, listening, processing...) with an animated icon.

mkiol avatar Mar 05 '25 17:03 mkiol

Hi @mkiol any update on when the 4.8 version will be available ? I'm looking forward to be able to use Note Speech in focused window like @athyfr is asking about. It would be great to have a quick tutorial/doc/article we can follow to have the feature working then, thanks a lot.

bitsByB avatar May 15 '25 16:05 bitsByB