--- id: sea-g2p version: "0.8.5" license: unclear license_treatment: permissive maintenance: active --- # sea-g2p — Fast multilingual text-to-phoneme converter for South East Asian languages. License: permissive · Maintenance: active · Downloads: 168.6K/mo ## What it is and what it does SEA-G2P is a text-to-phoneme converter (grapheme-to-phoneme, or G2P) built in Rust and designed for Vietnamese, Thai, and Indonesian with seamless English code-switching. It takes raw text—including numbers, dates, abbreviations, and mixed-language passages—and outputs IPA phonemes grouped by syllable, suitable for feeding into a text-to-speech engine. The package handles the messy normalization and segmentation that each language requires: Vietnamese has 17 normalization stages, Thai requires word segmentation from a 91,865-word dictionary, and Indonesian uses a 172,557-word dictionary built from WikiPron and KBBI. The core engine uses memory-mapped binary dictionaries and binary search for fast lookup, with automatic multithreading for batch inputs. It ships as pre-compiled wheels with zero runtime dependencies, so installation is straightforward on Windows, Linux, and macOS. The package is actively maintained and powers VieNeu-TTS, a Vietnamese text-to-speech model. Use it for: - Building a Vietnamese, Thai, or Indonesian text-to-speech system that needs accurate phoneme sequences from raw text. - Processing large batches of multilingual text with mixed English code-switching for phonetic analysis or speech synthesis. - Normalizing and converting numbers, dates, and abbreviations to spoken form in Southeast Asian languages. - Integrating phonemization into an on-device speech synthesis pipeline where startup time and memory footprint matter. - Handling Thai text without spaces by automatic word segmentation and phoneme generation in a single pass. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Converts text to phonemes for Vietnamese, Thai, and Indonesian with English code-switching support, using a memory-mapped binary dictionary and Rust-based engine for fast batch processing. Yes, if you need phonemization for Vietnamese, Thai, or Indonesian with English code-switching. The package is actively maintained, has no runtime dependencies, and is built for production use with fast batch processing. Install friction is moderate (compiled wheels) but manageable. Permissive license and zero known vulnerabilities make it safe to adopt. Not relevant if you only work with other languages. ## Install pip install sea-g2p uv add sea-g2p poetry add sea-g2p ## Installing sea-g2p Before you install: Medium install friction due to compiled wheels (cp310-abi3 binaries for multiple platforms), but pre-built wheels are available for Windows, Linux, and macOS. Active maintenance with recent release and no runtime dependencies. License in practice: Permissive license (Apache) allows commercial and private use without restriction, making it suitable for production TTS systems. Quickstart: pip install sea-g2p from sea_g2p import SEAPipeline pipeline = SEAPipeline(lang="vi") result = pipeline.run("Giá SP500 hôm nay là 4.200,5 điểm.") print(result) Requires Python 3.10 or later; wheels are pre-compiled for specific platforms (Windows, Linux, macOS on x86_64 and ARM64). Verify before relying: - Actual throughput figures (41,000–500,000 sentences/s) on typical developer hardware; benchmarks cited are from 1,000,000-sentence dataset on Windows 11 CPython 3.12. - Memory overhead and startup time in production; mmap design is described but real-world measurements not provided. - Quality of phoneme output against other phonemizers; no comparative evaluation data in fact sheet. ## Package facts - License: not declared (permissive) - Python support: supports_current - Install friction: medium - Maintenance: active - Downloads: 168.6K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags text to phoneme converter, g2p vietnamese thai indonesian, multilingual phonemization, tts phoneme generation, southeast asian text-to-speech, grapheme to phoneme, speech synthesis phonemes, phonemization, multilingual-nlp, speech-synthesis [View on SkillFed](https://skillfed.io/packages/sea-g2p) · [View on PyPI](https://pypi.org/project/sea-g2p/)