-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
120 lines (110 loc) · 3.81 KB
/
Copy pathindex.html
File metadata and controls
120 lines (110 loc) · 3.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>qol — settings</title>
<link rel="stylesheet" href="/src/styles.css" />
</head>
<body>
<main id="app">
<h1>qol</h1>
<p class="sub">Voice dictation powered by Aavaaz.</p>
<form id="settings">
<label>
Aavaaz WebSocket URL
<input name="aavaaz_url" type="text" placeholder="ws://localhost:9090" />
</label>
<label>
Model
<select name="model">
<option value="distil-large-v3">distil-large-v3 (recommended)</option>
<option value="large-v3">large-v3</option>
<option value="medium">medium</option>
<option value="small">small</option>
</select>
</label>
<label>
Language
<input name="language" type="text" placeholder="en" />
</label>
<label>
Push-to-talk hotkey
<input name="hotkey" type="text" placeholder="Super+Space" />
</label>
<label class="row">
<input name="autostart" type="checkbox" id="autostart" />
Start qol at login
</label>
<fieldset>
<legend>LLM polish (OpenAI-compatible)</legend>
<label class="row">
<input name="polish_enabled" type="checkbox" />
Clean up transcripts (remove fillers, fix punctuation, match app tone)
</label>
<label>
Base URL
<input
name="polish_base_url"
type="text"
placeholder="https://api.openai.com/v1 — or http://localhost:11434/v1 for Ollama"
/>
</label>
<label>
Model
<input name="polish_model" type="text" placeholder="gpt-4o-mini" />
</label>
<label>
API key env var (fallback if no key is stored below; blank for local servers)
<input name="polish_api_key_env" type="text" placeholder="OPENAI_API_KEY" />
</label>
<label>
API key (stored in the OS keyring, never shown; blank + save clears it)
<input
name="polish_api_key"
type="password"
autocomplete="off"
placeholder="paste key, then Save key"
/>
</label>
<div class="row">
<button type="button" id="save_key">Save key to keyring</button>
<span id="key_status"></span>
</div>
<label class="row">
<input name="per_app_tone" type="checkbox" />
Adapt tone to the focused app
</label>
<div class="tone-profiles">
<div class="tone-head">
<span>Per-app tone rules</span>
<button type="button" id="add_tone">+ add rule</button>
</div>
<div id="tone_rows"></div>
<label>
Default tone (used when no rule matches)
<input name="default_tone" type="text" placeholder="natural prose" />
</label>
</div>
</fieldset>
<label>
Hotwords (comma-separated)
<input name="hotwords" type="text" placeholder="Aavaaz,qol,WhisperLive" />
</label>
<div class="actions">
<button type="button" id="test">Test connection</button>
<button type="submit">Save</button>
</div>
<p id="status"></p>
</form>
<section id="history">
<div class="history-head">
<h2>History</h2>
<button type="button" id="clear_history">Clear all</button>
</div>
<div id="history_rows"></div>
</section>
</main>
<script type="module" src="/src/main.ts"></script>
</body>
</html>