Overview
Typecast AutoTag is a text preprocessing SDK that converts structured data (phone numbers, dates, times, amounts, etc.) into TTS-friendly formats for voice applications.npm Package
@neosapience/typecast-autotag
PyPI Package
typecast-autotag
Maven Central
com.neosapience:typecast-autotag
GitHub Repository
Source, issues, and native binaries
Why AutoTag?
When building voice applications, raw text often doesn’t translate well to natural speech:
AutoTag automatically detects these patterns and converts them to natural speech, improving the user experience in voice applications.
Language Support
The JavaScript and browser package accepts every SSFM v3.0 TTS language.
Official SSFM v3.0 language codes (37):
ara, ben, bul, ces, dan, deu, ell, eng, fin, fra, hin, hrv, hun, ind, ita, jpn, kor, msa, nan, nld, nor, pan, pol, por, ron, rus, slk, spa, swe, tam, tgl, tha, tur, ukr, vie, yue, zho.
The five extra accepted values are aliases or a locale tag, not additional official languages: ko → kor, en → eng, ja → jpn, zh → zho, and zh-TW → Traditional Chinese.
For the 31 languages without a dedicated rule module, AutoTag handles datetime, date, time, money, phone, percentage, range, unit, serial, and number patterns. It applies locale-specific date order, month and currency names, decimal separators, 12/24-hour conventions, and common native digit scripts. The nan and yue codes reuse the Traditional Chinese pattern pipeline while retaining their own TTS voice selection.
- English
- Korean
- Japanese
- Simplified Chinese
- Taiwan Mandarin
- Other SSFM languages
Full support for English text preprocessing with proper number reading, currency formatting, and more.
All 37 official language codes are available in the JavaScript/TypeScript and browser package. Python, Java, and C/C++ currently expose Korean and English entry points.
Installation
- JavaScript/TypeScript
- Python
- Java
- C/C++
Install the public npm package:
Quick Start
Auto-Tagging
Automatically detect and convert patterns in your text:Manual-Tagging
Use explicit tag syntax for precise control:Combined Usage
Apply both auto and manual tags together:Manual tags are processed first, then auto-tags are applied to the remaining text.
Supported Tags
Tag availability varies by language. UsegetSupportedAutoTags(language) for the exact runtime list. Japanese, Simplified Chinese, and Taiwan Mandarin additionally recognize regional postal codes, ranges, scores, fractions, units, email symbols, directions, contextual serial/account/flight identifiers, and scripture references.
Auto-Tags (Automatically Detected)
Manual-Only Tags
AICC Use Case
Perfect for AI Contact Center applications where natural speech is critical:Integration with Typecast TTS
Combine AutoTag with Typecast TTS API for the best voice experience:Platform Support
Development Languages
Server Platforms
Architectures
Next Steps
Quickstart
Get started with Typecast TTS API
SDK Documentation
Explore our SDK documentation