diff --git a/README.md b/README.md index 657fa0c..a271a03 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ sudo pacman -S --needed python python-virtualenv python-gobject gtk4 libadwaita gobject-introspection cairo pango glib2 xdg-utils noto-fonts-emoji ``` - + Enviroment ``` python -m venv venv source venv/bin/activate @@ -102,21 +102,78 @@
Debian/Ubuntu/Rasberry Pi OS + ``` - sudo apt update && sudo apt install -y python3 python3-venv python3-gi gir1.2-gtk-4.0 gir1.2-adw-1 libgtk-4-1 libadwaita-1-0 fonts-noto-color-emoji + sudo apt update && sudo apt install -y python3 python3-venv python3-gi gir1.2-gtk-4.0 gir1.2-adw-1 libgtk-4-1 libadwaita-1-0 xdg-utils fonts-noto-color-emoji ``` + + Enviroment + ``` + python3 -m venv venv + source venv/bin/activate + pip install -r requirements.txt + ``` +

+ Offline Voice Input for Linux + + πŸŽ™οΈ pw-record / arecord -> πŸ“„ WAV file -> 🧠 whisper-cli -> ✍ Text input + πŸŽ™οΈvoice record >pw-record ``` - sudo apt update && sudo apt install -y pipewire wireplumber pipewire-audio-client-libraries pipewire-pulse + sudo apt install -y pipewire wireplumber pipewire-pulse pipewire-audio-client-libraries ``` >arecord ``` sudo apt install -y alsa-utils ``` +

+ πŸ“„ Offline Speech to Text + + ``` + sudo apt install -y cmake make gcc + ``` + Packages Check + ``` + command -v pw-record || echo "pw-record not found" + command -v arecord || echo "arecord not found" + ``` +

+ 🧠 Install whisper.cpp (Offline Speech Recognition Engine) + + ``` + git clone https://github.com/ggml-org/whisper.cpp.git ~/whisper.cpp + cd ~/whisper.cpp + cmake -B build + cmake --build build -j --config Release + ``` + + >ls build/bin + #Should see these -> ... whisper-cli, main, whisper-server, ... + +

+ Download 'Tiny' Model + ``` + mkdir -p ~/.local/share/whisper + wget -O ~/.local/share/whisper/ggml-tiny.bin https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-tiny.bin + ``` + + Packages Check + ``` + ls -l ~/whisper.cpp/build/bin/whisper-cli + ls -lh ~/.local/share/whisper/ggml-tiny.bin + ``` + + Manual Test + ``` + ~/whisper.cpp/build/bin/whisper-cli \ + -m ~/.local/share/whisper/ggml-tiny.bin \ + -f /tmp/capture-ai-mic-20260228-205753.wav \ + -l tr + ```