-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathconfig.py
More file actions
60 lines (47 loc) Β· 3.35 KB
/
Copy pathconfig.py
File metadata and controls
60 lines (47 loc) Β· 3.35 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
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
# ββ Local LLM assistant ββββββββββββββββββββββββββββββββββββββββββββββββββ
ASSISTANT_PROVIDER = "ollama" # "ollama" or "openai"
OLLAMA_URL = "http://localhost:11434"
OLLAMA_MODEL = "llama3.1:8b"
# OpenAI-compatible local server (for example llama.cpp or LM Studio)
OPENAI_URL = "http://localhost:8080/v1"
OPENAI_MODEL = "" # Discovered from /models when the provider is selected
OPENAI_API_KEY = ""
# ββ 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
# Seconds to wait before restoring the clipboard (increase for slow apps).
CLIPBOARD_RESTORE_DELAY = 0.5
# ββ 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