Remove unused vocabulary and domain mode options
This commit is contained in:
parent
a6e75f9c16
commit
7af8750258
5 changed files with 34 additions and 93 deletions
39
README.md
39
README.md
|
|
@ -5,7 +5,7 @@ Python X11 STT daemon that records audio, runs Whisper, applies local AI cleanup
|
|||
|
||||
## Requirements
|
||||
|
||||
- X11 (Wayland support scaffolded but not available yet)
|
||||
- X11
|
||||
- `sounddevice` (PortAudio)
|
||||
- `faster-whisper`
|
||||
- `llama-cpp-python`
|
||||
|
|
@ -16,7 +16,7 @@ Python X11 STT daemon that records audio, runs Whisper, applies local AI cleanup
|
|||
System packages (example names): `portaudio`/`libportaudio2`.
|
||||
|
||||
<details>
|
||||
<summary>Ubuntu (X11)</summary>
|
||||
<summary>Ubuntu/Debian</summary>
|
||||
|
||||
```bash
|
||||
sudo apt install -y portaudio19-dev libportaudio2 python3-gi gir1.2-gtk-3.0 libayatana-appindicator3-1
|
||||
|
|
@ -25,16 +25,7 @@ sudo apt install -y portaudio19-dev libportaudio2 python3-gi gir1.2-gtk-3.0 liba
|
|||
</details>
|
||||
|
||||
<details>
|
||||
<summary>Debian (X11)</summary>
|
||||
|
||||
```bash
|
||||
sudo apt install -y portaudio19-dev libportaudio2 python3-gi gir1.2-gtk-3.0 libayatana-appindicator3-1
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>Arch Linux (X11)</summary>
|
||||
<summary>Arch Linux</summary>
|
||||
|
||||
```bash
|
||||
sudo pacman -S --needed portaudio gtk3 libayatana-appindicator
|
||||
|
|
@ -43,7 +34,7 @@ sudo pacman -S --needed portaudio gtk3 libayatana-appindicator
|
|||
</details>
|
||||
|
||||
<details>
|
||||
<summary>Fedora (X11)</summary>
|
||||
<summary>Fedora</summary>
|
||||
|
||||
```bash
|
||||
sudo dnf install -y portaudio portaudio-devel gtk3 libayatana-appindicator-gtk3
|
||||
|
|
@ -52,7 +43,7 @@ sudo dnf install -y portaudio portaudio-devel gtk3 libayatana-appindicator-gtk3
|
|||
</details>
|
||||
|
||||
<details>
|
||||
<summary>openSUSE (X11)</summary>
|
||||
<summary>openSUSE</summary>
|
||||
|
||||
```bash
|
||||
sudo zypper install -y portaudio portaudio-devel gtk3 libayatana-appindicator3-1
|
||||
|
|
@ -70,18 +61,6 @@ X11 (supported):
|
|||
uv sync --extra x11
|
||||
```
|
||||
|
||||
Wayland (scaffold only):
|
||||
|
||||
```bash
|
||||
uv sync --extra wayland
|
||||
```
|
||||
|
||||
Run:
|
||||
|
||||
```bash
|
||||
uv run python3 src/aman.py --config ~/.config/aman/config.json
|
||||
```
|
||||
|
||||
## Config
|
||||
|
||||
Create `~/.config/aman/config.json`:
|
||||
|
|
@ -100,11 +79,9 @@ Create `~/.config/aman/config.json`:
|
|||
{ "from": "Martha", "to": "Marta" },
|
||||
{ "from": "docker", "to": "Docker" }
|
||||
],
|
||||
"terms": ["Systemd", "Kubernetes"],
|
||||
"max_rules": 500,
|
||||
"max_terms": 500
|
||||
"terms": ["Systemd", "Kubernetes"]
|
||||
},
|
||||
"domain_inference": { "enabled": true, "mode": "auto" }
|
||||
"domain_inference": { "enabled": true }
|
||||
}
|
||||
```
|
||||
|
||||
|
|
@ -124,11 +101,9 @@ Vocabulary correction:
|
|||
- `vocabulary.terms` is a preferred spelling list used as hinting context.
|
||||
- Wildcards are intentionally rejected (`*`, `?`, `[`, `]`, `{`, `}`) to avoid ambiguous rules.
|
||||
- Rules are deduplicated case-insensitively; conflicting replacements are rejected.
|
||||
- Limits are bounded by `max_rules` and `max_terms`.
|
||||
|
||||
Domain inference:
|
||||
|
||||
- `domain_inference.mode` currently supports `auto`.
|
||||
- Domain context is advisory only and is used to improve cleanup prompts.
|
||||
- When confidence is low, it falls back to `general` context.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue