# TTS_10M audit 28 November 2026 · CPU verification on Windows The default acoustic model completed a training and validation run on four cached Hindi audio–transcript pairs. A diagnostic checkpoint generated a 24 kHz mono PCM WAV through the pretrained Vocos decoder. Production speech quality remains unassessed because the workspace contained no trained production acoustic checkpoint. ## Findings and repairs | Area | Observed issue | Repair | | --- | --- | --- | | Alignment | A 5-token, 2-frame example assigned zero frames to four tokens. | Reject impossible alignments and identify the offending sample. Compute alignment scores and the prior-loss denominator in FP32 during mixed-precision training. | | Training | An all-invalid validation pass returned zero loss. Short runs stayed in a 1,000-step warmup. | Invalid validation returns infinity. Short runs use a proportional warmup. An epoch with zero usable optimizer updates raises an error. | | Resume | Best and latest weights shared a mutable trainer state. Resuming a partial epoch advanced to the next one. | Pair each snapshot with optimizer state, validate the pair, restore the random state and resume at the saved batch. The local writer replaces individual files atomically. Older verified pairs and acoustic-only warm starts remain supported. | | Dataset | Local filters were ignored. Header order was assumed. Relative audio paths from a raw Hub manifest were opened in the working directory. | Parse manifest columns by name, apply filters, and resolve raw audio from the manifest's Hub revision. | | Audio preparation | Some cached files named .wav contained FLAC. The collection path treated stereo WAV samples as channels. | Inspect the container signature, use a shared channel-first decoder and downmix along the channel dimension. The curator processes parquet in batches and preserves its source shards. | | Synthesis | Long unpunctuated text bypassed the word limit, boundary spaces were stripped, and each clause reset the global seed. | Bound clause size, add boundary tokens after cleaning and use a request-local generator. Decode each utterance at its own valid length. | | Inference and export | The demo could generate from random weights, partial acoustic checkpoints could load silently, and export could rename a PyTorch file to .safetensors without converting it. | Require compatible weights, expose random weights as a CLI diagnostic, and serialize validated acoustic tensors for export. | ## Verification - All 10 offline regression tests passed. Run them with `python -m unittest discover -s tests -v`. - Three real clips were used for training and one for validation with batch size 1. The final smoke run completed three optimizer updates and recorded a finite validation loss of 17.3013 at step 2. The loss documents execution on this tiny split. - Two interrupted-run comparisons covered a numbered checkpoint and a best checkpoint. In each comparison, all 185 final acoustic tensors matched their corresponding uninterrupted run exactly. - The CLI produced a 26,320-sample, 24 kHz, 16-bit mono WAV. A separate variable-length batch returned individual audio lengths and zero trailing padding. - The mel frontend was compared against the cached pretrained Vocos feature extractor. On a fixed one-second noise input, the maximum absolute log-mel difference was approximately 0.0000153. - A local stereo parquet fixture was collected as a two-second mono clip. A mocked Hub export verified the staged config, model card and all 185 exported tensors. No remote publication was performed. - Measured parameter counts were 8,170,185 for the trainable acoustic model and 13,531,650 for the pretrained vocoder, for a combined 21,701,835. ## Verification limits The small diagnostic run does not establish pronunciation accuracy, naturalness, speaker identity or convergence. CUDA mixed precision was reviewed in source and remains untested on hardware. Gradio and SoundFile were unavailable in this offline environment, so the browser UI and FLAC decoding branch remain untested. WAV decoding and synthesis used the actual audio pipeline and cached Vocos weights.