dictation4me 0.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- dictation4me-0.3.0/LICENSE +21 -0
- dictation4me-0.3.0/PKG-INFO +171 -0
- dictation4me-0.3.0/README.md +138 -0
- dictation4me-0.3.0/pyproject.toml +64 -0
- dictation4me-0.3.0/setup.cfg +4 -0
- dictation4me-0.3.0/src/dictation4me/__init__.py +3 -0
- dictation4me-0.3.0/src/dictation4me/__main__.py +4 -0
- dictation4me-0.3.0/src/dictation4me/assets/live.css +18 -0
- dictation4me-0.3.0/src/dictation4me/assets/live.html +18 -0
- dictation4me-0.3.0/src/dictation4me/assets/notebook.css +322 -0
- dictation4me-0.3.0/src/dictation4me/assets/notebook.html +313 -0
- dictation4me-0.3.0/src/dictation4me/assets/presets.json +13 -0
- dictation4me-0.3.0/src/dictation4me/assets/schema.sql +208 -0
- dictation4me-0.3.0/src/dictation4me/audio.py +229 -0
- dictation4me-0.3.0/src/dictation4me/cli.py +347 -0
- dictation4me-0.3.0/src/dictation4me/config.py +221 -0
- dictation4me-0.3.0/src/dictation4me/credentials.py +42 -0
- dictation4me-0.3.0/src/dictation4me/desktop/__init__.py +68 -0
- dictation4me-0.3.0/src/dictation4me/desktop/linux.py +125 -0
- dictation4me-0.3.0/src/dictation4me/desktop/portal.py +144 -0
- dictation4me-0.3.0/src/dictation4me/desktop/remote_desktop.py +211 -0
- dictation4me-0.3.0/src/dictation4me/desktop/tray.py +313 -0
- dictation4me-0.3.0/src/dictation4me/desktop/windows.py +236 -0
- dictation4me-0.3.0/src/dictation4me/desktop/x11.py +73 -0
- dictation4me-0.3.0/src/dictation4me/diagnostics.py +98 -0
- dictation4me-0.3.0/src/dictation4me/engine.py +963 -0
- dictation4me-0.3.0/src/dictation4me/errors.py +93 -0
- dictation4me-0.3.0/src/dictation4me/gui.py +1436 -0
- dictation4me-0.3.0/src/dictation4me/ipc.py +164 -0
- dictation4me-0.3.0/src/dictation4me/markdown.py +56 -0
- dictation4me-0.3.0/src/dictation4me/onboarding.py +86 -0
- dictation4me-0.3.0/src/dictation4me/paths.py +103 -0
- dictation4me-0.3.0/src/dictation4me/portable.py +198 -0
- dictation4me-0.3.0/src/dictation4me/presets.py +66 -0
- dictation4me-0.3.0/src/dictation4me/providers.py +122 -0
- dictation4me-0.3.0/src/dictation4me/realtime.py +178 -0
- dictation4me-0.3.0/src/dictation4me/service.py +79 -0
- dictation4me-0.3.0/src/dictation4me/storage.py +662 -0
- dictation4me-0.3.0/src/dictation4me.egg-info/PKG-INFO +171 -0
- dictation4me-0.3.0/src/dictation4me.egg-info/SOURCES.txt +52 -0
- dictation4me-0.3.0/src/dictation4me.egg-info/dependency_links.txt +1 -0
- dictation4me-0.3.0/src/dictation4me.egg-info/entry_points.txt +5 -0
- dictation4me-0.3.0/src/dictation4me.egg-info/requires.txt +10 -0
- dictation4me-0.3.0/src/dictation4me.egg-info/top_level.txt +1 -0
- dictation4me-0.3.0/tests/test_audio_spool.py +57 -0
- dictation4me-0.3.0/tests/test_config_providers.py +101 -0
- dictation4me-0.3.0/tests/test_engine.py +497 -0
- dictation4me-0.3.0/tests/test_gui_contract.py +355 -0
- dictation4me-0.3.0/tests/test_ipc_cli.py +56 -0
- dictation4me-0.3.0/tests/test_local_regressions.py +173 -0
- dictation4me-0.3.0/tests/test_markdown.py +16 -0
- dictation4me-0.3.0/tests/test_portable.py +68 -0
- dictation4me-0.3.0/tests/test_realtime.py +103 -0
- dictation4me-0.3.0/tests/test_storage.py +146 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Dictation4me contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: dictation4me
|
|
3
|
+
Version: 0.3.0
|
|
4
|
+
Summary: System-wide voice dictation, live transcription and AI-assisted notes for KDE Plasma (Wayland)
|
|
5
|
+
Author: Dictation4me contributors
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/bigbatmanorg/dictation4me
|
|
8
|
+
Project-URL: Documentation, https://github.com/bigbatmanorg/dictation4me/blob/main/docs/USER_GUIDE.md
|
|
9
|
+
Project-URL: Changelog, https://github.com/bigbatmanorg/dictation4me/blob/main/CHANGELOG.md
|
|
10
|
+
Project-URL: Issues, https://github.com/bigbatmanorg/dictation4me/issues
|
|
11
|
+
Keywords: dictation,speech-to-text,transcription,whisper,kde,wayland,notes,llm
|
|
12
|
+
Classifier: Development Status :: 4 - Beta
|
|
13
|
+
Classifier: Intended Audience :: End Users/Desktop
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
17
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
18
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
19
|
+
Classifier: Topic :: Multimedia :: Sound/Audio :: Speech
|
|
20
|
+
Classifier: Topic :: Office/Business
|
|
21
|
+
Requires-Python: >=3.12
|
|
22
|
+
Description-Content-Type: text/markdown
|
|
23
|
+
License-File: LICENSE
|
|
24
|
+
Requires-Dist: httpx<1,>=0.27
|
|
25
|
+
Requires-Dist: websockets<17,>=15
|
|
26
|
+
Requires-Dist: nativehtmlkit<0.2,>=0.1.2
|
|
27
|
+
Requires-Dist: sounddevice<0.6,>=0.5.1
|
|
28
|
+
Requires-Dist: numpy<3,>=1.26
|
|
29
|
+
Requires-Dist: keyring<27,>=25
|
|
30
|
+
Requires-Dist: dbus-next<0.3,>=0.2.3; sys_platform == "linux"
|
|
31
|
+
Requires-Dist: python-xlib<0.34,>=0.33; sys_platform == "linux"
|
|
32
|
+
Dynamic: license-file
|
|
33
|
+
|
|
34
|
+
<h1 align="center">Dictation4me</h1>
|
|
35
|
+
|
|
36
|
+
<p align="center"><b>Press a shortcut, speak, press again — your words are typed into any app.</b><br>
|
|
37
|
+
Live transcription, AI-assisted voice notes and a native notebook for KDE Plasma (Wayland).<br>
|
|
38
|
+
Your own speech and AI servers. Your notes stay on your computer.</p>
|
|
39
|
+
|
|
40
|
+
<p align="center">
|
|
41
|
+
<a href="https://pypi.org/project/dictation4me/"><img alt="PyPI" src="https://img.shields.io/pypi/v/dictation4me"></a>
|
|
42
|
+
<a href="https://github.com/bigbatmanorg/dictation4me/releases/latest"><img alt="Release" src="https://img.shields.io/github/v/release/bigbatmanorg/dictation4me"></a>
|
|
43
|
+
<a href="https://github.com/bigbatmanorg/dictation4me/actions/workflows/ci.yml"><img alt="CI" src="https://github.com/bigbatmanorg/dictation4me/actions/workflows/ci.yml/badge.svg"></a>
|
|
44
|
+
<img alt="Python" src="https://img.shields.io/badge/python-3.12%2B-blue">
|
|
45
|
+
<img alt="License" src="https://img.shields.io/badge/license-MIT-green">
|
|
46
|
+
</p>
|
|
47
|
+
|
|
48
|
+

