-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathconfig.py
More file actions
34 lines (26 loc) Β· 1.92 KB
/
config.py
File metadata and controls
34 lines (26 loc) Β· 1.92 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
from pynput.keyboard import Key
# ββ Hotkeys βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# Hold AltGr to dictate (paste text directly)
HOTKEY = Key.alt_gr
# Hold Ctrl+R to activate assistant mode (notes, agenda, reminders)
ASSISTANT_HOTKEY = Key.ctrl_r
# ββ Language ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# Controls both Whisper transcription and all UI / assistant strings.
# Supported values: "en" (English), "it" (Italian).
LANGUAGE = "en"
# ββ Whisper βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
MODEL_SIZE = "base"
SAMPLE_RATE = 16000
DEVICE = "cpu"
COMPUTE_TYPE = "int8"
# ββ Ollama (assistant) βββββββββββββββββββββββββββββββββββββββββββββββββββ
OLLAMA_URL = "http://localhost:11434"
OLLAMA_MODEL = "gpt-oss:120b-cloud"
# ββ 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