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


Groups > comp.lang.python > #98892

import module pyttsx in windows IDLE failed

From input/ldompeling@casema.nl
Newsgroups comp.lang.python
Subject import module pyttsx in windows IDLE failed
Message-ID <M7o2y.42200$PO1.15738@fx08.ams1> (permalink)
Organization Pure Usenet - Usenet for everyone
Date 2015-11-16 17:12 +0000

Show all headers | View raw


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()


-- 
--------------------------------- --- -- -
Posted with NewsLeecher v7.0 Beta 2
Web @ http://www.newsleecher.com/?usenet
------------------- ----- ---- -- -

Back to comp.lang.python | Previous | NextNext 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