SSML Break Tags in Neural TTS Pause Prediction
Speech Synthesis Markup Language (SSML)
<break time="...ms"/> tags allow developers to
manually specify pause lengths, but modern neural Text-to-Speech (TTS)
systems do not simply insert digital silence into an audio stream.
Instead, these explicit millisecond values are ingested by the text
frontend, translated into structured conditioning inputs, and processed
by duration predictors and variance adaptors. This process influences
not only the exact duration of the pause frames, but also the
surrounding prosodic boundary markers, pre-pause syllable lengthening,
and vocoder-level ambient acoustic synthesis.
Frontend Parsing and Token Representation
When a neural TTS pipeline encounters an SSML break tag with a
defined millisecond attribute—such as
<break time="250ms"/>—the text-processing frontend
isolates the tag from the surrounding graphemic text. Rather than
stripping the tag entirely, the frontend converts it into an internal
representation. Depending on the architecture, this is handled in one of
two ways:
- Specialized Pause Tokens: The tag is converted into
a distinct pause or silence token (e.g.,
<SIL>or<PAUSE>) inserted into the phoneme sequence, accompanied by an explicit duration attribute. - Feature Conditioning Vectors: The millisecond value is mapped directly to a continuous numerical feature or a quantized duration bucket assigned to the adjacent word boundary.
Because phoneme sequences in neural models are tied to linguistic features, the pause token is contextualized alongside syntactic boundary information, ensuring the surrounding words recognize that an acoustic break is imminent.
Duration Predictor Overrides in Acoustic Models
In modern non-autoregressive acoustic models (such as FastSpeech 2, Matcha-TTS, or VITS), duration is explicitly modeled via a duration predictor—a sub-network trained to predict the number of acoustic frames (typically corresponding to a mel-spectrogram hop size, such as 10ms or 12.5ms per frame) each phoneme occupies.
Under normal conditions, a naturally occurring silence token's duration is inferred based on context. However, when an explicit millisecond duration is provided via SSML:
- Frame Count Calculation: The millisecond duration is converted into a discrete target frame count: \[\text{Target Frames} = \frac{\text{Duration (ms)}}{\text{Hop Length (ms)}}\]
- Hard Overrides: The predicted frame count output by the duration predictor for that specific silence token is overwritten with this calculated target.
- Soft Conditioning: Some architectures use the specified millisecond value as a conditioning prior, allowing the model slight variance to prevent unnaturally rigid timing, though commercial engines typically enforce hard deterministic overrides to guarantee API compliance.
In older autoregressive models (like Tacotron 2), this process was less deterministic and relied on manipulating attention mechanisms or artificially repeating silence embeddings until a stop token was reached. Modern non-autoregressive architectures make the translation from millisecond values to frame lengths completely deterministic.
Contextual Acoustic Shaping and Boundary Prosody
A natural pause consists of more than just a specific number of silent frames; it fundamentally changes the acoustic properties of the speech preceding and following it. Neural TTS systems handle this through variance adaptors that model pitch (fundamental frequency, \(F_0\)) and energy:
- Pre-Pause Lengthening: Natural speakers decelerate their speech rate directly prior to a pause. The linguistic features derived from the break tag propagate backward to the preceding phonemes, prompting the duration predictor to naturally elongate the final syllable of the preceding word.
- Pitch and Energy Declination: The acoustic model drops the \(F_0\) contour and energy trajectory at the phrase boundary preceding the break, mimicking human vocal fold relaxation. Alternatively, if the break occurs after a question, the boundary tone may rise before dropping off.
- Glottalization and Vocal Decay: The model predicts spectral frames that capture the natural acoustic decay of the voice into silence, avoiding abrupt artificial cutoffs.
Neural Vocoding and Acoustic Reality
Once the mel-spectrogram is generated with the calculated number of break frames, it is passed to a neural vocoder (such as HiFi-GAN, BigVGAN, or a diffusion-based vocoder).
Neural vocoders do not produce absolute zero-amplitude digital silence during these frames. Instead, they synthesize realistic room tone, low-level microphone self-noise, and subtle breath sounds consistent with the rest of the generated audio. By rendering continuous ambient noise across the exact duration requested by the SSML tag, the output avoids the disjointed "clipped" sensation characteristic of legacy concatenative synthesis, maintaining perceptual realism.