Update README.md
This commit is contained in:
@@ -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 @@
|
||||
|
||||
<details>
|
||||
<summary>Debian/Ubuntu/Rasberry Pi OS</summary>
|
||||
|
||||
|
||||
```
|
||||
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
|
||||
```
|
||||
<br><br>
|
||||
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
|
||||
```
|
||||
<br><br>
|
||||
📄 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"
|
||||
```
|
||||
<br><br>
|
||||
🧠 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, ...
|
||||
|
||||
<br><br>
|
||||
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
|
||||
```
|
||||
<br>
|
||||
<br>
|
||||
</details>
|
||||
|
||||
Reference in New Issue
Block a user