Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dimo-plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"publisher": "dimo",
"repository": "https://github.com/DimoADE/Dimo-plugin-voice-input",
"category": "ai-enhancement",
"summary": "AI 语音输入与智能听写:支持实时流式字幕、Whisper/Groq/多模态音频识别、自定义术语热词与听写后智能去口水词润色。"
"summary": "AI 语音输入与智能听写:支持本地离线 GGUF 模型(免 Key 一键下载/零拷贝链接)、Whisper/Groq/xAI/OpenRouter 多引擎、16kHz FIR 重采样与 VAD 静音过滤、别名热词纠错及交互对照预览。"
}
]
}
95 changes: 83 additions & 12 deletions frontend/src/i18n/locales/en/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -1124,8 +1124,8 @@
},
"voiceInput": {
"name": "Voice Input",
"summary": "AI voice dictation and speech-to-text with live streaming captions, Whisper/Groq/multimodal audio transcription, custom vocabulary hotwords, and intelligent post-transcription cleanup.",
"readme": "# Voice Input\n\nProvides low-latency AI speech-to-text and post-transcription cleanup for Dimo's session composer and Monaco editors.\n\n## Key Capabilities\n\n- **Multi-Engine Speech-to-Text**: Supports `hybrid` (Web Speech live captions + cloud Whisper post-processing), `openai-whisper` (`/v1/audio/transcriptions`), `groq-whisper` (`whisper-large-v3-turbo`), `openai-chat-audio`, and `browser-speech`.\n- **Custom Vocabulary Hotwords**: Automatically biases Whisper decoding prompts and normalizes technical terminology spelling (`Dimo`, `Tauri`, `Monaco`, `TypeScript`, `Worktree`).\n- **Post-Transcription Cleanup**: Strips spoken filler words and stutters while preserving raw transcripts for comparison.",
"summary": "AI voice dictation with local offline GGUF models (transcribe.cpp), 16kHz FIR resampling, VAD silence filtering, multi-provider cloud STT, alias vocabulary, and preview HUD.",
"readme": "# Voice Input\n\nProvides low-latency AI speech-to-text and post-transcription cleanup for Dimo's session composer and Monaco editors, supporting both fully offline local GGUF models and cloud APIs.\n\n## Key Capabilities\n\n- **Local Offline Models (`local-model`)**: Curated catalog of 12 SHA-256 verified GGUF models (SenseVoice Small, Qwen3-ASR, Whisper Large v3 Turbo, Fun-ASR, Parakeet, Nemotron, Canary) with on-demand `transcribe.cpp` isolated child-process runtime, resumable downloads with HF-Mirror support, zero-copy linking of existing HuggingFace / T3 Code / Handy copies, and idle memory auto-unload.\n- **Multi-Engine Cloud & Native STT**: Supports `hybrid`, `openai-whisper`, `groq-whisper`, `xai-stt` (Grok STT), `openrouter-stt`, `openai-chat-audio`, `custom-openai` (local unauthenticated localhost Whisper servers), and `browser-speech`.\n- **Smart Trigger & Alias Cleanup**: Default `auto` trigger (tap to toggle, hold >= 300ms for push-to-talk), failed recording retention & retry, alias vocabulary (`Term = alias1 | alias2`), hyphen-safe filler removal, and interactive preview comparison.",
"config": {
"enabled": {
"title": "Enable voice input",
Expand All @@ -1136,27 +1136,70 @@
"description": "Choose the speech-to-text engine protocol.",
"enum": {
"hybrid": "Hybrid live captions + Cloud Whisper (Recommended)",
"local-model": "Local Offline Model (GGUF · Free & Private)",
"openai-whisper": "OpenAI Whisper (/v1/audio/transcriptions)",
"groq-whisper": "Groq Fast Whisper (whisper-large-v3-turbo)",
"xai-stt": "xAI Grok STT (grok-voice-transcribe-2.0)",
"openrouter-stt": "OpenRouter Audio Transcriptions",
"openai-chat-audio": "Multimodal Chat Audio (/v1/chat/completions)",
"custom-openai": "Custom / Local OpenAI-Compatible Endpoint",
"browser-speech": "Browser / OS native live speech (No API key)"
}
},
"localModelId": {
"title": "Local offline model (GGUF)",
"description": "Select the on-device speech recognition model (download, verify, or zero-copy link existing files from the status bar Models tab).",
"enum": {
"handy-computer/SenseVoiceSmall-gguf": "SenseVoice Small (241 MB · CN/EN/JA/KO/YUE · Recommended)",
"handy-computer/Qwen3-ASR-0.6B-gguf": "Qwen3-ASR 0.6B (811 MB · Bilingual CN/EN)",
"handy-computer/whisper-large-v3-turbo-gguf": "Whisper Large v3 Turbo (845 MB · 100 Languages)",
"handy-computer/Fun-ASR-MLT-Nano-2512-gguf": "Fun-ASR MLT Nano (850 MB · 31 Languages)",
"handy-computer/parakeet-unified-en-0.6b-gguf": "Parakeet Unified EN 0.6B (697 MB · EN Streaming)",
"handy-computer/nemotron-3.5-asr-streaming-0.6b-gguf": "Nemotron 3.5 Streaming 0.6B (716 MB · 28 Lang Streaming)",
"handy-computer/whisper-medium-gguf": "Whisper Medium (793 MB · 99 Lang + EN Translate)",
"handy-computer/whisper-small-gguf": "Whisper Small (257 MB · Compact + EN Translate)",
"handy-computer/whisper-base-gguf": "Whisper Base (81 MB · Ultra-light)",
"handy-computer/whisper-tiny-gguf": "Whisper Tiny (44 MB · Fastest)",
"handy-computer/canary-180m-flash-gguf": "Canary 180M Flash (208 MB · EN/DE/ES/FR)",
"handy-computer/Qwen3-ASR-1.7B-gguf": "Qwen3-ASR 1.7B (2.08 GB · Flagship Accuracy)"
}
},
"localAcceleration": {
"title": "Local hardware acceleration",
"description": "Inference backend for local models: auto prefers GPU (Vulkan / Metal) with CPU fallback, CPU-only, or force GPU.",
"enum": {
"auto": "Auto (GPU preferred, CPU fallback)",
"cpu": "CPU only",
"gpu": "Force GPU (Vulkan / Metal)"
}
},
"localUnloadTimeoutSec": {
"title": "Idle auto-unload timeout (seconds)",
"description": "Unload the resident local model from RAM/VRAM after being idle for this many seconds (0 keeps it loaded)."
},
"hfMirrorUrl": {
"title": "Model download mirror URL",
"description": "Base URL for downloading GGUF models (default https://huggingface.co; use https://hf-mirror.com for faster downloads in China)."
},
"localModelsDir": {
"title": "Custom local models directory",
"description": "Leave empty for ~/.dimo/voice-input/models, or set a custom folder to store downloaded and linked GGUF models."
},
"baseUrl": {
"title": "API Base URL",
"description": "Base URL for OpenAI, Groq, or compatible transcription and cleanup endpoints."
"description": "Base URL for OpenAI, Groq, xAI, OpenRouter, or local Whisper (localhost) endpoints."
},
"apiKey": {
"title": "API Key",
"description": "API key for cloud Whisper transcription and LLM text cleanup."
"description": "API key for cloud transcription and LLM cleanup (optional for local localhost servers)."
},
"model": {
"title": "Transcription model",
"description": "Speech recognition model identifier (e.g. gpt-4o-mini-transcribe, whisper-1, whisper-large-v3-turbo)."
"description": "Speech recognition model identifier (e.g. gpt-4o-mini-transcribe, whisper-large-v3-turbo, grok-voice-transcribe-2.0)."
},
"cleanupModel": {
"title": "Cleanup model",
"description": "Lightweight LLM model used for post-transcription cleanup."
"description": "Lightweight LLM model used for draft-aware post-transcription cleanup."
},
"language": {
"title": "Language hint",
Expand All @@ -1166,13 +1209,21 @@
"zh": "Chinese (zh-CN)",
"en": "English (en-US)",
"ja": "Japanese (ja-JP)",
"ko": "Korean (ko-KR)"
"ko": "Korean (ko-KR)",
"de": "German (de-DE)",
"fr": "French (fr-FR)",
"es": "Spanish (es-ES)"
}
},
"translateToEnglish": {
"title": "Translate output to English",
"description": "Translate dictated speech directly into English text (for Whisper/multimodal cloud engines)."
},
"recordingMode": {
"title": "Recording mode",
"description": "Click to toggle start/stop or hold shortcut to talk.",
"description": "Smart auto (tap to toggle, hold >= 300ms to talk), toggle, or push-to-talk.",
"enum": {
"auto": "Smart auto (Tap toggle / Hold to talk, Recommended)",
"toggle": "Toggle start / stop",
"push-to-talk": "Push to talk"
}
Expand All @@ -1183,24 +1234,44 @@
},
"cleanupMode": {
"title": "Post-transcription cleanup",
"description": "Automatically remove spoken fillers and normalize punctuation, preview before inserting, or keep raw output.",
"description": "Automatically clean and insert, preview cleaned vs. raw before inserting, or keep raw output.",
"enum": {
"auto-clean": "Auto-clean and insert",
"preview": "Preview cleaned vs. raw before insert",
"off": "Off (insert raw transcript)"
}
},
"removeFillerWords": {
"title": "Remove spoken filler words",
"description": "Strip hesitation fillers and stutters while preserving hyphenated words like uh-huh."
},
"useLlmCleanup": {
"title": "Enable LLM context cleanup",
"description": "Use surrounding composer draft context for smart punctuation and term correction (skippable mid-run)."
},
"correctionCue": {
"title": "Spoken correction cue",
"description": "Phrase for spoken self-corrections (e.g. 'scratch that'); protected from filler stripping and applied during cleanup."
},
"cleanupInstructions": {
"title": "Custom cleanup instructions",
"description": "Extra formatting or style instructions passed to the cleanup LLM."
},
"vocabulary": {
"title": "Custom vocabulary hotwords",
"description": "Each hotword is stored as an individual token. Press Enter or comma to add, click to remove; used as Whisper prompt context and post-processing glossary."
"description": "Supports plain terms and explicit alias rules (e.g. Dimo = vibe x | vibex) for decoding prompts, alias substitution, and fuzzy phonetic correction."
},
"silenceFiltering": {
"title": "Silence filtering (VAD)",
"description": "Trim leading/trailing silence and long pauses before upload and block empty silent recordings."
},
"audioDeviceId": {
"title": "Microphone input device",
"description": "Target microphone device ID (default uses system default microphone)."
"description": "Target microphone device ID (default uses system default with priority fallback; pick & test in the status bar popover)."
},
"showFloatingHud": {
"title": "Show floating live caption pill",
"description": "Display a floating waveform and live caption pill while recording or previewing."
"description": "Display a draggable frosted-glass waveform pill and interactive preview/error card."
}
}
}
Expand Down
Loading
Loading