Text to speech
I tried to run pyttsx in windows as well as in a Linux environment ...
Linux environment:
import pyttsx
engine = pyttsx.init()
python just freezes after the first line is executed. I checked the above statement by running both lines at the interactive shell prompt.
Window Environment:
import pyttsx
engine = pyttsx.init()
engine.say('Sally sells seashells by the seashore.')
engine.say('The quick brown fox jumped over the lazy dog.')
engine.runAndWait()
It works fine and gives the desired result after installing pyttsx 1.0 win32.exe ( from here ) and also pywin for my version of windows ( from here )
, so actually in the Linux version where I really miss
It's about re-texting voice and text
So, can pyttsx do both tasks? if not, suggest some effective library.
source
share