Use Python to convert a Bangla written in the Roman script to its phonetic equivalent in Bangla… here is a solution to the problem.
Use Python to convert a Bangla written in the Roman script to its phonetic equivalent in Bangla
I got a python package called PyAvroPhonetic and installed it.
>>> from pyavrophonetic import avro
After running the script above, I get the following error –
ImportError: No module named utils
But after running the script below
>>> import pyavrophonetic
There are no errors. Here is the conversion code
>>> from pyavrophonetic import avro
>>> avro.parse('aami banglay gaan gai')
I have to use avro to call the parser. What should I do. I’m using python 2.7.10. Thanks in advance.
pyAvroPhonetic:https://github.com/TrendBreaker/pyAvroPhonetic
Solution
I’m currently using Python 3 and I can share how I use Avro Phonetic. I’m using the modified python 3 compatible “pyAvroPhonetic” library natively in my scripts. You can find it in the > – “ to get the structure