Tools for convert Text to IPA in python
Install:
pip install ipa2
Before using :
from ipa2 import IPAConverter
Arguments
sent(String)
: sentence to convert (string)
Returns
list(String)
: list of the result Examples
IPAConverter('yue')
print(IPAConverter.convert_sent("你好"))
## ['nei˩˧ hou˧˥', 'lei˩˧ hou˧˥']