Skip to content

Complete remaining live STT modes and cross-platform validation #327

Open

Description

@leehack

Status 2026-11-11: Pins: native llama.cpp v0.9.0, LiteRT-LM v0.19.1-4 (core 0.19.6). llamadart-native#112 is still open and owns artifact qualification; remaining modes and validation below are unchanged.

Current status

Stateful LiteRT-LM streaming PCM and app-level live dictation have shipped:

The shipped LiteRT-LM path is stateful streaming PCM. The llama.cpp/Qwen3-ASR path remains whole-encoded-audio and must not be described as stateful.

As of 2026-10-16, the then-pinned native v0.6.0-3 predated this new upstream API, and native v0.7.0 also predated its merge; the current pin is v0.9.0 (not re-checked for this API). Native #112 owns artifact qualification; a separately versioned owner session boundary, bindings, input/progress/cancel/finalization capabilities and direct/worker parity must precede any new Dart claim.

Remaining modes and validation

  • llama.cpp/Qwen3-ASR accumulative or bounded windowed input.
  • Assess the new upstream mtmd_audio_stream boundary (llama.cpp#30629, 2851b3bcbf8d993a2243ae751c0a7dfa8e944a40) for a persistent session. It adds Voxtral-realtime infrastructure; it does not establish Qwen3-ASR compatibility or public CLI/server completion.
  • Cross-platform physical microphone/model coverage, especially Windows and Linux.
  • Five-minute memory, cancellation and producer-backpressure measurements.
  • Any future timestamp, confidence, language or diarization contract, only when supplied truthfully by the backend.

Acceptance gates

  • Every input mode is capability-routed explicitly; whole-input, windowed and stateful are never conflated.
  • Random PCM chunk boundaries produce the same final transcript and confirmed text remains monotonic.
  • Missing, duplicate and out-of-order chunks fail explicitly.
  • Audio buffering is bounded with no silent frame drops; cancellation releases blocked producers and prevents late callbacks.
  • Repeated start/finish/cancel cycles do not leak or deadlock.
  • Sustained real-time factor, partial/final latency and five-minute memory bounds are recorded for every claimed baseline.
  • Windows/Linux and representative physical-microphone behavior are classified before broadening support claims.

Whole-input production validation is tracked in #325. Web hardware/WebGPU validation is tracked in #329.

Activity

  1. added
    enhancement
    on Aug 11, 2026
  2. changed the title [-]Add live speech-to-text sessions with explicit accumulative, windowed, and stateful modes[/-] [+]Complete remaining live STT modes and cross-platform validation[/+] on Aug 21, 2026
  3. leehack commented on Aug 21, 2026

    @leehack
    OwnerAuthor

    Delivered scope and remaining modes — 2026-08-21

    The stateful LiteRT-LM path and app-level live dictation described here have shipped:

    The tracker remains open for the modes that were intentionally not claimed: llama.cpp/Qwen3-ASR accumulative or windowed input, a persistent llama.cpp streaming session, cross-platform real-microphone/model coverage (especially Windows/Linux), sustained five-minute memory and cancellation/backpressure measurements, and any future timestamp/diarization contract.

    The shipped LiteRT-LM session should be described as stateful streaming PCM. The existing llama.cpp Qwen3-ASR path remains whole-encoded-audio and must not be relabeled as stateful.

  4. added
    priority:P2
    priority:P3
    and removed
    priority:P2
    on Aug 21, 2026
  5. leehack commented on Nov 10, 2026

    @leehack
    OwnerAuthor

    2026-11-10 llama.cpp candidate delta: Gemma4 streaming audio input#31965,20c2e966, firstb12237, adds a stateful existing-family input capability. Resampler#31964,3d94ffe4, firstb12236, adds init/process/free with output borrowed only until the next process call and fixes upstream#31696.

    Both remain RAW ONLY: owner/native/public core0.19.3 still use llama.cpp0.9/cd959bae. This does not turn complete-PCM transcription into live input or establish Qwen3-ASR compatibility. Keep P3 and the existing session/backpressure/event contract. Before admission: owner guarded stream/resampler lifetime and exports, copied buffers/bindings, explicit probes/version refusal, chunk/rate/flush/pause/finalization/error/cancel/reuse/exit controls, reference transcript/embedding semantics and sustained memory on actual platforms. Upstream chunked-GPU similarity varies; whole-input success is not live-stream qualification. No model/device or workflow execution by this scan.

  6. leehack commented on Nov 17, 2026

    @leehack
    OwnerAuthor

    Update 2026-11-17: a planner assessed llama.cpp live ASR on mtmd_audio_stream_* (present unchanged since v0.8.0; v1.0.0 adds only the Gemma 4 stream and mtmd_helper_resampler_*). Only Voxtral Realtime (voxtral_rt) and LFM3-Audio with its asr template produce live transcripts; Qwen3-ASR (qwen3a) is unsupported. Driving it safely needs a guarded native session in llamadart-native (#148), not direct Dart calls. Plan and probe results: llamadart-evidence/issue-327/live-stt-plan.md.

  7. leehack commented on Nov 18, 2026

    @leehack
    OwnerAuthor

    2026-11-18 owner delivery: native#200 is published in1.0.0-1,10bf3d2c, with14guarded llama_dart_asr_stream exports. Contract:16kHzmono queue/session, boundedstep, context-full/cancel/reset/teardown, VoxtralRealtime TOKEN_DELAY and LFM3Audio PROMPTED_CHUNKS; Qwen3ASR refused. This is no longer absent owner support.

    Coremain8f3ac77 has generatedbindings/pin but no public llama.cpp liveASR wiring; public0.19.11 retains whole-input Qwen3ASR and the separate already-shipped LiteRT live path. Keep P3/open and0.20.x scope. Nextconsumer boundary: explicit capability/version/family probe, copied boundedPCM/backpressure/events, UTF8 segments, randomchunk/finalization/cancel/reuse/5minmemory and affected real-model/platform checks. Owner#202 retains prompted-mode/UTF8/cancel/reset/32bit/slowhost follow-ups. Do not turn nativeexports into a public live-transcript claim; no newrun by this scan.

  8. leehack commented on Nov 18, 2026

    @leehack
    OwnerAuthor

    2026-11-18: llama.cpp live (stateful) ASR landed for 0.20.1 — #2054 (internal native service on native v1.0.0-1 llama_dart_asr_stream_*, a60436bf) and #2055 (public LlamaCppLiveAsrAdapter via SpeechToTextEngine.startStream(), 540ab02a). Families: Voxtral Realtime (token-delay) and LFM3-Audio (prompted chunks, 2,048-position floor). Qwen3-ASR stays whole-input and is refused for live input; Web refuses. Recorded on macOS arm64 CPU (2 threads): 300 s live-paced runs for both models (first partial ~1.0–1.3 s, finalize 26–204 ms, no lost audio), fast runs, cancel/dispose/restart cycles. Still open here: Qwen3-ASR windowed input, Windows/Linux and physical-microphone classification, and memory bounds asserted (currently logged).

  9. leehack commented on Nov 19, 2026

    @leehack
    OwnerAuthor

    Memory-growth calibration, 2026-11-19. Each row is 3 independent 300 s runs at 2 threads, ctx 4096, CPU. The ceilings are going into a follow-up to #2062.

    Host Voxtral peak growth / RTF LFM3 peak growth / RTF
    macOS arm64, paced 297–324 MiB / 1.00–1.16 23–29 MiB / 1.00
    Linux x64 (n2-standard-8), fast / paced 324–328 MiB / 3.74–3.86 32–45 MiB / 0.72 fast, 1.00 paced
    Windows x64 (n2-standard-8), fast / paced 293–294 MiB / 4.09–4.31 15–18 MiB / 0.75 fast, 1.00 paced

    Classification: on x64 CPU with 2 threads, Voxtral Realtime runs about 4× slower than real time, so it can't keep up with live input. LFM3-Audio keeps up. Windows L4 CUDA and the physical-microphone rows are still open.

  10. leehack commented on Nov 19, 2026

    @leehack
    OwnerAuthor

    2026-11-19 layer reconciliation: public 0.20.1 now contains LlamaCppLiveAsrAdapter/startStream for native Voxtral Realtime and LFM3-Audio; its archive pins native v1.0.0-2 (minimum live-session ABI remains v1.0.0-1). Qwen3-ASR is still whole-input in that published package. #2063 / #2064 subsequently merged the opt-in Qwen3WindowedAsrAdapter and explicit inputMode probe on main: windowed re-decoding is NOT stateful native Qwen support, requires verified qwen3a projector ownership, and refuses Web/attach. No native export or binding change is needed for this windowed adapter.

    Its bounded macOS CPU evidence records 2/4/6-second replaceable partials, first confirmation after 8 seconds plus decoding (paced 8.34 s), and LibriSpeech 5.88% WER. #2066 calibrates asserted memory ceilings; the recorded two-thread Linux/Windows CPU Voxtral RTF 3.74–4.31 cannot sustain live input, while LFM3 does. Do not generalize macOS or software evidence to hardware GPU/mobile. 0.20.2 plan #2059 owns publication/current-head acceptance and the maintainer's macOS microphone run; Windows/Linux microphone and Windows CUDA classification remain distinct. #2065 adds a harness, not a performed microphone pass. Existing remaining acceptance is preserved.

  11. leehack commented on Nov 19, 2026

    @leehack
    OwnerAuthor

    macOS physical-microphone run, 2026-11-19: MacBook Pro Microphone through FFmpeg 9.0.2 AVFoundation, CPU, at 4df4c7ed (includes the capture fix #2076). Every model passed the lifecycle checks: each completed recording delivered exactly 320,000 samples, partials arrived while capturing, there was one final after stop, and the 8 s cancellation produced zero finals.

    Model WER finish / restart First partial (ms) Final after stop (ms) Observation
    LFM3-Audio 2B 0.086 / 0.171 3357 / 1296 100 / 174 Accurate. The restart adds a short spurious prefix ("Boom, passed.") and ends at "by the".
    Qwen3-ASR windowed 0.057 / 0.286 2583 / 4766 334 / 350 Accurate on finish. The restart transcript ends with "Transcreva este áudio com precisão." (Portuguese for "Transcribe this audio accurately"), which looks like the prompt leaking into the output.
    Voxtral Mini 4B Realtime 0.829 / 0.829 2610 / 1637 877 / 876 The transcript repeats the phrase twice in both completed recordings, while the same reading transcribed once on LFM3 and Qwen. The words themselves are close.

    The Qwen prompt leak and the Voxtral duplication are being diagnosed and will get their own issues. The receipts are kept privately as evidence. The Windows and Linux physical-mic rows stay open.

  12. leehack commented on Nov 19, 2026

    @leehack
    OwnerAuthor

    Follow-up on the mic results, from controlled say-generated audio through the same live path:

    • Voxtral: no duplication defect. One reading produced 35 words and two readings 70, with zero word errors and no segment breaks. The repeat in the mic run was the operator reading the phrase more than once.
    • LFM3: no reproducible prefix or truncation defect.
    • Qwen3-ASR windowed: confirmed. Quiet noise after speech makes it commit a hallucinated prompt echo. Tracked in Qwen3-ASR windowed live adapter commits a hallucinated prompt echo on quiet noise #2079 (P2) for 0.20.2.
  13. leehack commented on Nov 20, 2026

    @leehack
    OwnerAuthor

    2026-11-20 publication/validation boundary: opt-in Qwen3WindowedAsrAdapter/inputMode now first ships in core0.20.2, alongside calibrated memory ceilings and the #2079 quiet-noise mitigation. Native v1.0.0-3/b1b770d9 is pinned; windowed Qwen re-decodes bounded input and is not stateful native Qwen support. The existing Voxtral/LFM3 stateful mode remains distinct.

    The maintainer's recorded macOS physical-microphone follow-up resolves the apparent Voxtral duplication as repeated operator speech and finds no reproducible LFM3 prefix/truncation defect; do not retain those as confirmed bugs. Windows/Linux microphone and Windows CUDA evidence are not established by that macOS run. Published two-thread x64 Voxtral CPU still cannot keep up with live audio.

    #2088 residual partial echoes were not fixed by0.20.2. #2093, merged5804c8fe, is a bounded source mitigation for four known instruction forms, pending0.20.3; preserve its documented quiet/misrecognized exact-instruction dictation/empty-completion limits. Whole-encoded-file windowing, broader accuracy and other original acceptance remain open. No generic ASR-family or platform-qualification expansion.

  14. added
    speech
    on Nov 25, 2026
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

    enhancementpriority:P3speech

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions