RSiopa / SAVI_TP1

First Practical Work from SAVI
0 stars 0 forks source link

Text to speech not working #2

Closed RSiopa closed 1 year ago

RSiopa commented 1 year ago

I tried to put the text to speech the teacher had a link to, however it did not work. Keeps getting a really big error which after looking at it and debugging for a while, might be because my PC might not have a default driver for it. If someone can try and uncomment the 3 lines I have for the text to speech to see if it works on another computer, it would be really nice!

gilviegas commented 1 year ago

I had the same issue and found out the solution:

In Linux we have to install additional packages fin order to pyttx3 work.

pip install pyttsx3

sudo apt update && sudo apt install espeak ffmpeg libespea

https://pypi.org/project/pyttsx3eaidk/