## The Problem
If you build automated video workflows, AI podcasts, or audiobooks using TTS engines like Edge-TTS, you know the pain:
- **Crashes & Silence**: Emojis, brackets `【laugh】`, or stray symbols `*` cause the TTS engine to crash or output silence.
- **Awkward Pauses**: Erratic line breaks and missing punctuation lead to unnatural speech rhythm.
## The Solution: TTS Text Purifier
This API is a ruthless text sanitization engine designed specifically for TTS stability. It doesn't just clean; it structurally rebuilds your text.
### Key Features:
1. **Aggressive Symbol Stripping**: Automatically removes problematic emotional tags (e.g., `【*】`, `(*)`), stray asterisks, and tildes.
2. **Whitespace Flattening**: Compresses erratic spacing, tabs, and chaotic line breaks into a single, manageable string.
3. **Smart Sentence Segmentation**: Intelligently identifies sentence boundaries (periods, question marks, exclamation points) and enforces a strict **"one sentence per line"** standard.