stefantaubert/pinyin-to-ipa
Command-line interface and Python library to transcribe pinyin to IPA. The tones are attached to the vowel of the syllable.
Supports multiple transcription variants per syllable (accounting for pronunciation ambiguity) and provides three interfaces: a Python API returning phoneme tuples, a web application, and a CLI with customizable phoneme separators. Built on linguistic phoneme mappings for Mandarin Chinese covering vowels, diphthongs, consonants, and five tone markers represented as Unicode diacritics.
Used by 1 other package. No commits in the last 6 months. Available on PyPI.
Stars
53
Forks
10
Language
Python
License
MIT
Category
Last pushed
Apr 16, 2025
Monthly downloads
481
Commits (30d)
0
Dependencies
2
Reverse dependents
1
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/voice-ai/stefantaubert/pinyin-to-ipa"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Related tools
thewh1teagle/phonikud
Hebrew grapheme to phoneme (G2P)
GitYCC/g2pW
Chinese Mandarin Grapheme-to-Phoneme Converter. 中文轉注音或拼音 (INTERSPEECH 2022)
Wikidepia/g2p-id
Indonesian Grapheme-to-Phoneme (IPA notation)
AdolfVonKleist/Phonetisaurus
Phonetisaurus G2P
pnnbao97/sea-g2p
Fast multilingual text-to-phoneme converter for South East Asian languages.