Token-and-Duration Transducer ASR, Kokoro-82M Prosody & EBU R128 Loudness DSP
Cloud audio subscriptions meter creators twice—charging per minute to transcribe interviews into SRT captions and per thousand characters to synthesize voiceovers. Here is how Destiny executes word-timed TDT speech recognition, neural TTS, and broadcast EBU R128 loudness mastering locally on Apple Silicon.
1. Frame-Skipping Lattice Math in Token-and-Duration Transducers
Given a Conformer encoder sequence h_1..h_T sampled at 40 ms subsampled mel-spectrogram strides, a standard RNN-Transducer computes joint logits over vocabulary V union {blank} and steps t -> t + 1 only on blank emissions. A Token-and-Duration Transducer (Xu et al., 2023) factors the joint output into two independent heads—token distribution P_tok(y | t, u) and discrete duration jump P_dur(d in {0, 1, 2, 3, 4} | t, u)—advancing frame index t -> t + max(1, d) across non-speech stretches while pinning exact millisecond cue points for .srt and .vtt subtitle exports.
2. Deterministic Phoneme Alignment & Sub-Real-Time Vocoding
Autoregressive speech models occasionally skip words or hallucinate trailing syllables on technical acronyms. Explicit duration-predicted acoustic synthesis maps IPA phoneme sequences through a monotonic duration predictor and pitch/energy contour estimator before inverse short-time Fourier synthesis—guaranteeing 1:1 lexical fidelity on technical product documentation while fitting comfortably alongside video timelines in 16 GB Unified Memory.
3. Biquad K-Weighting, Two-Stage Gating & -1.0 dBTP True Peak Limiting
Broadcast and streaming delivery targets (-14.0 LUFS for web video, -16.0 LUFS for stereo podcasts, -23.0 LUFS for EBU R128 broadcast) measure integrated loudness over 400 ms 75%-overlapping blocks after cascading two second-order IIR biquads:
// Stage 1: Acoustic head-diffraction high-shelf (+4 dB above 1.5 kHz)
// Stage 2: Revised Low-Frequency B-curve (RLB) high-pass (~38 Hz)
z_j = (1 / T_block) * integral( y_K_j(t)^2 dt )
L_block = -0.691 + 10 * log10( sum_j G_j * z_j )
// Gate 1 (Absolute): keep blocks with L_block > -70.0 LKFS -> compute Gamma_a
// Gate 2 (Relative): keep blocks with L_block > Gamma_a - 10.0 LU -> Integrated LUFSExecuting both biquads and 4x polyphase FIR inter-sample True Peak detection via Apple Accelerate vDSP_biquadD processes a 60-minute stereo 48 kHz master in milliseconds.
4. Interactive Creator & Production Stack 3-Year TCO Calculator
Compare per-minute cloud transcription, TTS character quotas, and video SaaS seats against Destiny.
Cite reproducible Apple M4 Pro Unified Memory benchmark receipts in engineering repositories.
TDT Speech, Kokoro-82M & EBU R128 DSP — FAQ
Engineering answers on frame-skipping transducers, lexical TTS fidelity, BS.1770-4 loudness gating, and ethical voice policies.
- Why does a Token-and-Duration Transducer (TDT) decode faster than standard RNN-T speech models?
- Standard Recurrent Neural Network Transducers (RNN-T) advance exactly one acoustic frame per blank emission, evaluating the joint network across every silent or steady-state frame. Token-and-Duration Transducers jointly predict both the vocabulary token and the integer number of acoustic frames to skip, slashing decoder steps by 50% to 70% while preserving word-level SRT/VTT boundary timestamps.
- How does Kokoro-82M achieve natural prosody inside a compact local parameter footprint?
- Instead of multi-billion-parameter autoregressive audio tokenizers, Kokoro-82M pairs grapheme-to-phoneme duration alignment with lightweight style-vector conditioning and an ISTFTNet/HiFi-class neural vocoder—synthesizing crisp waveform audio locally on Apple Silicon without per-character cloud API charges.
- Why normalize narration to -14 LUFS or -16 LUFS with ITU-R BS.1770-4 K-weighting instead of peak limiting?
- Sample-peak or naive RMS normalization ignores human ear frequency sensitivity and boosts quiet room-tone sections equally with speech. ITU-R BS.1770-4 applies a two-biquad K-weighting pre-emphasis filter (head-acoustics high-shelf + RLB high-pass) followed by two-stage EBU R128 gating (-70 LKFS absolute gate and -10 LU relative gate) and 4x oversampled True Peak limiting (-1.0 dBTP).
- Are Destiny voice synthesis and transcription tools intended for deceptive voice cloning?
- Never. Destiny ships curated, licensed stock voice styles for legitimate narration, accessibility, and product walkthroughs, and strictly prohibits unauthorized third-party voice impersonation.