Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: MRAB Newsgroups: comp.lang.python Subject: Re: import module pyttsx in windows IDLE failed Date: Mon, 16 Nov 2015 18:12:51 +0000 Lines: 50 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de YQ4HSdNlU3LKyCILFFP1BgS6QMAWKUr9ZMy6TAtoX0/A== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'url:pypi': 0.03; 'subject:IDLE': 0.04; 'importerror:': 0.05; 'blue': 0.09; 'mentions': 0.09; 'orange': 0.09; 'subject:module': 0.09; 'wednesday': 0.15; 'cherry': 0.16; 'from:addr:mrabarnett.plus.com': 0.16; 'from:addr:python': 0.16; 'from:name:mrab': 0.16; 'message-id:@mrabarnett.plus.com': 0.16; 'pypi.': 0.16; 'received:192.168.1.4': 0.16; 'received:84.93': 0.16; 'received:84.93.230': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:failed': 0.16; 'subject:import': 0.16; 'subject:windows': 0.16; 'wrote:': 0.16; 'later': 0.16; 'version.': 0.18; 'windows': 0.20; 'skip:" 30': 0.20; 'wrote': 0.23; 'import': 0.24; '(most': 0.24; 'header:In-Reply-To:1': 0.24; 'module': 0.25; 'install': 0.25; 'header:User-Agent:1': 0.26; 'installed': 0.26; 'not.': 0.27; 'print': 0.30; 'received:84': 0.32; 'run': 0.33; 'url:python': 0.33; 'idle': 0.33; 'traceback': 0.33; 'file': 0.34; 'problem.': 0.35; 'url:org': 0.36; 'to:addr :python-list': 0.36; 'subject:: ': 0.37; 'there,': 0.37; 'thanks': 0.37; 'no,': 0.38; 'green': 0.38; 'skip:- 60': 0.39; 'received:192': 0.39; 'skip:e 20': 0.39; 'to:addr:python.org': 0.40; 'where': 0.40; 'engine': 0.62; 'voice': 0.63; 'here:': 0.63; 'thursday': 0.66; 'reply': 0.68; "how's": 0.72; 'voices': 0.84; 'yellow': 0.84; 'homepage': 0.91 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.1 cv=MbeRwMLf c=1 sm=1 tr=0 a=0nF1XD0wxitMEM03M9B4ZQ==:117 a=0nF1XD0wxitMEM03M9B4ZQ==:17 a=0Bzu9jTXAAAA:8 a=EBOSESyhAAAA:8 a=IkcTkHD0fZMA:10 a=8AHkEIZyAAAA:8 a=_IcLmlCZuYdNoLdCK5AA:9 a=QEXdDO2ut3YA:10 X-AUTH: mrabarnett@:2500 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:98898 On 2015-11-16 17:45, input/ldompeling@casema.nl wrote: > In reply to "MRAB" who wrote the following: > Have you installed pyttsx? > > No, I did not. > Where can I find pyttsx to install ? > The first place to look is PyPI. It's here: https://pypi.python.org/pypi/pyttsx You might want to look at the links for the homepage and documentation. That mentions a later version. > Thanks > --------------------------------------------------------------------- >> On 2015-11-16 17:12, input/ldompeling@casema.nl wrote: >> > When I try to run this module in Windows IDLE I get this message: >> > How can I solve this problem. >> > >> > Thanks >> > >> > Traceback (most recent call last): >> > File "C:\raspberrypi\recipe-578839-1.py", line 1, in >> > import pyttsx >> > ImportError: No module named 'pyttsx' >> > >> > This is what I found on the internet: >> > ------------------------------------------------------------------- >> > 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("Hi there, how's you ?") >> > engine.say("A B C D E F G H I J K L M") >> > engine.say("N O P Q R S T U V W X Y Z") >> > engine.say("0 1 2 3 4 5 6 7 8 9") >> > engine.say("Sunday Monday Tuesday Wednesday Thursday Friday Saturday") >> > engine.say("Violet Indigo Blue Green Yellow Orange Red") >> > engine.say("Apple Banana Cherry Date Guava") >> > engine.runAndWait() >> > >> > >> Have you installed pyttsx? >