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

brew install on Mac installs espeak binary instead of espeak-ng #1

Open
Miyurz opened this issue Sep 25, 2018 · 2 comments
Open

brew install on Mac installs espeak binary instead of espeak-ng #1

Miyurz opened this issue Sep 25, 2018 · 2 comments

Comments

@Miyurz
Copy link

Miyurz commented Sep 25, 2018

cmd = ['espeak-ng',

Earlier:

$ python talk2.py 
Traceback (most recent call last):
  File "talk2.py", line 4, in <module>
    esng.say('Hello World!')
  File "/Users/miyurz/.pyenv/versions/anaconda3-5.2.0/lib/python3.6/site-packages/espeakng/__init__.py", line 103, in say
    self._espeak_exe(args, sync=sync)
  File "/Users/miyurz/.pyenv/versions/anaconda3-5.2.0/lib/python3.6/site-packages/espeakng/__init__.py", line 68, in _espeak_exe
    stderr=subprocess.STDOUT)
  File "/Users/miyurz/.pyenv/versions/anaconda3-5.2.0/lib/python3.6/subprocess.py", line 709, in __init__
    restore_signals, start_new_session)
  File "/Users/miyurz/.pyenv/versions/anaconda3-5.2.0/lib/python3.6/subprocess.py", line 1344, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
__init__.py:47:        cmd = ['espeak-ng', 
FileNotFoundError: [Errno 2] No such file or directory: 'espeak-ng': 'espeak-ng'

Fix:

  1. Traverse to the code where cmd is hard coded to espeak-ng
$ cd /Users/miyurz/.pyenv/versions/anaconda3-5.2.0/lib/python3.6/site-packages/espeakng/
✔ ~/.pyenv/versions/anaconda3-5.2.0/lib/python3.6/site-packages/espeakng 
14:07 $ grep -nr espeak-ng *
  1. Edit it to espeak

  2. Brew installed espeak

$ which espeak 
/usr/local/bin/espeak
@Miyurz Miyurz changed the title bew install on Mac installs espeak binary instead of espeak-ng brew install on Mac installs espeak binary instead of espeak-ng Sep 25, 2018
@gooofy
Copy link
Owner

gooofy commented Sep 26, 2018

sounds to me like an issue with the package manager you are using - I guess it should install espeak-ng if you ask for that?

@hyansuper
Copy link

@Miyurz can you install espeak-ng with brew? the espeak-ng git readme says espeak is a history version of espeak-ng before 2015.
If you change cmd to 'espeak', does all the api work as well?

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

3 participants