forked from benmaster82/writher
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
51 lines (40 loc) Β· 3 KB
/
Copy pathconfig.py
File metadata and controls
51 lines (40 loc) Β· 3 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
from pynput.keyboard import Key, KeyCode
# ββ Hotkeys βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# Hold AltGr to dictate (paste text directly)
HOTKEY = Key.alt_gr
# Hold Ctrl+Alt+R to activate assistant mode (notes, agenda, reminders).
# This is a combo hotkey: (frozenset of modifier names, trigger KeyCode).
# Ctrl+Alt+R avoids the Ctrl+Shift+R browser-reload conflict.
ASSISTANT_HOTKEY = (frozenset({"ctrl", "alt"}), KeyCode.from_vk(82))
# ββ Language ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# Controls the UI and assistant strings.
# Supported values: "en" (English), "it" (Italian), "de" (German).
LANGUAGE = "en"
# ββ Whisper βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# Recognition language passed to faster-whisper's transcribe().
# None = per-clip auto-detect (recommended for mixed-language users).
# Otherwise a Whisper language code: "en", "it", "de", ...
WHISPER_LANGUAGE = None
MODEL_SIZE = "base"
SAMPLE_RATE = 16000
DEVICE = "cpu"
COMPUTE_TYPE = "int8"
# ββ Microphone ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# None = system default. Set to device name (str) to use a specific mic.
MIC_DEVICE_NAME = None
# ββ Ollama (assistant) βββββββββββββββββββββββββββββββββββββββββββββββββββ
OLLAMA_URL = "http://localhost:11434"
OLLAMA_MODEL = "llama3.1:8b"
# ββ Clipboard βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# True = leave the transcript in the clipboard after paste
# (skip the save/restore round-trip).
# False = save the user's clipboard before paste and restore it after.
KEEP_TRANSCRIPT_IN_CLIPBOARD = False
# ββ Recording mode ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# True = hold key to record (release stops). False = toggle (press start, press stop).
HOLD_TO_RECORD = True
# Maximum recording duration in seconds (toggle mode only, safety net).
MAX_RECORD_SECONDS = 120
# ββ Appointment notifications βββββββββββββββββββββββββββββββββββββββββββββ
# How many minutes before an appointment to send a toast notification.
APPOINTMENT_REMIND_MINUTES = 15