How to enable text preprocessing
The enable_preprocessing
parameter improves pronunciation of numbers, dates, currencies, and mixed-language text.
It is optional — if omitted, default is False
(no preprocessing).
When enabled:
- Numbers are expanded (e.g.,
"Rs. 1,00,000"
→ “rupees one lakh”) - Dates are read naturally (e.g., “25th December, 2024” → “twenty-fifth December two thousand twenty-four”)
- Abbreviations and symbols are handled correctly