pinyin to ipa
v0.0.2
Pinyin을 IPA로 전사하려면 명령 줄 인터페이스 (CLI) 및 Python 라이브러리. 음색은 음절의 모음에 붙어 있습니다.
pip install pinyin-to-ipa --user방문하다 ? 라이브 데모를위한 포옹 얼굴.

usage: pinyin-to-ipa-cli [-h] [-v] [--sep SEP] [--first] PINYIN
Command-line interface (CLI) to transcribe pinyin to IPA.
positional arguments:
PINYIN pinyin
optional arguments:
-h, --help show this help message and exit
-v, --version show program's version number and exit
--sep SEP separator between phonemes (default: )
--first return only first result (default: False)$ pinyin-to-ipa-cli " pang1 "
pʰa˥ŋ
$ pinyin-to-ipa-cli " pang2 "
pʰa˧˥ŋ
$ pinyin-to-ipa-cli " pang3 "
pʰa˧˩˧ŋ
$ pinyin-to-ipa-cli " pang4 "
pʰa˥˩ŋ
$ pinyin-to-ipa-cli " pang5 "
pʰaŋ
$ pinyin-to-ipa-cli " pang "
pʰaŋ
$ pinyin-to-ipa-cli " hàng "
xa˥˩ŋ
ha˥˩ŋ
$ pinyin-to-ipa-cli " hàng " --first
xa˥˩ŋ
$ pinyin-to-ipa-cli " hng "
hŋ
$ pinyin-to-ipa-cli " test "
No IPA transcription available ! from pinyin_to_ipa import pinyin_to_ipa
print ( pinyin_to_ipa ( "hang4" ))
# OrderedSet([('x', 'a˥˩', 'ŋ'), ('h', 'a˥˩', 'ŋ')])
print ( pinyin_to_ipa ( "ng" ))
# OrderedSet([('ŋ',)]) 모음 :
a
ɛ
e
ə
ɚ
ɤ
i
o
ɔ
u
ʊ
yDiphthongs :
ai̯
au̯
aɚ̯¹
ei̯
ou̯자음 :
f
h¹
j
k
kʰ
l
m
n
p
pʰ
ɹ̩²
ɻ²
ɻ̩²
s
t
ts
tsʰ
tɕ
tɕʰ
tʰ
w
x
ŋ
ɕ
ɥ
ʂ
ʈʂ
ʈʂʰ
z̩¹²
ʐ¹²
ʐ̩¹²모음과 diphthong에는 이러한 색조 중 하나가 포함되어 있습니다.
˥ (first tone)
˧˥ (second tone)
˧˩˧ (third tone)
˥˩ (fourth tone)
(none) ¹ 첫 번째 전사 만 사용되는 경우이 음소는 포함되지 않습니다.
²이 자음에는 음색이 포함되어 있습니다.
Pypinyin
Deutsche Forschungsgemeinschaft (DFG, German Research Foundation)-Project-ID 416228727-CRC 1410
이 repo를 인용하려면 github에서 생성 한이 Bibtex-entry를 사용할 수 있습니다 ( 이 저장소를 참조 하십시오).
Taubert, S. (2024). pinyin-to-ipa (Version 0.0.2) [Computer software]. https://doi.org/10.5281/zenodo.10639971