|
|
49
|
+
|
|
50
|
+
## Features
|
|
51
|
+
|
|
52
|
+
- 🎙️ **Two-press dictation anywhere.** Press **Ctrl+Alt+D**, speak, press again. The text is typed where your cursor is (or copied, if you prefer). It uses KDE's own permission system; nothing privileged is installed.
|
|
53
|
+
- ⚡ **Live transcription.** With a realtime model (e.g. Voxtral on vLLM) a small window shows your words as you speak. The recording is always saved, and the normal model takes over if the live stream fails.
|
|
54
|
+
- 📝 **Voice notes.** Record into a note and watch the words appear inside it.
|
|
55
|
+
- ✨ **AI rewrite with review.** Turn a rambling call transcript into a meeting summary, a polite email or a task list. You get a proposal and choose *Replace*, *Keep as version* or *New note*; every change is versioned.
|
|
56
|
+
- 🔌 **Bring your own servers.** Any OpenAI-compatible endpoint (LiteLLM, vLLM, LocalAI, OpenAI). Speech and AI are configured separately; keys live in the OS keyring.
|
|
57
|
+
- 🛟 **Nothing gets lost.** Failed recordings wait in Recovery with a "how to fix" hint. Errors everywhere tell you what to do, and `dictation4me doctor` checks your setup.
|
|
58
|
+
- 🧭 **Tray icon** with recording state, plus a background service that keeps working when the window is closed.
|
|
59
|
+
|
|
60
|
+
| Notes | AI rewrite proposal |
|
|
61
|
+
|---|---|
|
|
62
|
+
|  |  |
|
|
63
|
+
| **Voice note with live text** | **Settings** |
|
|
64
|
+
|  |  |
|
|
65
|
+
|
|
66
|
+
## Install
|
|
67
|
+
|
|
68
|
+
**1. System packages** (Linux, once):
|
|
69
|
+
|
|
70
|
+
```sh
|
|
71
|
+
sudo apt install libportaudio2 pipewire-alsa wl-clipboard # Debian / Ubuntu
|
|
72
|
+
sudo dnf install portaudio pipewire-alsa wl-clipboard # Fedora
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
**2. Install from PyPI with [uv](https://docs.astral.sh/uv/getting-started/installation/)** (recommended):
|
|
76
|
+
|
|
77
|
+
```sh
|
|
78
|
+
uv tool install dictation4me
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
This puts the `dictation4me` command on your `PATH` in its own isolated environment. If the command is not found afterwards, run `uv tool update-shell` and open a new terminal.
|
|
82
|
+
|
|
83
|
+
**3. Register the app** (menu entry and autostart; KDE needs the menu entry to grant the shortcut and automatic pasting):
|
|
84
|
+
|
|
85
|
+
```sh
|
|
86
|
+
dictation4me init --autostart
|
|
87
|
+
dictation4me gui
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
**Update or remove:**
|
|
91
|
+
|
|
92
|
+
```sh
|
|
93
|
+
uv tool upgrade dictation4me && dictation4me service restart
|
|
94
|
+
dictation4me uninstall && uv tool uninstall dictation4me # keeps your notes
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
<details>
|
|
98
|
+
<summary>Other ways to install</summary>
|
|
99
|
+
|
|
100
|
+
```sh
|
|
101
|
+
# A specific version from PyPI
|
|
102
|
+
uv tool install dictation4me==0.3.0
|
|
103
|
+
|
|
104
|
+
# Straight from GitHub (a release tag, or the latest main branch)
|
|
105
|
+
uv tool install git+https://github.com/bigbatmanorg/dictation4me@v0.3.0
|
|
106
|
+
uv tool install git+https://github.com/bigbatmanorg/dictation4me
|
|
107
|
+
|
|
108
|
+
# With pipx or pip instead of uv
|
|
109
|
+
pipx install dictation4me
|
|
110
|
+
python3 -m pip install --user dictation4me
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
Release wheels and checksums are also attached to every [GitHub release](https://github.com/bigbatmanorg/dictation4me/releases).
|
|
114
|
+
</details>
|
|
115
|
+
|
|
116
|
+
Requirements: Python 3.12+, glibc 2.39+ (Ubuntu 24.04+, Debian 13+, Fedora 40+), KDE Plasma 6 on Wayland recommended.
|
|
117
|
+
|
|
118
|
+
## Set up in two minutes
|
|
119
|
+
|
|
120
|
+
1. **Settings › Connections:** enter your speech-to-text server URL and model (e.g. `http://my-server:4000/v1`, `whisper-1`). For live text choose *Mode: Live while you speak* and a realtime model (e.g. `asr-realtime`). Add the AI server if you want rewrites. Paste the API key; it is stored in the system keyring.
|
|
121
|
+
2. Approve the shortcut in the KDE dialog (default **Ctrl+Alt+D**).
|
|
122
|
+
3. **Settings › Dictation › Behaviour:** *Stop, then type the text into the active app*, then click **Allow automatic pasting…** and approve once.
|
|
123
|
+
4. Click into any text field, press **Ctrl+Alt+D**, speak, press **Ctrl+Alt+D**.
|
|
124
|
+
|
|
125
|
+
Running LiteLLM + vLLM? There's a ready-made config in the [user guide appendix](https://github.com/bigbatmanorg/dictation4me/blob/main/docs/USER_GUIDE.md#appendix-litellm--vllm-server-example).
|
|
126
|
+
|
|
127
|
+
## Documentation
|
|
128
|
+
|
|
129
|
+
- 📖 **[User guide](https://github.com/bigbatmanorg/dictation4me/blob/main/docs/USER_GUIDE.md):** install, setup, daily use, every setting, CLI, privacy, troubleshooting
|
|
130
|
+
- 🎨 [Interface design](https://github.com/bigbatmanorg/dictation4me/blob/main/docs/ui-redesign/README.md) · [UX review](https://github.com/bigbatmanorg/dictation4me/blob/main/docs/UX_REVIEW.md) · [Architecture](https://github.com/bigbatmanorg/dictation4me/blob/main/docs/ARCHITECTURE_IMPLEMENTED.md)
|
|
131
|
+
- ✅ [Implementation status](https://github.com/bigbatmanorg/dictation4me/blob/main/docs/IMPLEMENTATION_STATUS.md) and [qualification evidence](https://github.com/bigbatmanorg/dictation4me/tree/main/qualification/runs)
|
|
132
|
+
- 📝 [Changelog](https://github.com/bigbatmanorg/dictation4me/blob/main/CHANGELOG.md)
|
|
133
|
+
|
|
134
|
+
## Quick reference
|
|
135
|
+
|
|
136
|
+
| | |
|
|
137
|
+
|---|---|
|
|
138
|
+
| Dictate into any app | **Ctrl+Alt+D**, speak, **Ctrl+Alt+D** |
|
|
139
|
+
| Start/stop from the window | the dictation chip in the top-right corner |
|
|
140
|
+
| Open the notebook | app menu, tray icon, or `dictation4me gui` |
|
|
141
|
+
| New note / save version / search | **Ctrl+N** / **Ctrl+S** / **Ctrl+K** |
|
|
142
|
+
| Something wrong? | `dictation4me doctor` |
|
|
143
|
+
| Shortcut from a script / custom key | `dictation4me toggle` |
|
|
144
|
+
| Back up | `dictation4me backup --output notes.zip` |
|
|
145
|
+
|
|
146
|
+
## Platform status
|
|
147
|
+
|
|
148
|
+
| | KDE Plasma 6 Wayland | Other Linux desktops / X11 | Windows 10/11 |
|
|
149
|
+
|---|---|---|---|
|
|
150
|
+
| Notebook, notes, AI, Recovery | ✅ verified | ✅ expected | ⚠️ tests pass, not yet verified on a desktop |
|
|
151
|
+
| Global shortcut | ✅ desktop portal | X11 key grab / `dictation4me toggle` | ⚠️ RegisterHotKey, not verified |
|
|
152
|
+
| Typing into the active app | ✅ Remote Control portal | X11: xdotool | ⚠️ SendInput, not verified |
|
|
153
|
+
| Live transcription + live window | ✅ | ✅ expected | ⚠️ untested |
|
|
154
|
+
| Tray icon | ✅ | ✅ (StatusNotifierItem) | ❌ not yet |
|
|
155
|
+
|
|
156
|
+
Not included: macOS, cloud sync, rich-text editing (Markdown with preview instead).
|
|
157
|
+
|
|
158
|
+
## Development
|
|
159
|
+
|
|
160
|
+
```sh
|
|
161
|
+
git clone https://github.com/bigbatmanorg/dictation4me && cd dictation4me
|
|
162
|
+
uv sync --group dev
|
|
163
|
+
uv run ruff check src tests && uv run pytest -q
|
|
164
|
+
uv run dictation4me gui
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
Tests use isolated profiles (`DICTATION4ME_HOME`) and never touch your real shortcut, tray or keyring. Real-desktop behaviour is verified separately and recorded under [`qualification/runs/`](https://github.com/bigbatmanorg/dictation4me/tree/main/qualification/runs). Releases are published to PyPI from GitHub Actions with Trusted Publishing.
|
|
168
|
+
|
|
169
|
+
## License
|
|
170
|
+
|
|
171
|
+
MIT. See [LICENSE](https://github.com/bigbatmanorg/dictation4me/blob/main/LICENSE).
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
<h1 align="center">Dictation4me</h1>
|
|
2
|
+
|
|
3
|
+
<p align="center"><b>Press a shortcut, speak, press again — your words are typed into any app.</b><br>
|
|
4
|
+
Live transcription, AI-assisted voice notes and a native notebook for KDE Plasma (Wayland).<br>
|
|
5
|
+
Your own speech and AI servers. Your notes stay on your computer.</p>
|
|
6
|
+
|
|
7
|
+
<p align="center">
|
|
8
|
+
<a href="https://pypi.org/project/dictation4me/"><img alt="PyPI" src="https://img.shields.io/pypi/v/dictation4me"></a>
|
|
9
|
+
<a href="https://github.com/bigbatmanorg/dictation4me/releases/latest"><img alt="Release" src="https://img.shields.io/github/v/release/bigbatmanorg/dictation4me"></a>
|
|
10
|
+
<a href="https://github.com/bigbatmanorg/dictation4me/actions/workflows/ci.yml"><img alt="CI" src="https://github.com/bigbatmanorg/dictation4me/actions/workflows/ci.yml/badge.svg"></a>
|
|
11
|
+
<img alt="Python" src="https://img.shields.io/badge/python-3.12%2B-blue">
|
|
12
|
+
<img alt="License" src="https://img.shields.io/badge/license-MIT-green">
|
|
13
|
+
</p>
|
|
14
|
+
|
|
15
|
+

|
|
16
|
+
|
|
17
|
+
## Features
|
|
18
|
+
|
|
19
|
+
- 🎙️ **Two-press dictation anywhere.** Press **Ctrl+Alt+D**, speak, press again. The text is typed where your cursor is (or copied, if you prefer). It uses KDE's own permission system; nothing privileged is installed.
|
|
20
|
+
- ⚡ **Live transcription.** With a realtime model (e.g. Voxtral on vLLM) a small window shows your words as you speak. The recording is always saved, and the normal model takes over if the live stream fails.
|
|
21
|
+
- 📝 **Voice notes.** Record into a note and watch the words appear inside it.
|
|
22
|
+
- ✨ **AI rewrite with review.** Turn a rambling call transcript into a meeting summary, a polite email or a task list. You get a proposal and choose *Replace*, *Keep as version* or *New note*; every change is versioned.
|
|
23
|
+
- 🔌 **Bring your own servers.** Any OpenAI-compatible endpoint (LiteLLM, vLLM, LocalAI, OpenAI). Speech and AI are configured separately; keys live in the OS keyring.
|
|
24
|
+
- 🛟 **Nothing gets lost.** Failed recordings wait in Recovery with a "how to fix" hint. Errors everywhere tell you what to do, and `dictation4me doctor` checks your setup.
|
|
25
|
+
- 🧭 **Tray icon** with recording state, plus a background service that keeps working when the window is closed.
|
|
26
|
+
|
|
27
|
+
| Notes | AI rewrite proposal |
|
|
28
|
+
|---|---|
|
|
29
|
+
|  |  |
|
|
30
|
+
| **Voice note with live text** | **Settings** |
|
|
31
|
+
|  |  |
|
|
32
|
+
|
|
33
|
+
## Install
|
|
34
|
+
|
|
35
|
+
**1. System packages** (Linux, once):
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
sudo apt install libportaudio2 pipewire-alsa wl-clipboard # Debian / Ubuntu
|
|
39
|
+
sudo dnf install portaudio pipewire-alsa wl-clipboard # Fedora
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
**2. Install from PyPI with [uv](https://docs.astral.sh/uv/getting-started/installation/)** (recommended):
|
|
43
|
+
|
|
44
|
+
```sh
|
|
45
|
+
uv tool install dictation4me
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
This puts the `dictation4me` command on your `PATH` in its own isolated environment. If the command is not found afterwards, run `uv tool update-shell` and open a new terminal.
|
|
49
|
+
|
|
50
|
+
**3. Register the app** (menu entry and autostart; KDE needs the menu entry to grant the shortcut and automatic pasting):
|
|
51
|
+
|
|
52
|
+
```sh
|
|
53
|
+
dictation4me init --autostart
|
|
54
|
+
dictation4me gui
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
**Update or remove:**
|
|
58
|
+
|
|
59
|
+
```sh
|
|
60
|
+
uv tool upgrade dictation4me && dictation4me service restart
|
|
61
|
+
dictation4me uninstall && uv tool uninstall dictation4me # keeps your notes
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
<details>
|
|
65
|
+
<summary>Other ways to install</summary>
|
|
66
|
+
|
|
67
|
+
```sh
|
|
68
|
+
# A specific version from PyPI
|
|
69
|
+
uv tool install dictation4me==0.3.0
|
|
70
|
+
|
|
71
|
+
# Straight from GitHub (a release tag, or the latest main branch)
|
|
72
|
+
uv tool install git+https://github.com/bigbatmanorg/dictation4me@v0.3.0
|
|
73
|
+
uv tool install git+https://github.com/bigbatmanorg/dictation4me
|
|
74
|
+
|
|
75
|
+
# With pipx or pip instead of uv
|
|
76
|
+
pipx install dictation4me
|
|
77
|
+
python3 -m pip install --user dictation4me
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
Release wheels and checksums are also attached to every [GitHub release](https://github.com/bigbatmanorg/dictation4me/releases).
|
|
81
|
+
</details>
|
|
82
|
+
|
|
83
|
+
Requirements: Python 3.12+, glibc 2.39+ (Ubuntu 24.04+, Debian 13+, Fedora 40+), KDE Plasma 6 on Wayland recommended.
|
|
84
|
+
|
|
85
|
+
## Set up in two minutes
|
|
86
|
+
|
|
87
|
+
1. **Settings › Connections:** enter your speech-to-text server URL and model (e.g. `http://my-server:4000/v1`, `whisper-1`). For live text choose *Mode: Live while you speak* and a realtime model (e.g. `asr-realtime`). Add the AI server if you want rewrites. Paste the API key; it is stored in the system keyring.
|
|
88
|
+
2. Approve the shortcut in the KDE dialog (default **Ctrl+Alt+D**).
|
|
89
|
+
3. **Settings › Dictation › Behaviour:** *Stop, then type the text into the active app*, then click **Allow automatic pasting…** and approve once.
|
|
90
|
+
4. Click into any text field, press **Ctrl+Alt+D**, speak, press **Ctrl+Alt+D**.
|
|
91
|
+
|
|
92
|
+
Running LiteLLM + vLLM? There's a ready-made config in the [user guide appendix](https://github.com/bigbatmanorg/dictation4me/blob/main/docs/USER_GUIDE.md#appendix-litellm--vllm-server-example).
|
|
93
|
+
|
|
94
|
+
## Documentation
|
|
95
|
+
|
|
96
|
+
- 📖 **[User guide](https://github.com/bigbatmanorg/dictation4me/blob/main/docs/USER_GUIDE.md):** install, setup, daily use, every setting, CLI, privacy, troubleshooting
|
|
97
|
+
- 🎨 [Interface design](https://github.com/bigbatmanorg/dictation4me/blob/main/docs/ui-redesign/README.md) · [UX review](https://github.com/bigbatmanorg/dictation4me/blob/main/docs/UX_REVIEW.md) · [Architecture](https://github.com/bigbatmanorg/dictation4me/blob/main/docs/ARCHITECTURE_IMPLEMENTED.md)
|
|
98
|
+
- ✅ [Implementation status](https://github.com/bigbatmanorg/dictation4me/blob/main/docs/IMPLEMENTATION_STATUS.md) and [qualification evidence](https://github.com/bigbatmanorg/dictation4me/tree/main/qualification/runs)
|
|
99
|
+
- 📝 [Changelog](https://github.com/bigbatmanorg/dictation4me/blob/main/CHANGELOG.md)
|
|
100
|
+
|
|
101
|
+
## Quick reference
|
|
102
|
+
|
|
103
|
+
| | |
|
|
104
|
+
|---|---|
|
|
105
|
+
| Dictate into any app | **Ctrl+Alt+D**, speak, **Ctrl+Alt+D** |
|
|
106
|
+
| Start/stop from the window | the dictation chip in the top-right corner |
|
|
107
|
+
| Open the notebook | app menu, tray icon, or `dictation4me gui` |
|
|
108
|
+
| New note / save version / search | **Ctrl+N** / **Ctrl+S** / **Ctrl+K** |
|
|
109
|
+
| Something wrong? | `dictation4me doctor` |
|
|
110
|
+
| Shortcut from a script / custom key | `dictation4me toggle` |
|
|
111
|
+
| Back up | `dictation4me backup --output notes.zip` |
|
|
112
|
+
|
|
113
|
+
## Platform status
|
|
114
|
+
|
|
115
|
+
| | KDE Plasma 6 Wayland | Other Linux desktops / X11 | Windows 10/11 |
|
|
116
|
+
|---|---|---|---|
|
|
117
|
+
| Notebook, notes, AI, Recovery | ✅ verified | ✅ expected | ⚠️ tests pass, not yet verified on a desktop |
|
|
118
|
+
| Global shortcut | ✅ desktop portal | X11 key grab / `dictation4me toggle` | ⚠️ RegisterHotKey, not verified |
|
|
119
|
+
| Typing into the active app | ✅ Remote Control portal | X11: xdotool | ⚠️ SendInput, not verified |
|
|
120
|
+
| Live transcription + live window | ✅ | ✅ expected | ⚠️ untested |
|
|
121
|
+
| Tray icon | ✅ | ✅ (StatusNotifierItem) | ❌ not yet |
|
|
122
|
+
|
|
123
|
+
Not included: macOS, cloud sync, rich-text editing (Markdown with preview instead).
|
|
124
|
+
|
|
125
|
+
## Development
|
|
126
|
+
|
|
127
|
+
```sh
|
|
128
|
+
git clone https://github.com/bigbatmanorg/dictation4me && cd dictation4me
|
|
129
|
+
uv sync --group dev
|
|
130
|
+
uv run ruff check src tests && uv run pytest -q
|
|
131
|
+
uv run dictation4me gui
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
Tests use isolated profiles (`DICTATION4ME_HOME`) and never touch your real shortcut, tray or keyring. Real-desktop behaviour is verified separately and recorded under [`qualification/runs/`](https://github.com/bigbatmanorg/dictation4me/tree/main/qualification/runs). Releases are published to PyPI from GitHub Actions with Trusted Publishing.
|
|
135
|
+
|
|
136
|
+
## License
|
|
137
|
+
|
|
138
|
+
MIT. See [LICENSE](https://github.com/bigbatmanorg/dictation4me/blob/main/LICENSE).
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=70", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "dictation4me"
|
|
7
|
+
version = "0.3.0"
|
|
8
|
+
description = "System-wide voice dictation, live transcription and AI-assisted notes for KDE Plasma (Wayland)"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.12"
|
|
11
|
+
license = "MIT"
|
|
12
|
+
authors = [{name = "Dictation4me contributors"}]
|
|
13
|
+
dependencies = [
|
|
14
|
+
"httpx>=0.27,<1",
|
|
15
|
+
"websockets>=15,<17",
|
|
16
|
+
"nativehtmlkit>=0.1.2,<0.2",
|
|
17
|
+
"sounddevice>=0.5.1,<0.6",
|
|
18
|
+
"numpy>=1.26,<3",
|
|
19
|
+
"keyring>=25,<27",
|
|
20
|
+
"dbus-next>=0.2.3,<0.3; sys_platform == 'linux'",
|
|
21
|
+
"python-xlib>=0.33,<0.34; sys_platform == 'linux'",
|
|
22
|
+
]
|
|
23
|
+
classifiers = [
|
|
24
|
+
"Development Status :: 4 - Beta",
|
|
25
|
+
"Intended Audience :: End Users/Desktop",
|
|
26
|
+
"Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13",
|
|
27
|
+
"Programming Language :: Python :: 3.14",
|
|
28
|
+
"Operating System :: POSIX :: Linux", "Operating System :: Microsoft :: Windows",
|
|
29
|
+
"Topic :: Multimedia :: Sound/Audio :: Speech", "Topic :: Office/Business",
|
|
30
|
+
]
|
|
31
|
+
keywords = ["dictation", "speech-to-text", "transcription", "whisper", "kde", "wayland", "notes", "llm"]
|
|
32
|
+
|
|
33
|
+
[project.urls]
|
|
34
|
+
Homepage = "https://github.com/bigbatmanorg/dictation4me"
|
|
35
|
+
Documentation = "https://github.com/bigbatmanorg/dictation4me/blob/main/docs/USER_GUIDE.md"
|
|
36
|
+
Changelog = "https://github.com/bigbatmanorg/dictation4me/blob/main/CHANGELOG.md"
|
|
37
|
+
Issues = "https://github.com/bigbatmanorg/dictation4me/issues"
|
|
38
|
+
[project.scripts]
|
|
39
|
+
dictation4me = "dictation4me.cli:main"
|
|
40
|
+
[project.gui-scripts]
|
|
41
|
+
dictation4me-gui = "dictation4me.gui:main"
|
|
42
|
+
|
|
43
|
+
[dependency-groups]
|
|
44
|
+
dev = ["pytest>=8,<10", "pytest-cov>=6,<8", "ruff>=0.11,<1", "build>=1.2,<2"]
|
|
45
|
+
|
|
46
|
+
[tool.setuptools.packages.find]
|
|
47
|
+
where = ["src"]
|
|
48
|
+
|
|
49
|
+
[tool.setuptools.package-data]
|
|
50
|
+
dictation4me = ["assets/*"]
|
|
51
|
+
|
|
52
|
+
[tool.pytest.ini_options]
|
|
53
|
+
testpaths = ["tests"]
|
|
54
|
+
pythonpath = ["src"]
|
|
55
|
+
markers = ["desktop: real desktop required", "network: explicitly configured provider required"]
|
|
56
|
+
|
|
57
|
+
[tool.ruff]
|
|
58
|
+
target-version = "py312"
|
|
59
|
+
line-length = 100
|
|
60
|
+
[tool.ruff.lint]
|
|
61
|
+
select = ["E4", "E7", "E9", "F", "I", "B"]
|
|
62
|
+
[tool.ruff.lint.per-file-ignores]
|
|
63
|
+
# dbus-next declares D-Bus type signatures as string annotations ("s", "a{sv}").
|
|
64
|
+
"src/dictation4me/desktop/tray.py" = ["F821", "F722"]
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
:root { color-scheme: dark; font-family: Inter, "Noto Sans", "Segoe UI", system-ui, sans-serif; }
|
|
2
|
+
html, body { margin: 0; height: 100%; background: #171a22; color: #d6dbe6; overflow: hidden; }
|
|
3
|
+
.live { height: 100%; box-sizing: border-box; padding: 10px 14px; display: flex; flex-direction: column; gap: 6px;
|
|
4
|
+
border: 1px solid rgba(157, 183, 255, .26); border-left: 2px solid #ff7b7b; }
|
|
5
|
+
.bar { display: flex; align-items: center; gap: 8px; font-size: 12px; }
|
|
6
|
+
.bar strong { color: #ffd3d3; font-weight: 600; }
|
|
7
|
+
.dot { width: 8px; height: 8px; border-radius: 50%; background: #ff7b7b; animation: pulse 1.2s ease-in-out infinite; }
|
|
8
|
+
.hint { margin-left: auto; color: #7d879b; font-size: 11.5px; }
|
|
9
|
+
.text { margin: 0; flex: 1; overflow: hidden; font-size: 16px; line-height: 1.45;
|
|
10
|
+
display: flex; flex-direction: column; justify-content: flex-end; }
|
|
11
|
+
.placeholder { color: #7d879b; font-style: italic; }
|
|
12
|
+
.live.state-busy { border-left-color: #7cc4ff; }
|
|
13
|
+
.live.state-busy .dot { background: #7cc4ff; }
|
|
14
|
+
.live.state-busy .bar strong { color: #7cc4ff; }
|
|
15
|
+
.live.state-error { border-left-color: #ffb86b; }
|
|
16
|
+
.live.state-error .dot { background: #ffb86b; animation: none; }
|
|
17
|
+
@keyframes pulse { 50% { opacity: .3; } }
|
|
18
|
+
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<title>Dictation4me — live</title>
|
|
6
|
+
<link rel="stylesheet" href="live.css">
|
|
7
|
+
</head>
|
|
8
|
+
<body data-nativehtmlkit-drag>
|
|
9
|
+
<main id="live" class="live state-recording" aria-live="polite">
|
|
10
|
+
<header class="bar">
|
|
11
|
+
<i class="dot" aria-hidden="true"></i>
|
|
12
|
+
<strong id="live-state">Listening</strong>
|
|
13
|
+
<span id="live-hint" class="hint">Press Ctrl+Alt+D to stop</span>
|
|
14
|
+
</header>
|
|
15
|
+
<p id="live-text" class="text placeholder">Start speaking — your words appear here.</p>
|
|
16
|
+
</main>
|
|
17
|
+
</body>
|
|
18
|
+
</html>
|