Pronounce Arabic words on the fly
Project description
## Arabic Pronunciation
This project is based on the workings of
* Dr. Nawar Halabi https://github.com/nawarhalabi/Arabic-Phonetiser
* Dr. Motaz Saad https://github.com/motazsaad/ara-pronunciation-tool
* Dr. Taha Zerrouki
I just refactored the code and added an api wrapper for it to be used easily through installing a package
## Usage
```python
from arabic_pronunciation import phonetise_Arabic
phonetise_Arabic.phonetise_word("بِمُسْتَطِيل")
>>> ['b i0 m u0 s t A T ii0 l']
phonetise_Arabic.phonetise_word("نُتَابِعُهَا")
>>> ['n u0 t aa b i0 E u0 h aa', 'n u0 t aa b i0 E u0 h a']
```
## Tests
* `python -m pytest`
## Static Dictionary Production
* Add your corpus to the root of this project
* `python arabic_pronunciation/corpus2cmudict.py -i {corpus_name}.txt -p {corpus_name}`
* It might take long time to for large corpuses and the command line might not show that the process is going on but it is.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for arabic_pronunciation-0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12cb14558050b91a06e452a0a5aacbc75920c78c85af27d130ab1de8affbefbc |
|
MD5 | a75bcd0dcfc08ed9fb11bb94b5fcb41c |
|
BLAKE2b-256 | 8385c05d5ba6c709f81e2805e3c5ac3dbdfd7ec87b34785c69264031ee17a2c2 |