You are not logged in.

#1 2021-12-07 19:59:58

Triple_Steak
Member
Registered: 2021-12-07
Posts: 3

Installing espeak for Python's "pyttsx3"

Hi,

I had written a functional Python script on a friend's Macbook, and copied the code over to run on my Linux. I'm getting the error "OSError: libespeak.so.1: cannot open shared object file: No such file or directory"

The "espeak" library got removed from AUR (I went here: https://archlinux.org/packages/communit … 4/espeak/)
I tried to install:
- "espeak-ng" from pacman
- "espeak-ng-espeak" from pacman
- "espeak-ng-espeak-git" using yay

All of which did not resolve the error. I remember encountering this error while running the same script on a Windows WSL Ubuntu, using "sudo apt-get install espeak". Unfortunately, "sudo pacman -S espeak" doesn't work because espeak doesn't exist.
Is there perhaps a post-installation process I'm missing?

Any help would be appreciated.

Offline

#2 2021-12-07 20:04:37

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 18,094

Re: Installing espeak for Python's "pyttsx3"

with community/espeak-ng-espeak installed, what is the output of pacman -Ql espeak-ng-espeak  ?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2021-12-07 20:06:45

Triple_Steak
Member
Registered: 2021-12-07
Posts: 3

Re: Installing espeak for Python's "pyttsx3"

espeak-ng-espeak /usr/
espeak-ng-espeak /usr/bin/
espeak-ng-espeak /usr/bin/espeak
espeak-ng-espeak /usr/bin/speak
espeak-ng-espeak /usr/include/
espeak-ng-espeak /usr/include/espeak/
espeak-ng-espeak /usr/include/espeak/speak_lib.h
espeak-ng-espeak /usr/share/
espeak-ng-espeak /usr/share/man/
espeak-ng-espeak /usr/share/man/man1/
espeak-ng-espeak /usr/share/man/man1/espeak.1.gz
espeak-ng-espeak /usr/share/man/man1/speak.1.gz

Offline

#4 2021-12-07 20:15:24

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 18,094

Re: Installing espeak for Python's "pyttsx3"

Shooting from the hip here, but how about python-espeak from the AUR ?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#5 2021-12-07 20:35:04

Triple_Steak
Member
Registered: 2021-12-07
Posts: 3

Re: Installing espeak for Python's "pyttsx3"

python-espeak brought up three options: 1) espeak-ng-espeak-git 2) espeak-ng-extended-git 3) espeak-test

The first one ran into installation errors and wasn't able to complete. However, the second one, after selecting the option to clean and rebuild all dependencies, worked! My Python code compiles now.

Thanks for the help, ewaller. Appreciate it smile

Offline

Board footer

Powered by FluxBB