Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #98895

Re: import module pyttsx in windows IDLE failed

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From MRAB <python@mrabarnett.plus.com>
Newsgroups comp.lang.python
Subject Re: import module pyttsx in windows IDLE failed
Date Mon, 16 Nov 2015 17:28:09 +0000
Lines 33
Message-ID <mailman.369.1447694899.16136.python-list@python.org> (permalink)
References <M7o2y.42200$PO1.15738@fx08.ams1>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 7bit
X-Trace news.uni-berlin.de RT9/pPSM/0jrf/gev6x6jQ18knpUDab2UmmRowv3Pb/w==
Return-Path <python@mrabarnett.plus.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'subject:IDLE': 0.04; 'importerror:': 0.05; 'blue': 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; '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; 'windows': 0.20; 'skip:" 30': 0.20; 'import': 0.24; '(most': 0.24; 'header:In- Reply-To:1': 0.24; 'module': 0.25; 'header:User-Agent:1': 0.26; 'installed': 0.26; 'print': 0.30; 'received:84': 0.32; 'run': 0.33; 'idle': 0.33; 'traceback': 0.33; 'file': 0.34; 'problem.': 0.35; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'there,': 0.37; 'thanks': 0.37; 'green': 0.38; 'skip:- 60': 0.39; 'received:192': 0.39; 'skip:e 20': 0.39; 'to:addr:python.org': 0.40; 'engine': 0.62; 'voice': 0.63; 'thursday': 0.66; "how's": 0.72; 'voices': 0.84; 'yellow': 0.84
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=P89Q4LRtGDd7uX-efesA: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 <M7o2y.42200$PO1.15738@fx08.ams1>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Xref csiph.com comp.lang.python:98895

Show key headers only | View raw


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 <module>
>      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?

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

import module  pyttsx in windows IDLE failed input/ldompeling@casema.nl - 2015-11-16 17:12 +0000
  Re: import module pyttsx in windows IDLE failed MRAB <python@mrabarnett.plus.com> - 2015-11-16 17:28 +0000
    Re: import module pyttsx in windows IDLE failed input/ldompeling@casema.nl - 2015-11-16 17:45 +0000
      Re: import module pyttsx in windows IDLE failed MRAB <python@mrabarnett.plus.com> - 2015-11-16 18:12 +0000
      Re: import module pyttsx in windows IDLE failed Terry Reedy <tjreedy@udel.edu> - 2015-11-16 13:20 -0500
        Re: import module pyttsx in windows IDLE failed input/ldompeling@casema.nl - 2015-11-16 20:03 +0000
          Re: import module pyttsx in windows IDLE failed Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2015-11-16 20:02 -0500

csiph-web