Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

espeak does not connect gen case in Farsi / Persian with E #862

Open
HKalbasi opened this issue Dec 19, 2020 · 2 comments
Open

espeak does not connect gen case in Farsi / Persian with E #862

HKalbasi opened this issue Dec 19, 2020 · 2 comments

Comments

@HKalbasi
Copy link

This is a huge problem with espeak Farsi. For example: Physic laws are beautiful.

قوانین فیزیک جالب هستند

espeak say it:

ghavaanin fizik jaleb hastand

but the correct is:

ghavaanine fizik jaleb hastand

notice the "E". This problem is very common, I can say in every sentence we have this E connections and this means espeak reads every sentence wrong :)

hazm library can detect this but it is based on machine learning and needs a 20 megabytes model. Can we use this in espeak-ng? For example by making Farsi a seperate installable package?

@jaacoppi
Copy link
Collaborator

Is it possible to input the text to hazm and get the correct text as output, and then pipe that to espeak-ng? If yes, you could try a script that pipes everything through hazm first. Something like hazm "text" | espeak-ng -v fa

I don't know if combining hazm and espeak-ng is simple because hazm is a python script.

@HKalbasi
Copy link
Author

Yes it is possible but a built-in solution inside espeak-ng would be way more useful. Very tools, like screen readers have out of box support for espeak-ng but it is not easy to use hazm in them in this way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants