An open API service indexing awesome lists of open source software.

https://github.com/voidful/ipa2

Tools for convert Text to IPA in python
https://github.com/voidful/ipa2

Last synced: 10 months ago
JSON representation

Tools for convert Text to IPA in python

Awesome Lists containing this project

README

          

# 📖 IPA2

Tools for convert Text to IPA in python

## Usage

Install:

```
pip install ipa2
```

Before using :
```
from ipa2 import IPA2
```

# Features
* [Convert Text to IPA](#convert)

Convert Text to IPA

### convert_sent(sent)
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˧˥']
```