irongit

Open source voice dictation for your whole desktop. Local whisper.cpp transcription, global hotkeys, optional LLM enhancement via Claude Code, Gemini CLI, Codex, or any API. Wayland-first.

mutterbox/src/types.ts
49 lines957 BJavaScript
1export interface EnhanceSettings {
2 enabled: boolean;
3 provider: "anthropic" | "gemini" | "openai" | "ollama";
4 model: string;
5 base_url: string;
6 api_key_env: string;
7 instructions: string;
8}
9
10export interface Settings {
11 hotkey: string;
12 activation: "toggle" | "hold";
13 injection_mode: "paste" | "type";
14 restore_clipboard: boolean;
15 dictation_model: string;
16 language: string;
17 enhance: EnhanceSettings;
18}
19
20export interface ModelInfo {
21 id: string;
22 label: string;
23 filename: string;
24 size_mb: number;
25 multilingual: boolean;
26 description: string;
27 installed: boolean;
28}
29
30export interface DownloadProgress {
31 id: string;
32 downloaded: number;
33 total: number;
34 done: boolean;
35}
36
37export interface TranscriptPayload {
38 raw: string;
39 text: string;
40 enhanced: boolean;
41}
42
43export type RecordingState = "idle" | "recording" | "processing";
44
45export interface EnvironmentInfo {
46 wayland: boolean;
47 compositor: string;
48 exe: string;
49}