pyttsx

PYTTSX Error: Cannot find module named drivers

两盒软妹~` 提交于 2019-12-24 07:17:23
问题 I am still a novice when it comes to python, and recently I have attempted to construct a personal assistant. I am using the PyTTSX module, but when I attempt to initialize the package, I receive this error: ****File "C:\Python34\lib\site-packages\pyttsx\driver.py", line 64, in init self._module = import (name, globals(), locals(), [driverName]) ImportError: No module named 'drivers**'** Any feedback would be greatly appreciated. 回答1: You've probably downloaded the version of PyTTSX from the

Pyttsx hangs in runAndWait() after speaking on OSX

走远了吗. 提交于 2019-12-24 00:28:33
问题 I have recently look into using Pyttsx in Python 2.7 for a project I'm doing, but after it has finished speaking the program hangs and won't continue. Here is my code: import pyttsx engine = pyttsx.init() engine.say("Hello world.") engine.runAndWait() After running engine.runAndWait(), it doesn't run anything else and hangs without returning anything. I tried adding a print afterwards, but it didn't print anything. Is this common for anyone else, and is there a fix for this? If not then is

Python 3.6 ModuleNotFoundError: No module named 'pyttsx3'

微笑、不失礼 提交于 2019-12-23 02:10:54
问题 I have absolutely no idea what can be the problem. I did the pip installer (pip install pyttsx3) and re-installed the JetBrains PyCharm, but it still not working. 回答1: Start a pyCharm terminal window, then install 'pipenv' which is an improved pip replacement as follows: pip install -u pipenv Then use pipenv instead of pip as this will create it's own Pipfile and virtualenv. You can install pyttsx3 as follows: pipenv install pyttsx3 This will create a Pipfile and a Pipfile.lock which pycharm

ImportError: No Module named 'driver' in pyttsx

北慕城南 提交于 2019-12-22 03:22:45
问题 I am trying to run a voice program in Python 3.5.2 and with pyttsx library. But I've faced up with lots of problems. First one is about engine. When I run the command import pyttsx , compiler gave me the error like below: ImportError: No module named 'engine' Then I've found this answer. But it didn't work either. Eventually, I now have another - similar - error like below: D:\Users\orcuny\Desktop\AVA>python ava.py Traceback (most recent call last): File "D:\Users\orcuny\AppData\Local

BadPrototypeError: Objective-C expects 1 arguments, Python argument has 2 arguments

帅比萌擦擦* 提交于 2019-12-21 12:57:45
问题 I am working with the python module pyttsx for text to speech and when I run the code, I get this error: File "Practice_File.py", line 2, in <module> engine = pyttsx.init() File "/Library/Python/2.7/site-packages/pyttsx/__init__.py", line 39, in init eng = Engine(driverName, debug) File "/Library/Python/2.7/site-packages/pyttsx/engine.py", line 45, in __init__ self.proxy = driver.DriverProxy(weakref.proxy(self), driverName, debug) File "/Library/Python/2.7/site-packages/pyttsx/driver.py",

How to change the voice in pyttsx3?

∥☆過路亽.° 提交于 2019-12-21 02:53:31
问题 This code is working but I'm only able to switch between the voices which came preInstalled in Microsoft Windows. These voices are "Microsoft David Mobile" and "Microsoft Zira Mobile". Later I installed "Microsoft Kalpana Mobile" and set it as the default Windows voice. But still I'm not able to switch to "Microsoft Kalpana Mobile". The code is- import pyttsx3 engine = pyttsx3.init() voices = engine.getProperty('voices') engine.setProperty('voice', voices[0].id) #changing index changes voices

How can i make the python to wait till i complete speaking?

我怕爱的太早我们不能终老 提交于 2019-12-14 00:03:11
问题 I am writing a program to recognise the speech from a microphone and the code will process accordingly. The code I wrote for this purpose is below. import speech_recognition as sr import webbrowser import pyttsx from time import sleep engine = pyttsx.init() engine.setProperty('rate', 70) r = sr.Recognizer() def recognize(audio): try: return r.recognize(audio) except LookupError, e: print e return '' with sr.Microphone() as source: while True: engine.say("Hi How can i help you ?") sleep(0.15)

pywin32 and pyttsx error, trouble combining the two

╄→гoц情女王★ 提交于 2019-12-13 06:31:46
问题 i have pywin32 in my site packages and my pyttsx is in a separate folder. Is this the reason why i am getting the following error? import win32api, sys, os ImportError: DLL load failed: The specified module could not be found The code is as follows, import pyttsx def onStart(name): print 'starting', name def onWord(name, location, length): print 'word', name, location, length def onEnd(name, completed): print 'finishing', name, completed engine = pyttsx.init() engine.connect('started

Pyttsx: AttributeError: 'module' object has no attribute 'init'

时光总嘲笑我的痴心妄想 提交于 2019-12-12 04:46:06
问题 Hi to everyone and thanks in advance import pyttsx engine = pyttsx.init() engine.say('Hello World') engine.runAndWait() And I get this error: Traceback (most recent call last): File "C:\Users\xxx\eclipse\workspace\Ai_Project\AI\Ai_Brain.py", line 8, in <module> engine = pyttsx.init() AttributeError: 'module' object has no attribute 'init' I am on Windows 7 using Python 2.7 and eclipse neon. Is this some kind of compatibility issue? I have searched a lot of related questions but applying the

pyttsx and gTTS module errors

纵饮孤独 提交于 2019-12-10 17:47:10
问题 windows 10-64bit I'm trying to use some text-to-speech tool to read text from lines of .txt document, something like this: so with pyttsx: import pyttsx engine = pyttsx.init() engine.say('my voice') engine.runAndWait() I got this error: Traceback (most recent call last): File "...", line 1, in <module> import pyttsx File "/.../pyttsx/__init__.py", line 18, in <module> from engine import Engine ImportError: No module named 'engine' now gTTS, available as gtts_token, so how to use it? because