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

Arabic language support #19

Closed
abd-mhainy opened this issue Mar 11, 2019 · 16 comments
Closed

Arabic language support #19

abd-mhainy opened this issue Mar 11, 2019 · 16 comments

Comments

@abd-mhainy
Copy link

in this amazing library you are depending on espeak-ng and in thats library support Arabic language culd you please add this feature to your library

@mmmaat
Copy link
Collaborator

mmmaat commented Mar 11, 2019

Hi, if you have installed espeak-ng Arabic is already available. To make sure of that try the following commands:

$ phonemize --version
phonemizer-1.0
available backends: festival-2.5.0, espeak-ng-1.49.2, segments-2.0.1

And

$ phonemize --help | grep Arabic
	ar	->	Arabic

@abd-mhainy
Copy link
Author

abd-mhainy commented Mar 11, 2019

thanks for your reply
how can i install espeak-ng cause phonemize --version show only those backends
festival-2.5.0, espeak-1.48.03, segments-2.0.1

@mmmaat
Copy link
Collaborator

mmmaat commented Mar 11, 2019

@mmmaat
Copy link
Collaborator

mmmaat commented Mar 11, 2019

Normally, the installation of espeak-ng will override the standard espeak.

@abd-mhainy
Copy link
Author

do i need to clone the repository and if i have to where do i have to clone it is there a certain path or it dosent matter

@mmmaat
Copy link
Collaborator

mmmaat commented Mar 11, 2019

Indeed you have to clone it (whatever the place, it will be installed as /usr/local/bin/espeak-ng), configure, compile and install it. Something like:

git clone https://github.com/espeak-ng/espeak-ng.git
cd espeak-ng
./configure
make
make install

@abd-mhainy
Copy link
Author

thanks thats worked and now i can see arabic between the supported languages

@mmmaat
Copy link
Collaborator

mmmaat commented Mar 11, 2019

Great ! Have fun :)

@mmmaat mmmaat closed this as completed Mar 11, 2019
@abd-mhainy
Copy link
Author

now it is giving:
fatal error: 'ascii' codec can't encode characters in position 0-5: ordinal not in range(128)

when i wrote the command as:
echo "السلام عليكم" | phonemize -l ar

@mmmaat mmmaat reopened this Mar 11, 2019
@mmmaat
Copy link
Collaborator

mmmaat commented Mar 11, 2019

I got that using python3:

$ echo "السلام عليكم" | phonemize -l ar
ʔassalaam ʕaliijkum 

I guess you are using python2 (have a python --version to make sure). I'm trying to find a fix. By now you can try to install it with python3. Just have a python3 setup.py install.

@mmmaat mmmaat closed this as completed in 532f9d2 Mar 11, 2019
@mmmaat
Copy link
Collaborator

mmmaat commented Mar 11, 2019

Ok I fixed it in that commit: 532f9d2. Should be working both in python2 and python3 now. Thanks for reporting that!

@abd-mhainy
Copy link
Author

thanks a lot
i will pull the last version

@abd-mhainy
Copy link
Author

i made a pull but it is giving the same error
my python version is 2.7

@abd-mhainy
Copy link
Author

i think that i have to build again right

@abd-mhainy
Copy link
Author

upgraded to python 3 and the problem has been solved
thanks a lot for your help

@mmmaat
Copy link
Collaborator

mmmaat commented Mar 11, 2019

Yes on python2 you have to pull AND to python setup.py install again.

@mmmaat mmmaat reopened this Mar 11, 2019
@mmmaat mmmaat closed this as completed Mar 11, 2019
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