Skip to content

[FEATURE] Custom STT backend / OpenAI-compatible audio transcription endpoint #1430

Backlog

Description

@benciboy

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: hu forces 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 (hu in 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:

  1. Base URL (e.g., http://localhost:8080)
  2. 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions