pinyin to ipa
v0.0.2
Interface da linha de comando (CLI) e biblioteca Python para transcrever o pinyin para o IPA. Os tons são anexados à vogal da sílaba.
pip install pinyin-to-ipa --userVisitar? Abraçando o rosto para uma demonstração ao vivo.

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([('ŋ',)]) Vogais:
a
ɛ
e
ə
ɚ
ɤ
i
o
ɔ
u
ʊ
yDitongos:
ai̯
au̯
aɚ̯¹
ei̯
ou̯Consoantes:
f
h¹
j
k
kʰ
l
m
n
p
pʰ
ɹ̩²
ɻ²
ɻ̩²
s
t
ts
tsʰ
tɕ
tɕʰ
tʰ
w
x
ŋ
ɕ
ɥ
ʂ
ʈʂ
ʈʂʰ
z̩¹²
ʐ¹²
ʐ̩¹²Vogais e ditongos contêm um desses tons:
˥ (first tone)
˧˥ (second tone)
˧˩˧ (third tone)
˥˩ (fourth tone)
(none) ¹ Esses fonemas não estão incluídos se apenas a primeira transcrição for usada.
² Essas consoantes também contêm tons.
Pypinyin
Financiado pelo Deutsche Forschungsgeminschaft (DFG, Fundação de Pesquisa Alemã)-Projeto-ID 416228727-CRC 1410
Se você deseja citar este repositório, pode usar esse bibtex-entra gerado pelo github (veja sobre => citar este repositório ).
Taubert, S. (2024). pinyin-to-ipa (Version 0.0.2) [Computer software]. https://doi.org/10.5281/zenodo.10639971