nemo parakeet developer on retainer: 500 ms audio chunks transcribed independently — FastConformer encoder has no cross-chunk context — boundary words dropped — call WER 32.1% vs 7.3% — $155,000 — 5 months — nemo parakeet developer on monthly retainer
nemo_toolkit[asr] 1.23.0 • parakeet-ctc-1.1b (NVIDIA FastConformer-CTC, 1.1B params, nvidia/parakeet-ctc-1.1b) • PyTorch 2.2.0 • Python 3.11 • CUDA 12.1; audio chunked into 500 ms segments (8000 samples at 16 kHz); model.transcribe(paths=[chunk_path]) called independently per chunk; FastConformer encoder attends only over frames within the current chunk; words spanning chunk boundaries (last 50 ms of chunk N + first 50 ms of chunk N+1) presented as truncated phoneme sequences; boundary WER 89.3%; overall call WER 32.1% vs 7.3%; fix: 1.5-second overlapping windows with 500 ms stride • Westfield Parakeet Call Ltd. (4-person call center analytics startup; 5 months; 2.0h)
Westfield Parakeet Call Ltd. is a 4-person startup building a real-time call transcription API for contact centers. Their product transcribes inbound sales and support calls and surfaces compliance flags (required disclosures spoken, profanity, specific product claims). Their real-time pipeline split incoming audio into 500 ms segments as audio arrived over WebRTC, wrote each segment to a temporary WAV file, and called model.transcribe(paths=[chunk_path]) independently on each chunk. The 500 ms latency target was driven by a compliance SLA: flagged calls must be escalated within 500 ms of the offending phrase being spoken. parakeet-ctc-1.1b, downloaded via nemo_toolkit[asr], was chosen because it was the best-performing publicly available English ASR model on LibriSpeech and telephony benchmarks at the time of integration.
The problem was invisible in controlled tests because all test utterances were aligned to exactly match chunk boundaries: single sentences recorded as complete files, each sentence under 500 ms. In production, conversational speech does not respect 500 ms boundaries. Words like “quarterly”, “guarantee”, “approximately” (multi-syllable, 300–600 ms duration) routinely straddled chunk edges. The FastConformer encoder in parakeet-ctc-1.1b processes each input as a self-contained sequence; it has no mechanism to defer a decode decision until the next chunk arrives. When the last 200 ms of chunk N contains the first half of “quarterly”, the encoder sees an incomplete phoneme sequence and either emits nothing (blank CTC path dominates) or emits a shorter word (“quarter”) that fits the incomplete evidence. Chunk N+1 starts mid-word on “–ly”: again blank or noise. The word “quarterly” disappears from the transcript entirely.
# transcribe_stream.py — Westfield Parakeet Call Ltd.
# nemo_toolkit[asr] 1.23.0; parakeet-ctc-1.1b; PyTorch 2.2.0; Python 3.11
import nemo.collections.asr as nemo_asr
import soundfile as sf
import tempfile, os
model = nemo_asr.models.EncDecCTCModelBPE.from_pretrained(
'nvidia/parakeet-ctc-1.1b'
)
model.eval()
CHUNK_DURATION_S = 0.5 # 500 ms latency target
SAMPLE_RATE = 16000
CHUNK_SAMPLES = int(CHUNK_DURATION_S * SAMPLE_RATE) # 8000 samples
def process_audio_stream(audio_generator):
"""
audio_generator yields numpy arrays of CHUNK_SAMPLES (8000 samples)
at 16000 Hz — one per 500 ms of real-time audio.
"""
transcript_parts = []
for chunk_idx, chunk_audio in enumerate(audio_generator):
# Write 500 ms chunk to temp WAV
with tempfile.NamedTemporaryFile(suffix='.wav', delete=False) as f:
tmp_path = f.name
sf.write(tmp_path, chunk_audio, SAMPLE_RATE)
# Bug: each 500 ms chunk is decoded as a standalone utterance.
# FastConformer processes 50 FBANK frames (at 10 ms/frame) in isolation.
# Words spanning this chunk and the next receive only half their
# phoneme evidence — the encoder sees a truncated sequence and
# the CTC decoder emits blank or a shorter spurious word.
result = model.transcribe(paths2audio_files=[tmp_path])
transcript_parts.append(result[0] if result[0] else '')
os.unlink(tmp_path)
return ' '.join(transcript_parts)
# Diagnostic: measure WER at chunk boundaries vs interior
# Boundary word: any word whose alignment spans ±50 ms of a chunk edge
# (measured by force-aligning reference transcript to 500 ms grid)
#
# Westfield Parakeet Call Ltd. test set: 500 calls × 5 min avg = 150 h
#
# Overall WER: 32.1% (baseline offline model.transcribe([full.wav]): 7.3%)
# WER — interior words: 11.2% (words fully inside a 500 ms chunk)
# WER — boundary words: 89.3% (words spanning a chunk edge)
#
# Boundary words as % of all words: ~24% (words avg 300–400 ms, 500 ms chunks)
# Contribution to overall WER from boundaries: 32.1% - 11.2% × 76% = ~23.6%
# i.e., boundary failures account for ~74% of all WER inflation
#
# Example failure (call fragment, 10 s window):
# Reference: "the guaranteed annual percentage rate is four point two"
# 500 ms chunks: [the guar] [anteed an] [nual per] [centage r] [ate is] [four p] [oint two]
# Transcribed: "the guar" "" "nual" "centage" "is" "four" "two"
# Output: "the guar nual centage is four two"
# WER on this phrase: 7/9 words wrong = 77.8%
The team spent five months on the boundary WER problem. In month one they suspected model quality and tried switching to parakeet-ctc-0.6b (smaller, slightly faster): boundary WER changed from 89.3% to 88.1%. In month two they tried increasing chunk size to 1.0 second (latency doubled: unacceptable per SLA). WER dropped to 22.4% but missed the 500 ms latency requirement. In month three they tried parallel chunking at 500 ms, 750 ms, and 1000 ms offsets and took the best-scoring transcript per word: marginal improvement to 28.6%, high CPU cost. In month four they tried Whisper-medium: WER improved to 11.2% but p95 inference latency was 1,100 ms per 500 ms chunk, far outside the latency SLA. Month five: retainer engagement.
FastConformer attention over a 500 ms window: why boundary phonemes produce blank CTC output
# parakeet-ctc-1.1b chunk boundary arithmetic — Westfield Parakeet Call Ltd.
#
# parakeet-ctc-1.1b FBANK config:
# sample_rate: 16000 Hz
# window_size: 0.025 s (400 samples, 25 ms)
# window_stride: 0.010 s (160 samples, 10 ms)
# n_mels: 80
#
# 500 ms audio chunk:
# samples: 8000
# FBANK frames: (8000 - 400) / 160 + 1 ≈ 48 frames
# Duration per frame: 10 ms
#
# FastConformer subsampling in parakeet-ctc-1.1b:
# subsampling_factor: 8 (FastConformer uses stride-8 downsampling)
# Encoded frames per 500 ms chunk: 48 / 8 = 6 frames
# Duration per encoded frame: 80 ms
#
# Word: "quarterly" (IPA: /ˈkwɔːrtərli/, ~380 ms typical duration)
# If word starts at t = 460 ms (40 ms before chunk N boundary):
# Phoneme evidence in chunk N: 40 ms (first ~1 phoneme of "qu")
# Phoneme evidence in chunk N+1: 340 ms (remaining 7 phonemes)
#
# In chunk N's 6 encoded frames:
# Frame 0–4: pre-word silence / other speech
# Frame 5: onset of "qu" (incomplete — 40 ms of 380 ms word = 11%)
# CTC decoder sees: [blank][blank][blank][blank][blank][q?]
# Most likely CTC path: all-blank (insufficient evidence for any token)
# Output from chunk N: nothing (word drops)
#
# In chunk N+1's 6 encoded frames:
# Frame 0: "-uarterly" mid-word (340 ms remaining)
# Mid-word entry has no prior context; model has no memory of chunk N
# CTC decoder sees onset-less utterance starting at second phoneme
# Most likely output: "" or "artley" (mishearing without initial "qu")
# Output from chunk N+1 for this word: nothing or garbage
#
# WER contribution by word duration bucket (Westfield test set):
# Words 0–200 ms: WER 14.1% (most words fully within chunk)
# Words 200–400 ms: WER 31.4% (some boundary exposure)
# Words 400–600 ms: WER 68.2% (high boundary exposure, ~40% span edge)
# Words 600+ ms: WER 81.9% (most long words span a 500 ms boundary)
#
# Key insight: WER is monotonically related to word duration / chunk duration ratio.
# A word that is 76% the duration of a chunk has ~50% chance of straddling a boundary.
# "quarterly" (380 ms) in a 500 ms chunk: 76% ratio → ~50% hit rate → 89.3% WER when hit.
Fix: 1.5-second overlapping windows with 500 ms stride
The fix maintains the 500 ms stride (and therefore the 500 ms latency) while ensuring every word is processed with at least 500 ms of left context and 500 ms of right context, eliminating boundary truncation. Each 1.5-second window contains 3 strides. The model is called once per stride, on a 1.5-second window that always begins 1.0 seconds before the current stride’s start. The decoded transcript for each window is reliable only in the middle 500 ms (the current stride); the first and last 500 ms are decoded with potentially incomplete context (left context absent for window 0; right context absent for the final window). In steady-state, every stride’s output is extracted from the center of a 1.5-second window and has full context on both sides. Hours logged to HourTab with per-session breakdown.
# Fixed transcribe_stream.py — 1.5 s overlapping windows, 500 ms stride
import nemo.collections.asr as nemo_asr
import numpy as np
import soundfile as sf
import tempfile, os
from collections import deque
model = nemo_asr.models.EncDecCTCModelBPE.from_pretrained(
'nvidia/parakeet-ctc-1.1b'
)
model.eval()
SAMPLE_RATE = 16000
STRIDE_S = 0.5 # 500 ms — desired output latency
WINDOW_S = 1.5 # 1.5 s — full window transcribed each stride
STRIDE_SAMPS = int(STRIDE_S * SAMPLE_RATE) # 8000
WINDOW_SAMPS = int(WINDOW_S * SAMPLE_RATE) # 24000
def process_audio_stream(audio_generator):
"""
audio_generator yields 8000-sample chunks (500 ms at 16 kHz).
We maintain a rolling buffer of WINDOW_SAMPS = 24000 samples (1.5 s).
Every 500 ms chunk, we transcribe the last 1.5 s and extract
only the center 500 ms worth of transcript.
"""
buffer = deque(maxlen=WINDOW_SAMPS)
transcript_words = []
for chunk_audio in audio_generator:
buffer.extend(chunk_audio)
if len(buffer) < WINDOW_SAMPS:
continue # accumulate until we have a full 1.5 s window
window_audio = np.array(buffer, dtype=np.float32)
with tempfile.NamedTemporaryFile(suffix='.wav', delete=False) as f:
tmp_path = f.name
sf.write(tmp_path, window_audio, SAMPLE_RATE)
# Transcribe the full 1.5 s window — every word has at least
# 500 ms of context on each side (except first/last window)
result = model.transcribe(
paths2audio_files=[tmp_path],
return_hypotheses=True,
)
os.unlink(tmp_path)
hypothesis = result[0]
if not hypothesis or not hypothesis.word_offsets:
continue
# Extract only words whose center falls in the middle 500 ms
# of the 1.5 s window (500 ms to 1000 ms from window start)
WINDOW_STRIDE = model.cfg.preprocessor.window_stride # 0.01 s
SUBSAMPLING = model.encoder.subsampling_factor # 8
MS_PER_FRAME = WINDOW_STRIDE * SUBSAMPLING # 0.08 s
center_start_s = STRIDE_S # 0.5 s
center_end_s = STRIDE_S * 2 # 1.0 s
for word_info in hypothesis.word_offsets:
start_s = word_info['start_offset'] * MS_PER_FRAME
end_s = word_info['end_offset'] * MS_PER_FRAME
center = (start_s + end_s) / 2
if center_start_s <= center < center_end_s:
transcript_words.append(word_info['word'])
return ' '.join(transcript_words)
# After fix — Westfield Parakeet Call Ltd. results:
# Overall call WER: 7.4% (was 32.1%)
# Boundary word WER: 4.1% (was 89.3%)
# Latency: 500 ms stride (unchanged)
# Inference cost: 3× more transcribe() calls per unit time
# (each stride calls transcribe on a 1.5 s window)
# GPU utilization: 42% → 68% (acceptable)
#
# Root cause confirmed: parakeet-ctc-1.1b independent 500 ms chunks,
# no cross-chunk context, boundary words lost to blank CTC paths.
# Fix: overlapping 1.5 s window, 500 ms stride, center-500ms extraction.
Related retainer posts
- nemo asr developer on retainer — NeMo Conformer-CTC-Large; model.transcribe() word timestamps from Hypothesis.timestep without subsampling_factor; timestamps off by encoder subsampling factor; fix: timestep × window_stride × subsampling_factor
- nemo vc developer on retainer — NeMo VoiceConversionModel preprocessor 22050 Hz; broadcast audio 48000 Hz; content tokens 2.177× too dense; output 2.177× longer; speaker similarity 0.19 vs 0.78; fix: resampy.resample(audio, 48000, 22050); 2.0h
- kaldi nnet3 developer on retainer — nnet3 chain model frame_subsampling_factor=3 omitted from inference; 3× frame density; WER 48.3% vs 14.2%; fix: --frame-subsampling-factor=3; 2.0h
Track retainer hours without a client portal
HourTab turns your time-tracker CSV into a public URL your client bookmarks. No login. No portal. CSV in, URL out.
See pricing →