Skip to content

This is my custom scripts to use Whisper / OpenAI by keyboard shortcuts and voice input.

License

Notifications You must be signed in to change notification settings

samoylenkodmitry/Linux-AI-Assistant-scripts

Repository files navigation

Linux-AI-Assistant-scripts

These are my custom scripts used to interact with Whisper / OpenAI through keyboard shortcuts and voice input.

I am using ArchLinux and the xfce Keyboard settings for key bindings.

Listen to me

voice.sh is bound to F2 - it activates voice recording. Once stopped by the other script, it sends a wav file to whisper.cpp.

stop_voice.py is bound to F4 - it stops voice recording (uses Linux pipe).

voice_tr.sh is bound to F3 - it performs the same voice recording, but with a more capable model. It is used for translations.

This is how it works for me: voice

Answer to me

process_clipboard.sh is bound to F1 - it sends the currently selected text to the ChatGPT aichat project.

edit_clipboard.sh is bound to F5 - it opens an editable window with the current clipboard contents. After the window is closed, it sends the contents to process_clipboard.sh.

This is how it works: selected_text

notify_history.sh is used to read the notification history. It is bound to a shortcut in the system tray.

You will need to install

aichat - as mentioned previously

dunst, zenity - for notifications

whisper.cpp - for voice transcription

About

This is my custom scripts to use Whisper / OpenAI by keyboard shortcuts and voice input.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published