pyttsx

pyttsx3 initialization error, can't use pyttsx3

别等时光非礼了梦想. 提交于 2020-07-10 07:24:09
问题 I was having some problems when using the .getproperty('voices') attribute in pyttsx3. So I decided to uninstall it and then re-install it using PIP to see if that may fix the problem. Previous link to when I had the .getproperty('voices') error: Why do I get an error with pyttsx3 when I try to access the properties of the voice? Now, when I installed it again using PIP, I can't even initialize it import pyttsx3 engine = pyttsx3.init() It gives this error: Traceback (most recent call last):

python text to speech using pyttsx

时光总嘲笑我的痴心妄想 提交于 2020-04-10 07:11:12
问题 I want to use my raspberry pi to announce some text. i have installed pyttsx but not able to use it.i am using python2.7 my program: import pyttsx engine= pyttsx.init() engine.setProperty('rate',70) voices=engine.getProperty('voices') for voice in voices: print "Using voice:", repr(voice) engine.setProperty('voice',voice.id) engine.say("Hello Hello Hello") engine.runAndWait() but i am getting this error: Traceback (most recent call last): File "/home/pi/announce.py", line 2, in <module>

python text to speech using pyttsx

半世苍凉 提交于 2020-04-10 07:11:11
问题 I want to use my raspberry pi to announce some text. i have installed pyttsx but not able to use it.i am using python2.7 my program: import pyttsx engine= pyttsx.init() engine.setProperty('rate',70) voices=engine.getProperty('voices') for voice in voices: print "Using voice:", repr(voice) engine.setProperty('voice',voice.id) engine.say("Hello Hello Hello") engine.runAndWait() but i am getting this error: Traceback (most recent call last): File "/home/pi/announce.py", line 2, in <module>

python text to speech using pyttsx

独自空忆成欢 提交于 2020-04-10 07:10:28
问题 I want to use my raspberry pi to announce some text. i have installed pyttsx but not able to use it.i am using python2.7 my program: import pyttsx engine= pyttsx.init() engine.setProperty('rate',70) voices=engine.getProperty('voices') for voice in voices: print "Using voice:", repr(voice) engine.setProperty('voice',voice.id) engine.say("Hello Hello Hello") engine.runAndWait() but i am getting this error: Traceback (most recent call last): File "/home/pi/announce.py", line 2, in <module>

While installing pyttsx3: Command errored out with exit status 1

早过忘川 提交于 2020-02-10 04:32:47
问题 $ pip install pyttsx3 Collecting pyttsx3 Using cached pyttsx3-2.80-py3-none-any.whl (39 kB) Collecting pyobjc>=2.4 Using cached pyobjc-6.1-py3-none-any.whl (2.9 kB) Collecting comtypes; "win32" in sys_platform Using cached comtypes-1.1.7.zip (180 kB) Collecting pyobjc-framework-SyncServices==6.1 Using cached pyobjc-framework-SyncServices-6.1.tar.gz (42 kB) ERROR: Command errored out with exit status 1: command: 'c:\users\abrar\appdata\local\programs\python\python37\python.exe' -c 'import sys,

While installing pyttsx3: Command errored out with exit status 1

左心房为你撑大大i 提交于 2020-02-10 04:32:11
问题 $ pip install pyttsx3 Collecting pyttsx3 Using cached pyttsx3-2.80-py3-none-any.whl (39 kB) Collecting pyobjc>=2.4 Using cached pyobjc-6.1-py3-none-any.whl (2.9 kB) Collecting comtypes; "win32" in sys_platform Using cached comtypes-1.1.7.zip (180 kB) Collecting pyobjc-framework-SyncServices==6.1 Using cached pyobjc-framework-SyncServices-6.1.tar.gz (42 kB) ERROR: Command errored out with exit status 1: command: 'c:\users\abrar\appdata\local\programs\python\python37\python.exe' -c 'import sys,