Converter from text to International Phonetic Alphabets
Project description
Text to International Phonetic Alphabet (IPA)
Installation:
Windows
python -m pip install text2ipa
macOS
sudo pip3 install text2ipa
Linux
pip install text2ipa
Features
- Convert Engkish text to IPA
- Two options Language English UK and English US
Examples
Example 1: Convert a text
Function:
get_IPA()
: Converting a text to IPA with the following parameters
Parameters:
text
: The text you want to convert to IPAlanguage
: Choose between English US and English UK ('am'/'br')proxy
: Optional parameter
For instance:
from text2ipa import get_IPA
text = 'hello world'
language = 'am'
#Convert 'hello world' to English US International Alphabet
ipa = get_IPA(text,language)
print(ipa)
>> həˈloʊ wɜrld
Example 2: Convert a bulk
Function:
get_IPAs()
: Convert the list of texts to IPA return the list of IPAs
Parameters:
bulk
: The list of text want to convert to IPAlanguage
: Choose between English US and English UK ('am'/'br')proxy
: Optional parameter
For instance:
from text2ipa import get_IPAs
bulk = ['how are you?','how it\'s going?','that\'s good']
language = 'br'
# Convert a list of text to English UK IPA
IPAs = get_IPAs(bulk,language)
for ipa in IPAs:
print(ipa)
>> haʊ ɑː juː?
>> haʊ ɪts ˈgəʊɪŋ?
>> ðæts gʊd
Log Changes
V1.0.0 : Create new with 2 functions get_IPA()
and get_IPAs()
V1.1.0 : This version has been remove due to the installing ERROR
V1.2.0 : Update comment and guideline in functions, fixed ERROR for setup with the other Python versions
V1.3.0 : Fixed MISSING install requires and update information for Python versions.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
text2ipa-1.3.0.tar.gz
(43.6 kB
view hashes)
Built Distribution
Close
Hashes for text2ipa-1.3.0-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe0d0319c79fd472f2d3d7d5b35fd1ff014feca9daa0cff4fbdfeee32f4cce3c |
|
MD5 | c1ab9d546f1e61e6f7cd649ecb5fb0f7 |
|
BLAKE2b-256 | 7760c189b642f30bbbe7b3be4e3827d64a9e94df6b260e8a6b43add699e4c943 |