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
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.
Notes
- Travis auto deployment to Pypi is currenlty not working
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file arabic_pronunciation-0.2.3.tar.gz.
File metadata
- Download URL: arabic_pronunciation-0.2.3.tar.gz
- Upload date:
- Size: 1.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
afc0753b5560733143b8724b0b61334a470e2ea6ccdb778eb9178e6953fbf89e
|
|
| MD5 |
562d2df1ee2e880711905a2f1d00b532
|
|
| BLAKE2b-256 |
57c7ec70c6914f27a1340eb61be920d7ac61ca950d3e2b054e2fd5bac38a5ee8
|
File details
Details for the file arabic_pronunciation-0.2.3-py3-none-any.whl.
File metadata
- Download URL: arabic_pronunciation-0.2.3-py3-none-any.whl
- Upload date:
- Size: 1.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a112cfe4e8a725e969bb82152a7645469d2596fe73e949a9bf9ed16a3fb42a7b
|
|
| MD5 |
0e7355eca94fc03bc8c251de57f31947
|
|
| BLAKE2b-256 |
439a637262ffe5fa3414eb87cb001ea7fd184d13c5a6e1a060a5dacb69f5bfe6
|