github OHF-Voice/wyoming-faster-whisper v3.10.0

one hour ago
  • --stt-library auto now sends German, Spanish, Hungarian, Italian, Dutch,
    Polish, Portuguese, and Romanian to Parakeet TDT v3 (sherpa) instead of
    Whisper, and Bulgarian and Slovak to Canary-1b-v2 (onnx-asr, int8) on
    machines with at least 5 GiB of memory, or Parakeet TDT v3 otherwise. Parakeet
    was limited to English because it picks the language from the audio itself;
    on short commands that was measured reliable for these eight languages, while
    for Bulgarian and Slovak it often answered in Polish or Russian, which Canary
    avoids by taking the language as part of its prompt. See "Which Backend
    auto Picks" in the README for the numbers

    • On 721 recordings of 0.6-3.5 s (13 speakers, 10 languages), mean WER was
      6.5% as routed (11.3% where Bulgarian and Slovak fall back to Parakeet),
      against 40.9% for the tiny-int8 and 27.9% for the base-int8 they
      replace. On a Raspberry Pi 5 a command took 0.4-0.7 s instead of 3.5 s
    • Name biasing (--hass-token, --initial-prompt) only applies to
      faster-whisper and qwen3-asr, so pass --stt-library faster-whisper to
      keep it for these languages
    • With --sherpa-streaming, only languages with a streaming Kroko model
      (de, es) move to sherpa
    • --stt-library onnx-asr defaults to Canary-1b-v2 for every language it
      covers other than Russian (GigaAM) and Lithuanian (LT_ausys), and loads its
      int8 files on a CPU unless --onnx-quantization says otherwise
  • The sherpa backend no longer keeps CPU cores busy after a transcript either,
    which 3.9.1 fixed only for onnx-asr and qwen3-asr. sherpa-onnx creates its
    onnxruntime sessions itself, but since 1.13.5 it reads their settings from a
    provider config file, so spinning is now turned off there too, and the
    sherpa extra requires sherpa-onnx 1.13.5 or newer. With Parakeet TDT v3 on a
    desktop CPU, each transcript had left about 0.2 core-seconds of spinning in
    the second after it; now there is none, for about 15 ms more per command

  • --debug no longer writes the Home Assistant token into the log; the
    startup line shows hass_token='<redacted>' instead

  • --cpu-threads now defaults to 0, meaning one thread per physical CPU core
    this process may use, instead of a fixed 4. Hyperthreads are not counted, as a
    second thread on the same core slows inference down, and CPU affinity
    (taskset, docker --cpuset-cpus) and a cgroup CPU quota (docker --cpus)
    both narrow the count. On an 8-core/16-thread Ryzen 7 5700X, the new default
    of 8 took 9-20% less time per command than 4 for qwen3-asr, sherpa, and
    faster-whisper, while 16 would have taken 8% and 60% more than 4 for qwen3-asr
    and sherpa. A Raspberry Pi 5 (four cores, no SMT) still gets 4

  • Add --onnx-quantization to select quantized onnx-asr model artifacts, such
    as int8, reducing memory use on constrained hosts (#102)

  • Lithuanian is routed to the onnx-asr backend when it is installed, the way
    Russian is routed to GigaAM. The default model for lt there is
    RobertasTa/lt-ausys: Datolabs'
    Upelis (datolabs/upelis-0.6b-lt-v1, a Nemotron 0.6B RNN-T fine-tuned on
    LIEPA-3 and Common Voice, OpenMDW-1.1) exported to ONNX with the Lithuanian
    language prompt built in

    • Measured on one Ryzen 7 8845HS (4 threads, greedy, no VAD) against the
      Lithuanian Whisper fine-tune Paprika (CTranslate2 int8, the files this
      server runs): FLEURS lt WER 8.32 % vs 11.97 %, 0.18 s vs 3.55 s
      per 2–6 s voice command. Whisper pays a fixed 30-second window per
      utterance; a transducer processes only the audio it is given
    • On a CPU the int8 files are loaded (MatMul-only quantization: the same
      accuracy as fp32 on a 119-command intent exam, 0.7 GB instead of 2.5 GB);
      a GPU keeps fp32, as the sherpa backend does. --onnx-quantization
      overrides this
    • The model is pinned to revision caad00f, so a later change to that
      repository reaches users only through a release of this server
    • Without the onnx-asr extra nothing changes: lt keeps falling back to
      faster-whisper. --stt-library onnx-asr now reports lt as well as ru
  • Dependency updates: transformers 4.52.4 → 5.23.0, onnx-asr 0.11.0 →
    0.12.0, sherpa-onnx may now be 2.x, and the Docker images' torch 2.6.0 →
    2.15.0 (CPU) and 2.14.1 (GPU, the last CUDA 12 build). Through
    huggingface-hub 2.x, which transformers 5 allows, startup with a cached
    Hugging Face model is faster: about 0.7 s for faster-whisper. The
    transformers backend also loads about 0.6 s faster and uses about 130 MB
    less memory, but transcribes short commands about 2% slower. Other backends
    are unchanged in speed

  • The Docker image now includes the funasr backend, as the Home Assistant app
    already does, so under --stt-library auto Chinese, Cantonese, Japanese and
    Korean use SenseVoice there too instead of Whisper. The image is about 570 MB
    larger, and SenseVoice downloads about 900 MB the first time it is used

  • Add --qwen3-asr-streaming, which transcribes qwen3-asr while the audio is
    still arriving: all audio so far is decoded again every 2 seconds, each pass
    checking the previous pass's transcript as a draft. Draft tokens that match
    what the model would generate are kept from a single pass instead of being
    generated one by one, and after a differing word decoding finds the draft
    again, so after audio-stop the final pass mostly checks. A draft only changes
    how fast the transcript arrives, not what it says (barring floating-point
    near-ties). Intermediate passes run in the background and are aborted rather
    than waited for when the audio stops. Post-stop latency is ~17% lower for
    short commands and ~30% lower from ~7 seconds of audio up

    • Drafts are used with the merged decoder layout, which the default model
      has; steps after a mismatch also check where the draft resumes. The split
      layout decodes every pass without one: its prefill and step graphs round
      differently, so a draft tipped near-ties there
    • --vad-clip applies to it as well: the final pass skips the silence around
      the speech, which on short commands cuts the time after audio-stop by
      10-17%. The VAD runs as the audio arrives, so clipping costs nothing after
      audio-stop
    • With --vad-clip, the final pass starts when the speaker stops rather than
      when the audio does: once the silence covers the clip's trailing pad, the
      clipped audio cannot change unless they speak again, so it is decoded then
      and audio-stop returns that result. Home Assistant waits for silence of its
      own before stopping the audio, so short commands usually have their
      transcript ready by then (0.31 s → 0 s after audio-stop with 0.8 s of
      trailing silence). If the speaker carries on, the result becomes the next
      pass's draft
  • qwen3-asr without a language no longer risks a nonsense transcript. The
    answer always opens with the detected language ("language English"), and the
    model had to pick that first token itself; on a near-tie it could tip into
    something else, skip the preamble and derail the rest. "Start a timer for 25
    minutes" came out as "ology" on onnxruntime 1.22 on a CPU. The prompt now
    starts the answer with "language", leaving only the name to choose. With a
    language set, as Home Assistant always sends one, nothing changes, and across
    25 clips on onnxruntime 1.22 and 1.32 (CPU) and CUDA, the only other
    difference was one spelling of a name the model does not know

  • The README documents the 1.7B qwen3-asr model, a community int4 export
    with the same layout as the default 0.6B, as an option for a desktop CPU or a
    GPU: about twice the time on a CPU and 1.3 times on a GPU, for transcripts
    that stay the same across onnxruntime versions and devices

Don't miss a new wyoming-faster-whisper release

NewReleases is sending notifications on new releases.