Skip to main content

Python implementation to convert bengali to phonetic

Project description

============== pybengengphonetic

Python implementation to convert unicode bengali text to speable english text for pyttsx and to english phonetic

License

Copyright (C) 2016 Subrata Sarkar subrtosarkar32@gmail.com.

::

This file is part of pybengengphonetic.

pybengengphonetic is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

pybengengphonetic is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with pybengengphonetic. If not, see <http://www.gnu.org/licenses/>.

The full license text can be found in LICENSE.

Usage

::

from pybengengphonetic import conparse
conparse.convert_to_pyttsx_speakable(u'\u0995\u09c7\u09ae\u09a8 \u0986\u099b')
conparse.speak(u'\u0995\u09c7\u09ae\u09a8 \u0986\u099b')

.. _Avro Phonetic: http://omicronlab.com .. _Mehdi Hasan Khan: https://github.com/omicronlab .. _Rifat Nabi: https://github.com/torifat .. _jsAvroPhonetic: https://github.com/torifat/jsAvroPhonetic .. _PEP 8: http://www.python.org/dev/peps/pep-0008/ .. _PEP 257: http://www.python.org/dev/peps/pep-0257/ .. |Master| image:: https://travis-ci.org/kaustavdm/pyAvroPhonetic.png?branch=master :target: https://travis-ci.org/kaustavdm/pyAvroPhonetic .. |Develop| image:: https://travis-ci.org/kaustavdm/pyAvroPhonetic.png?branch=develop :target: https://travis-ci.org/kaustavdm/pyAvroPhonetic .. _Md Enzam Hossain: https://github.com/ienzam .. _Sarim Khan: https://github.com/sarim

Installation

Using Git:

::

$ git clone https://github.com/SubrataSarkar32/pybengengphonetic.git
$ cd pybengengphonetic
$ sudo python setup.py install

Using Pip:

::

$ sudo pip install pybengengphonetic

Contributing

Fork -> Do your changes -> Send a Pull Request. It's that easy!

Coding style follows PEP 8_ along with PEP 257_ for Docstring conventions.

Also, if you find any bugs, please report them in the Issues queue. As always, before you report any new issue, please check that it has not been already posted by someone else.

Below is license of pyAvroPhonetic

from which it has been derived:

============== pyAvroPhonetic

A Python implementation of the popular Bengali phonetic-typing software Avro Phonetic_.

Branch: Master: |Master| | Develop: |Develop|

Overview

pyAvroPhonetic provides a Python package that can be imported and used by other Python programs or scripts. It implements the Avro Phonetic Dictionary Search Library by Mehdi Hasan Khan_.

N.B. This package is still experimental and is not (yet) fit for production use.

Inspirations

This package is inspired from Rifat Nabi's jsAvroPhonetic. So far, the code is a direct (and shameless) translation of jsAvroPhonetic into Python.

Installation

Using Git:

::

$ git clone https://github.com/kaustavdm/pyAvroPhonetic
$ cd pyAvroPhonetic
$ sudo python setup.py install

Using Pip:

::

$ sudo pip install PyAvroPhonetic

Usage

At present only a subset of features have been implemented. When implemented, the parser can be accessed as:

::

>>> from pyavrophonetic import avro
>>> avro.parse('aami banglay gaan gai')

Contributing

Fork -> Do your changes -> Send a Pull Request. It's that easy!

Coding style follows PEP 8_ along with PEP 257_ for Docstring conventions.

Also, if you find any bugs, please report them in the Issues queue. As always, before you report any new issue, please check that it has not been already posted by someone else.

Acknowledgements

  • Mehdi Hasan Khan for originally developing and maintaining Avro Phonetic
  • Rifat Nabi for porting it to Javascript
  • Md Enzam Hossain_ for helping me understand the ins and outs of the Avro dictionary and the way it works
  • Sarim Khan_ for writing ibus-avro which helped to clarify my concepts further

License

Copyright (C) 2013 Kaustav Das Modak kaustav.dasmodak@yahoo.co.in.

::

This file is part of pyAvroPhonetic.

pyAvroPhonetic is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

pyAvroPhonetic is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with pyAvroPhonetic.  If not, see <http://www.gnu.org/licenses/>.

The full license text can be found in LICENSE.

.. _Avro Phonetic: http://omicronlab.com .. _Mehdi Hasan Khan: https://github.com/omicronlab .. _Rifat Nabi: https://github.com/torifat .. _jsAvroPhonetic: https://github.com/torifat/jsAvroPhonetic .. _PEP 8: http://www.python.org/dev/peps/pep-0008/ .. _PEP 257: http://www.python.org/dev/peps/pep-0257/ .. |Master| image:: https://travis-ci.org/kaustavdm/pyAvroPhonetic.png?branch=master :target: https://travis-ci.org/kaustavdm/pyAvroPhonetic .. |Develop| image:: https://travis-ci.org/kaustavdm/pyAvroPhonetic.png?branch=develop :target: https://travis-ci.org/kaustavdm/pyAvroPhonetic .. _Md Enzam Hossain: https://github.com/ienzam .. _Sarim Khan: https://github.com/sarim

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

pybengengphonetic-1.2.0.tar.gz (22.8 kB view hashes)

Uploaded source

Built Distribution

pybengengphonetic-1.2.0-py3-none-any.whl (26.3 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page