readbeyond / aeneas

aeneas is a Python/C library and a set of tools to automagically synchronize audio and text (aka forced alignment)
http://www.readbeyond.it/aeneas/
GNU Affero General Public License v3.0
2.53k stars 233 forks source link

Error in installing aeneas using pip #289

Closed saiakarsh193 closed 2 years ago

saiakarsh193 commented 2 years ago

I am getting this error

/usr/bin/ld: cannot find -lespeak: No such file or directory
      collect2: error: ld returned 1 exit status
      error: Command "x86_64-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -g -fwrapv -O2 -Wl,-Bsymbolic-functions -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.10/aeneas/cew/cew_func.o build/temp.linux-x86_64-3.10/aeneas/cew/cew_py.o -lespeak -o build/lib.linux-x86_64-3.10/aeneas/cew/cew.cpython-310-x86_64-linux-gnu.so" failed with exit status 1

I made sure to install ffmpeg, espeak using command line, and also numpy before installing aeneas.

The error tells us that it cannot find -lespeak: No such file or directory, but i did install espeak. So i am stuck now. Can someone please help me out.

saiakarsh193 commented 2 years ago

Just found the solution in #229.

sudo apt-get install libespeak-dev should fix the problem.