StreamingUnifiedAsrManager (Parakeet Unified, 1120 ms tier) drops the first 3–5 s of a sentence after a pause; batch mode transcribes it

Abierto
#1,194 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
42/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
macos, swift

Línea de trabajo

Start with StreamingUnifiedAsrManager, UnifiedAsrManager, and UnifiedRnntDecoder, especially the decoder's hState, cState, and lastToken handling across chunk and sentence boundaries. Reproduce with the described VoxPopuli clip and the [70,7,7] streaming configuration, comparing stream offsets 0, 60, and 76 seconds against batch transcription. Done means the first words after a pause are emitted consistently at every stream offset, with a regression test covering the reported gap.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

FluidAudio: 0.18.4 (e0c6103)
Model: Parakeet Unified 0.6B, int8 encoder
Hardware: Apple M5, 16 GB, macOS 27.0.1

What happens

In long continuous streams (meetings, speeches), StreamingUnifiedAsrManager sometimes stops emitting tokens for several chunks right after a sentence ends and a short pause (about 0.6 s). It resumes partway into the next sentence, sometimes mid-word (one resumption began with the piece ually). finish() has the same gap, so this isn't consumeTokenTimings() failing to drain. The output is deterministic across runs.

UnifiedAsrManager (batch) on the same audio transcribes the missing words.

Whether a phrase is dropped depends on where the stream started, not only on the 6.7 s window the encoder sees:

Start of stream 80.6 s "Mr President, I would like to use the opportunity…"
0 s dropped entirely
60 s "I would like to use the opportunity" ("Mr President" dropped)
76 s "like to use the opportunity"
batch (UnifiedAsrManager) full sentence

Starting at 0 s and starting at 60 s put identical audio in the encoder window at 80 s, because both have more than 6.7 s of history. The streaming state that differs between them is the RNNT decoder state (hState/cState/lastToken in UnifiedRnntDecoder). We suspect the decoder state carried across the sentence boundary suppresses the next sentence's first emissions. We haven't confirmed this.

Reproduction

Audio: VoxPopuli (en) 2018-09-11 plenary segment, 250 s, 16 kHz mono (the clip with "…the Greek people. Mr President, I would like to use the opportunity to say that I withdraw…" at 80–86 s). We can share the exact file if useful.

let manager = StreamingUnifiedAsrManager(config: UnifiedConfig(leftFrames: 70, chunkFrames: 7, rightFrames: 7))
try await manager.loadModels()
// feed 0.56 s (8960 samples) at a time:
for chunk in chunks {
    try await manager.appendAudio(buffer(chunk))
    try await manager.processBufferedAudio()
    print(fed, await manager.consumeTokenTimings().map(\.token).joined())
}
print(try await manager.finish())

Raw tokens per step:

  • fed = 80.64 s: "reek people"
  • 80.64 → 85.68 s: 9 steps with no tokens
  • 85.68 s: " to say"

Batch, fluidaudiocli transcribe vox.wav --model-version unified, outputs "…the Greek people. Mr President, I would like to use the opportunity to say that I withdraw…".

Other configurations:

  • [70,13,13], fed 1.04 s at a time: writes "I would like to use the opportunity" but still drops "Mr President". The sentence at 138.6 s, which the 1120 ms tier also drops, comes out in full.
  • Feeding the [70,7,7] stream 1 s at a time instead of 0.56 s gives the same result as 0.56 s.

Scale

Across 18 English benchmark recordings, Nemotron streaming (also through FluidAudio) is better on close-talk AMI, Earnings-22 and one VoxPopuli clip, mostly because of these dropped runs. In one 25-minute AMI close-talk meeting we counted 22 gaps of 3 or more chunks where Nemotron wrote 4 or more words, 169 words in total. Most follow a speaker change or overlap, but single-speaker speeches show the same thing.

One open question: batch and streaming use different encoder files (full-context vs the 70_7_7 export). So we can't fully rule out the streaming encoder export rather than the decoder-state carry-over. A NeMo streaming reference run on the same clip would settle it.


Generated by Claude Code

Lenguaje dominante
Swift
Estrellas
3k
Forks
451
Merge medio
1 d 19 h
PR fusionados (30 d)
87

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de FluidInference/FluidAudio

Todos los issues de FluidInference/FluidAudio

Issues similares

Más issues de Swift

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.