TTSAbortConfig

class TTSAbortConfig

Mid-stream abort injection for adversarial Vajra streaming-TTS tests.

Fields:

fractionfloat = 0.0

Fraction of sessions in [0, 1] that abort mid-stream. Zero disables abort injection.

triggerstr = "audio_ms"

Abort trigger: audio_ms after receiving value milliseconds of audio, input_fraction after sending value fraction of text deltas, or wall_clock_s value seconds after request start.

valuefloat = 1000.0

Trigger threshold in milliseconds, input fraction, or seconds according to trigger.

seedint = 1234

Base seed for deterministic per-session selection using Random(f’{seed}:{session_id}’).