Repository navigation
Description
Problem
FluidVoice supports several built-in speech models (Parakeet, Whisper, Qwen3 ASR, Nemotron, Cohere, Apple Speech), but all are hardcoded into the Voice Engine. There is no way to point the STT layer at a custom model running locally or on a custom endpoint (e.g., http://localhost:8080/v1/audio/transcriptions).
Use case: Hungarian-English code-switching
I dictate in Hungarian mixed with English technical terms ("deployoljunk egy feature-t a prod-ra", "pull request", "branch", "kubernetes"). No built-in model natively handles this:
- Parakeet TDT v3: Hungarian supported but code-switching is not, custom words only boost Parakeet vocab
- Qwen3 ASR 1.7B: 30 languages, auto-detects, but no code-switching support, model locks to one language
- Whisper Large/Turbo:
language: huforces Hungarian, but English tech terms get phonetically mangled
The closest model for this scenario is Microsoft VibeVoice-ASR (microsoft/VibeVoice-ASR), which:
- Natively handles code-switching within and across utterances (no language setting required)
- Supports custom hotwords (technical terms baked into transcription, not post-processing)
- Covers 50+ languages including Hungarian (
huin the language list) - MIT licensed
- GGUF builds exist for local inference (ggml-org/VibeVoice-ASR-GGUF, llama.cpp PR #32329)
- BitNet variant runs real-time on Apple M4 CPU (RTF 0.20, 1.58 GB model)
Why code-switching models beat custom dictionaries
Current workarounds (Custom Words, Instant Replacements, post-processing LLM) are reactive: you must pre-guess every tech word that might be misheard. A native code-switching model proactively understands that Hungarian + English in the same utterance is normal and handles it correctly without any manual dictionary.
Proposed solution
Add a "Custom STT Provider" option to the Voice Engine settings that accepts:
- Base URL (e.g.,
http://localhost:8080) - API format selector: OpenAI-compatible (
/v1/audio/transcriptions), or a future native integration
This mirrors what FluidVoice already does for AI Enhancement (OpenAI, Groq, Ollama localhost:11434/v1) but for the transcription layer instead of post-processing.
Models this would immediately enable
llama serve -hf ggml-org/VibeVoice-ASR-GGUF→ native code-switching, Hungarian, hotwords- Any future Whisper fine-tune or ASR model published as GGUF
- Local deployment of any OpenAI-compatible STT endpoint (VibeASR.cpp, custom Whisper server, etc.)
Technical notes
- The Swift binding already supports transcribe.cpp for GGUF models (
altic-dev/transcribe-cpp-swift). A native GGUF path for VibeVoice-ASR would follow the same pattern as the Qwen3 ASR integration (PR Add Qwen dictation and improve short recordings #1239,SettingsStore.qwen3Asr17B). - An HTTP-based custom provider would be simpler to implement first and would work with any OpenAI-compatible transcription endpoint.
- Related: [FEATURE] Multi-language mode: choose several languages, auto-detect within them (dictation + FluidMeet) #1387 (Multi-language mode), [FEATURE] Please add Qwen3 ASR 1.7B voice engine #1199 (Qwen3 ASR integration precedent), [FEATURE] Models | allow dynamic model picking #1347 (dynamic model picking).
Activity