/Linux-AI-Assistant-scripts

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

Primary LanguagePythonApache License 2.0Apache-2.0

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