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-ng installation on macOS #159

Closed
fakerybakery opened this issue Nov 22, 2023 · 4 comments · May be fixed by #188
Closed

espeak-ng installation on macOS #159

fakerybakery opened this issue Nov 22, 2023 · 4 comments · May be fixed by #188

Comments

@fakerybakery
Copy link

Hi,
How can I install this package on macOS? I've installed espeak-ng using MacPorts, but I'm getting this error:

Error processing file '/usr/share/espeak-ng-data/phontab': No such file or directory.
@mmmaat
Copy link
Collaborator

mmmaat commented Nov 24, 2023

Hi, I suspect this is an issue with your installation of espeak, not phonemizer...

Can you try a simple espeak command such as echo 'this is a test' | espeak-ng -x -q --ipa -v en-us and espeak-ng --version ?

@mmmaat mmmaat changed the title macOS espeak-ng installation on macOS Nov 24, 2023
@mmmaat
Copy link
Collaborator

mmmaat commented Nov 24, 2023

Well... your espeak-ng-data cannot be found by espeak. See espeak-ng/espeak-ng#1667. You can fix it be setting the ESPEAK_DATA_PATH environment variable accordingly.

@mmmaat mmmaat closed this as completed Nov 24, 2023
@fakerybakery
Copy link
Author

fakerybakery commented Nov 24, 2023

echo 'this is a test' | espeak-ng -x -q --ipa -v en-us

I am getting ðɪs ɪz ɐ tˈɛst

I will try setting ESPEAK_DATA_PATH

@zwhitchcox
Copy link

I've set the ESPEAK_DATA_PATH to

export ESPEAK_DATA_PATH=/opt/homebrew/Cellar/espeak-ng/1.51/share/espeak-ng-data

The contents of which are:

❯ ls $ESPEAK_DATA_PATH
af_dict                 hu_dict                 pap_dict
am_dict                 hy_dict                 phondata
an_dict                 ia_dict                 phondata-manifest
ar_dict                 id_dict                 phonindex
as_dict                 intonations             phontab
az_dict                 io_dict                 piqd_dict
ba_dict                 is_dict                 pl_dict
be_dict                 it_dict                 pt_dict
bg_dict                 ja_dict                 py_dict
bn_dict                 jbo_dict                qdb_dict
bpy_dict                ka_dict                 qu_dict
bs_dict                 kk_dict                 quc_dict
ca_dict                 kl_dict                 qya_dict
chr_dict                kn_dict                 ro_dict
cmn_dict                ko_dict                 ru_dict
cs_dict                 kok_dict                sd_dict
cv_dict                 ku_dict                 shn_dict
cy_dict                 ky_dict                 si_dict
da_dict                 la_dict                 sjn_dict
de_dict                 lang                    sk_dict
el_dict                 lb_dict                 sl_dict
en_dict                 lfn_dict                smj_dict
eo_dict                 lt_dict                 sq_dict
es_dict                 lv_dict                 sr_dict
et_dict                 mbrola_ph               sv_dict
eu_dict                 mi_dict                 sw_dict
fa_dict                 mk_dict                 ta_dict
fi_dict                 ml_dict                 te_dict
fr_dict                 mr_dict                 th_dict
ga_dict                 ms_dict                 tk_dict
gd_dict                 mt_dict                 tn_dict
gn_dict                 my_dict                 tr_dict
grc_dict                nci_dict                tt_dict
gu_dict                 ne_dict                 ug_dict
hak_dict                nl_dict                 uk_dict
haw_dict                no_dict                 ur_dict
he_dict                 nog_dict                uz_dict
hi_dict                 om_dict                 vi_dict
hr_dict                 or_dict                 voices
ht_dict                 pa_dict                 yue_dict

but still getting error:

RuntimeError: espeak not installed on your system

Is this not correct?

zwhitchcox added a commit to zwhitchcox/phonemizer that referenced this issue Nov 17, 2024
this fixes bootphon#159 to allow phonemizer to find a homebrew installation.

this was written by chatgpt, and I'm not very good with python, so please feel free to fix the style.

I have tested it on my machine though, and the code works to find the espeak installation
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

Successfully merging a pull request may close this issue.

3 participants