English to Indic language phonetic conversion engine
Project description
Dhwani
English to Indic language phonetic conversion engine. Read more about the project here.
Installation
Dhwani is currently not stable. However, the developmental release is avalibale at PyPI.
Installing from PyPI
$ pip install dhwani
Installing from sources
$ git clone https://github.com/ndyashas/Dhwani.git
$ cd Dhwani
$ pip install -r requirements.txt
$ pip install -e .
Example
An example of converting from English to Kannada is shown here.
# Import the main converter class
from dhwani import Converter
# Make a converter object. The first argument is the
# ISO 639-3 code of the source language, and the second
# argument is the ISO 639-3 code of the destination language.
converter = Converter('eng', 'kan')
src_string = "kannaDa"
# Use the 'convert' method of converter object to get the converter
# string back.
dest_string = converter.convert(src_string)
# Print the result
# Note that the display for standard output needs to support the unicode
# characters.
print(dest_string)
# output > ಕನ್ನಡ
Currently supported conversions
- English to Kannada
- English to Devnagari
- English to Tamil
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
dhwani-0.0.3.tar.gz
(8.3 kB
view hashes)
Built Distribution
dhwani-0.0.3-py3-none-any.whl
(14.0 kB
view hashes)